# HG changeset patch # User Goffi <goffi@goffi.org> # Date 1597527492 -7200 # Node ID a35ddf972ad2bb07ac451c3ce5c3a1e535c3804c # Parent 672b6137ef2905e3ae11e49ad990250bfceaf75b bulma (base/base.html): display backend confirmation and notifications diff -r 672b6137ef29 -r a35ddf972ad2 sat_templates/templates/bulma/base/base.html --- a/sat_templates/templates/bulma/base/base.html Sat Aug 15 16:40:29 2020 +0200 +++ b/sat_templates/templates/bulma/base/base.html Sat Aug 15 23:38:12 2020 +0200 @@ -82,6 +82,24 @@ {% endblock main_menu %} {% endif %} <div id="body" class="container"> + {% if confirm %} + <article class="message is-success mt-4"> + <div class="message-header">{% trans %}Success{% endtrans %}</div> + <div class="message-body"> + {% trans %}Your data has been sent correctly.{% endtrans %} + </div> + </article> + {% endif %} + {% if notifications %} + {% for notification in notifications %} + <article class="message {{ {C.LVL_WARNING: "is-warning"}.get(notification.level, "is-info") }} mt-4"> + <div class="message-header">{% trans %}Notification{% endtrans %}</div> + <div class="message-body"> + {{ notification.message }} + </div> + </article> + {% endfor %} + {% endif %} <div id="notifs_area"></div> {% block body %} {% endblock body %}