Modal Base: Two Options

See "img upload" in sidebar snet/molecules for variants, or go to info panel and look for it in "references" (@snet-img-upload)

Refer to modal frame found in view tab for complete structure without content.

A modal's default size is 640px

Modifier classes for modals

  • modal-sm: 480px
  • modal-md: 720px (mainly used for modals containing images)
  • modal-lg: 896px
  • modal-xl: 1120px

Content loading

A modal with a content loading component behaves as follows:

  • It has a second body element with the -isLoading class that is hidden by default, and shown only when ...
  • ... the -contentLoading modifier is applied to the modal element ...
  • ... which in turn hides the regular modal body element which into which the content is injected
<div class="sds-modal modal fade -twoOptions" id="twoOptions" aria-hidden="true" tabindex="-1">
    <div class="sds-modal__dialog modal-dialog modal-lg modal-xl modal-dialog-centered">
        <div class="sds-modal__content modal-content">

            <div class="sds-modal__header modal-header">

                <div class="sds-modal__title modal-title">Deux choix s’offrent à vous</div>

                <button type="button" class="sds-btn -iconBtn -btnSecondary -ghost sds-modal__close" data-dismiss="modal" aria-label="Close">

                    <span class="sds-icon sds-icon-close"></span>

                </button>

            </div>

            <div class="sds-modal__body modal-body">

                <div class="row align-items-stretch justify-content-center align-items-stretch-immediate text-center">
                    <div class="col-5">
                        <div class="d-flex flex-column align-items-center justify-content-start sds-stackLg">
                            <img class="img-fluid" src="../../media/illustrative-icons/sdsillu-messagesent.svg" alt="">
                            <p class="flex-grow-1">Vous pouvez débloquer une nouvelle tranche de votre prêt Cedies directement en ligne. Pas besoin de prendre un rendez-vous.</p>
                            <div class="sds-btnGroup">
                                <button type="button" class="sds-btn -btnPrimary">

                                    <span class="sds-btn__text">Passer par le Store</span>

                                </button>
                            </div>
                        </div>
                    </div>
                    <div class="col-1 d-flex align-items-center justify-content-center">
                        <div class="sds-modal__verticalDivider"></div>
                    </div>
                    <div class="col-5">
                        <div class="d-flex flex-column align-items-center justify-content-start sds-stackLg">
                            <img class="img-fluid" src="../../media/illustrative-icons/sdsillu-plugcable.svg" alt="">
                            <p class="flex-grow-1">Si vous ne désirez pas liquider votre tranche de prêt CEDIES vous-même via le Store, vous pouvez prendre un rendez-vous avec votre conseiller.</p>
                            <button type="button" class="sds-btn -btnPrimary">

                                <span class="sds-btn__text">Prendre rendez-vous</span>

                            </button>
                        </div>
                    </div>
                </div>

            </div>

        </div>
    </div>
</div>
{% extends "@snet-modal-base-frame" %}
{% block header %}
    <div class="{{ namespace }}modal__title modal-title">{{ title }}</div>
{% endblock %}
{% block body %}
    <div class="row align-items-stretch justify-content-center align-items-stretch-immediate text-center">
		<div class="col-5">
			<div class="d-flex flex-column align-items-center justify-content-start {{ namespace }}stackLg">
				<img class="img-fluid" src="{{ imgOptionOne | path }}" alt="">
				<p class="flex-grow-1">{{ textOption }}</p>
				<div class="{{ namespace }}btnGroup">
					{% render "@btn-primary",{text: textBtnOptionOne },true %}
				</div>
			</div>
		</div>
		<div class="col-1 d-flex align-items-center justify-content-center">
			<div class="{{ namespace }}modal__verticalDivider"></div>
		</div>
		<div class="col-5">
			<div class="d-flex flex-column align-items-center justify-content-start {{ namespace }}stackLg">
				<img class="img-fluid" src="{{ imgOptionTwo | path }}" alt="">
				<p class="flex-grow-1">{{ textOption2 }}</p>
				{% render "@btn-primary",{text: textBtnOptionTwo },true %}
			</div>
		</div>
	</div>
{% endblock %}
{% block footer %}
{% endblock %}