comparison sat_templates/templates/bulma/base/base.html @ 279:a35ddf972ad2

bulma (base/base.html): display backend confirmation and notifications
author Goffi <goffi@goffi.org>
date Sat, 15 Aug 2020 23:38:12 +0200
parents 5a1d7c2d965a
children cf3fcbc797bc
comparison
equal deleted inserted replaced
278:672b6137ef29 279:a35ddf972ad2
80 {% block main_menu %} 80 {% block main_menu %}
81 {{ component.menu(main_menu, class="main_menu") }} 81 {{ component.menu(main_menu, class="main_menu") }}
82 {% endblock main_menu %} 82 {% endblock main_menu %}
83 {% endif %} 83 {% endif %}
84 <div id="body" class="container"> 84 <div id="body" class="container">
85 {% if confirm %}
86 <article class="message is-success mt-4">
87 <div class="message-header">{% trans %}Success{% endtrans %}</div>
88 <div class="message-body">
89 {% trans %}Your data has been sent correctly.{% endtrans %}
90 </div>
91 </article>
92 {% endif %}
93 {% if notifications %}
94 {% for notification in notifications %}
95 <article class="message {{ {C.LVL_WARNING: "is-warning"}.get(notification.level, "is-info") }} mt-4">
96 <div class="message-header">{% trans %}Notification{% endtrans %}</div>
97 <div class="message-body">
98 {{ notification.message }}
99 </div>
100 </article>
101 {% endfor %}
102 {% endif %}
85 <div id="notifs_area"></div> 103 <div id="notifs_area"></div>
86 {% block body %} 104 {% block body %}
87 {% endblock body %} 105 {% endblock body %}
88 </div> 106 </div>
89 </body> 107 </body>