Modal Base: Notifications History

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

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

                <div class="sds-modal__title modal-title">Historique des actions</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="sds-activityLog">

                    <div class="sds-activityLog__row">

                        <span class="sds-itemConnector sds-activityLog__itemConnector">

                            <span class="sds-iconCircle -secondary100 -smaller" aria-hidden="true">

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

                            </span>

                        </span>

                        <div class="sds-avatar centeredBgi -avatarSm">

                            <img class="img-fluid" src="../../media/snet/avatars/avatarUser.png" alt="">

                        </div>

                        <div class="sds-activityLog__rowContent sds-stackXxs">
                            <p>Santiago Valentin <span class="sds-activityLog__meta">a signé un contrat</span></p>
                            <small class="sds-activityLog__meta sds-textHelper"></small>
                        </div>
                    </div>

                    <div class="sds-activityLog__row">

                        <span class="sds-itemConnector sds-activityLog__itemConnector">

                            <span class="sds-iconCircle -success100 -smaller" aria-hidden="true">

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

                            </span>

                        </span>

                        <div class="sds-avatar centeredBgi -avatarSm">

                            <img class="img-fluid" src="../../media/snet/avatars/avatarUser.png" alt="">

                        </div>

                        <div class="sds-activityLog__rowContent sds-stackXxs">
                            <p>Santiago Valentin <span class="sds-activityLog__meta">a pris connaissance d’une alerte</span></p>
                            <small class="sds-activityLog__meta sds-textHelper"></small>
                        </div>
                    </div>

                    <div class="sds-activityLog__row">

                        <span class="sds-itemConnector sds-activityLog__itemConnector">

                            <span class="sds-iconCircle -info100 -smaller" aria-hidden="true">

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

                            </span>

                        </span>

                        <div class="sds-avatar centeredBgi -avatarSm">

                            <img class="img-fluid" src="../../media/snet/avatars/avatarUser.png" alt="">

                        </div>

                        <div class="sds-activityLog__rowContent sds-stackXxs">
                            <p>Santiago Valentin <span class="sds-activityLog__meta">a lu un message</span></p>
                            <small class="sds-activityLog__meta sds-textHelper"></small>
                        </div>
                    </div>

                    <div class="sds-activityLog__row">

                        <span class="sds-itemConnector sds-activityLog__itemConnector">

                            <span class="sds-iconCircle -secondary100 -smaller" aria-hidden="true">

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

                            </span>

                        </span>

                        <div class="sds-avatar centeredBgi -avatarSm">

                            <img class="img-fluid" src="../../media/snet/avatars/avatarUser.png" alt="">

                        </div>

                        <div class="sds-activityLog__rowContent sds-stackXxs">
                            <p>Santiago Valentin <span class="sds-activityLog__meta">a signé un contrat</span></p>
                            <small class="sds-activityLog__meta sds-textHelper"></small>
                        </div>
                    </div>

                    <div class="sds-activityLog__row">

                        <span class="sds-itemConnector sds-activityLog__itemConnector">

                            <span class="sds-iconCircle -success100 -smaller" aria-hidden="true">

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

                            </span>

                        </span>

                        <div class="sds-avatar centeredBgi -avatarSm">

                            <img class="img-fluid" src="../../media/snet/avatars/avatarUser.png" alt="">

                        </div>

                        <div class="sds-activityLog__rowContent sds-stackXxs">
                            <p>Santiago Valentin <span class="sds-activityLog__meta">a pris connaissance d’une alerte</span></p>
                            <small class="sds-activityLog__meta sds-textHelper"></small>
                        </div>
                    </div>

                    <div class="sds-activityLog__row">

                        <span class="sds-itemConnector sds-activityLog__itemConnector">

                            <span class="sds-iconCircle -info100 -smaller" aria-hidden="true">

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

                            </span>

                        </span>

                        <div class="sds-avatar centeredBgi -avatarSm">

                            <img class="img-fluid" src="../../media/snet/avatars/avatarUser.png" alt="">

                        </div>

                        <div class="sds-activityLog__rowContent sds-stackXxs">
                            <p>Santiago Valentin <span class="sds-activityLog__meta">a lu un message</span></p>
                            <small class="sds-activityLog__meta sds-textHelper"></small>
                        </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 %}
{% render "@snet-activity-log" %}
{% endblock %}