Modal Base: Depenses

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" id="" aria-hidden="true" tabindex="-1">
    <div class="sds-modal__dialog modal-dialog 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">Modifier la catégorie</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 row-xs align-items-stretch-immediate">

                    <div class="col-6 col-md-4 col-lg-3">
                        <button type="button" class="sds-navigationTile sds-box" aria-pressed="false">
                            <span class="sds-iconCircle -product -logement -big" aria-hidden="true">

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

                            </span>

                            <div class="sds-label sds-textHelperSmall">
                                Logement

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

                    <div class="col-6 col-md-4 col-lg-3">
                        <button type="button" class="sds-navigationTile sds-box" aria-pressed="false">
                            <span class="sds-iconCircle -product -alimentation -big" aria-hidden="true">

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

                            </span>

                            <div class="sds-label sds-textHelperSmall">
                                Alimentation & Ménage

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

                    <div class="col-6 col-md-4 col-lg-3">
                        <button type="button" class="sds-navigationTile sds-box" aria-pressed="false">
                            <span class="sds-iconCircle -product -mobilite -big" aria-hidden="true">

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

                            </span>

                            <div class="sds-label sds-textHelperSmall">
                                Mobilité

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

                    <div class="col-6 col-md-4 col-lg-3">
                        <button type="button" class="sds-navigationTile sds-box" aria-pressed="false">
                            <span class="sds-iconCircle -product -sante -big" aria-hidden="true">

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

                            </span>

                            <div class="sds-label sds-textHelperSmall">
                                Santé & Bien-être

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

                    <div class="col-6 col-md-4 col-lg-3">
                        <button type="button" class="sds-navigationTile sds-box -isActive" aria-pressed="true">
                            <span class="sds-iconCircle -product -epargneInvest -big" aria-hidden="true">

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

                            </span>

                            <div class="sds-label sds-textHelperSmall">
                                Epargne & Investissements

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

                    <div class="col-6 col-md-4 col-lg-3">
                        <button type="button" class="sds-navigationTile sds-box" aria-pressed="false">
                            <span class="sds-iconCircle -product -loisirs -big" aria-hidden="true">

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

                            </span>

                            <div class="sds-label sds-textHelperSmall">
                                Loisirs & Culture

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

                    <div class="col-6 col-md-4 col-lg-3">
                        <button type="button" class="sds-navigationTile sds-box" aria-pressed="false">
                            <span class="sds-iconCircle -product -shopping -big" aria-hidden="true">

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

                            </span>

                            <div class="sds-label sds-textHelperSmall">
                                Shopping

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

                    <div class="col-6 col-md-4 col-lg-3">
                        <button type="button" class="sds-navigationTile sds-box" aria-pressed="false">
                            <span class="sds-iconCircle -product -services -big" aria-hidden="true">

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

                            </span>

                            <div class="sds-label sds-textHelperSmall">
                                Services

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

                    <div class="col-6 col-md-4 col-lg-3">
                        <button type="button" class="sds-navigationTile sds-box" aria-pressed="false">
                            <span class="sds-iconCircle -product -enfants -big" aria-hidden="true">

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

                            </span>

                            <div class="sds-label sds-textHelperSmall">
                                Enfants

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

                    <div class="col-6 col-md-4 col-lg-3">
                        <button type="button" class="sds-navigationTile sds-box" aria-pressed="false">
                            <span class="sds-iconCircle -product -restos -big" aria-hidden="true">

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

                            </span>

                            <div class="sds-label sds-textHelperSmall">
                                Restaurants

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

                    <div class="col-6 col-md-4 col-lg-3">
                        <button type="button" class="sds-navigationTile sds-box" aria-pressed="false">
                            <span class="sds-iconCircle -product -remboursement -big" aria-hidden="true">

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

                            </span>

                            <div class="sds-label sds-textHelperSmall">
                                Remboursements prêts

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

                    <div class="col-6 col-md-4 col-lg-3">
                        <button type="button" class="sds-navigationTile sds-box" aria-pressed="false">
                            <span class="sds-iconCircle -product -animaux -big" aria-hidden="true">

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

                            </span>

                            <div class="sds-label sds-textHelperSmall">
                                Animaux

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

                    <div class="col-6 col-md-4 col-lg-3">
                        <button type="button" class="sds-navigationTile sds-box" aria-pressed="false">
                            <span class="sds-iconCircle -product -retraits -big" aria-hidden="true">

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

                            </span>

                            <div class="sds-label sds-textHelperSmall">
                                Retrait

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

                    <div class="col-6 col-md-4 col-lg-3">
                        <button type="button" class="sds-navigationTile sds-box" aria-pressed="false">
                            <span class="sds-iconCircle -product -depenses -big" aria-hidden="true">

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

                            </span>

                            <div class="sds-label sds-textHelperSmall">
                                Autres dépenses

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

                </div>

            </div>

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

                <div class="sds-btnGroup">
                    <button type="button" class="sds-btn -btnPrimary" data-dismiss="modal">

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

                    </button>
                </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 row-xs align-items-stretch-immediate">
	{% for key, item in miaItems %}
		<div class="col-6 col-md-4 col-lg-3">
			{% render "@spk-navigation-tile--mia",{
				eltType: "button",
				classes: item.classes,
				miaIconType: item.miaIconType,
				attrs: {
					"aria-pressed":  item.active or "false"
				},
				miaType: item.type,
				imgUrl: false,
				mia: true,
				miaIcon: item.icon,
				text: item.text
			},true %}
		</div>
	{% endfor %}
	</div>
{% endblock %}
{% block footer %}
	{% if footer %}
		<div class="{{ namespace }}btnGroup">
			{% render "@btn-primary",{
				text: "Valider",
				attrs: {
					"data-dismiss": "modal"
				}
			},true %}
		</div>
	{% endif %}
{% endblock %}