Modal Base: Gestion

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 -bodySecondary06" id="priseRDVCapctcha" aria-hidden="true" tabindex="-1">
    <div class="sds-modal__dialog modal-dialog modal-lg modal-dialog-scrollable modal-dialog-centered">
        <div class="sds-modal__content modal-content">

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

                <h5 class="sds-modal__title modal-title">Modifier mon rendez-vous</h5>

                <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="sds-stackMd">
                    <div class="sds-box -insetLg sds-stackMd">
                        <div class="h4">Projet financier - Prêt logement</div>
                        <div class="row">
                            <div class="col-12">
                                <div class="form-group">
                                    <label for="" class="sds-label -labelForm">
                                        Agence

                                    </label>
                                    <div class="sds-select">
                                        <select id="" class="sds-select form-control">

                                            <option value="opt-0">Option 1</option>

                                            <option value="opt-1">Option 2</option>

                                            <option value="opt-2">Option 3</option>

                                        </select>
                                        <span class="sds-select__arrow sds-icon sds-icon-chevrondown" aria-hidden="true"></span>

                                    </div>

                                </div>
                            </div>
                            <div class="col-6">
                                <div class="form-group">
                                    <label for="" class="sds-label -labelForm">
                                        Jour

                                    </label>
                                    <div class="sds-input -hasIcon -calendar">
                                        <input class="sds-input form-control" type="text" placeholder="11/04/2023" value="">

                                        <div class="sds-input__iconRight">
                                            <span class="sds-icon sds-icon-calendar"></span>
                                        </div>

                                    </div>
                                </div>
                            </div>
                            <div class="col-6">
                                <div class="form-group">
                                    <label for="" class="sds-label -labelForm">
                                        Créneau

                                    </label>
                                    <div class="sds-select">
                                        <select id="" class="sds-select form-control">

                                            <option value="opt-0">Option 1</option>

                                            <option value="opt-1">Option 2</option>

                                            <option value="opt-2">Option 3</option>

                                        </select>
                                        <span class="sds-select__arrow sds-icon sds-icon-chevrondown" aria-hidden="true"></span>

                                    </div>

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

            </div>

            <div class="sds-modal__footer modal-footer">

                <div class="sds-btnGroup">
                    <button type="button" class="sds-btn -btnSecondary -btnInverse">

                        <span class="sds-btn__text">Annuler la modification</span>

                    </button>
                    <button type="button" class="sds-btn -btnPrimary">

                        <span class="sds-btn__text">Fermer</span>

                    </button>
                </div>

            </div>

        </div>
    </div>
</div>
{% extends "@snet-modal-base-frame" %}
{% block header %}
	<h5 class="{{ namespace }}modal__title modal-title">{{ title }}</h5>
{% endblock %}
{% block body %}
	<div class="{{ namespace }}stackMd">
		<div class="{{ namespace }}box -insetLg {{ namespace }}stackMd">
			<div class="h4">Projet financier - Prêt logement</div>
			<div class="row">
				<div class="col-12">
					<div class="form-group">
						{% render "@label--form",{text: "Agence"},true %}
						{% render "@select" %}
					</div>
				</div>
				<div class="col-6">
					<div class="form-group">
						{% render "@label--form",{text: "Jour"},true %}
						{% render "@input--calendar" %}
					</div>
				</div>
				<div class="col-6">
					<div class="form-group">
						{% render "@label--form",{text: "Créneau"},true %}
						{% render "@select" %}
					</div>
				</div>
			</div>
		</div>
	</div>
{% endblock %}
{% block footer %}
	<div class="{{ namespace }}btnGroup">
		{% render "@btn-secondary-inverse",{
			text: "Annuler la modification",
			attrs: imgTextBtnModalAttrs
		},true %}
		{% render "@btn-primary",{
			text: "Fermer",
			attrs: imgTextBtnModalAttrs
		},true %}
	</div>
{% endblock %}