Mercurial > libervia-templates
comparison sat_templates/templates/bulma/base/base.html @ 280:cf3fcbc797bc
bulma (base/base.html): remove backend notification/confirm message on delete button click
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 25 Aug 2020 08:39:30 +0200 |
parents | a35ddf972ad2 |
children | f1a39607d6a5 |
comparison
equal
deleted
inserted
replaced
279:a35ddf972ad2 | 280:cf3fcbc797bc |
---|---|
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 %} | 85 {% if confirm %} |
86 <article class="message is-success mt-4"> | 86 <article class="message is-success mt-4"> |
87 <div class="message-header">{% trans %}Success{% endtrans %}</div> | 87 <div class="message-header"> |
88 {% trans %}Success{% endtrans %} | |
89 <button class="delete" aria-label="delete" onclick="this.parentElement.parentElement.remove()"></button> | |
90 </div> | |
88 <div class="message-body"> | 91 <div class="message-body"> |
89 {% trans %}Your data has been sent correctly.{% endtrans %} | 92 {% trans %}Your data has been sent correctly.{% endtrans %} |
90 </div> | 93 </div> |
91 </article> | 94 </article> |
92 {% endif %} | 95 {% endif %} |
93 {% if notifications %} | 96 {% if notifications %} |
94 {% for notification in notifications %} | 97 {% for notification in notifications %} |
95 <article class="message {{ {C.LVL_WARNING: "is-warning"}.get(notification.level, "is-info") }} mt-4"> | 98 <article class="message {{ {C.LVL_WARNING: "is-warning"}.get(notification.level, "is-info") }} mt-4"> |
96 <div class="message-header">{% trans %}Notification{% endtrans %}</div> | 99 <div class="message-header"> |
100 {% trans %}Notification{% endtrans %} | |
101 <button class="delete" aria-label="delete" onclick="this.parentElement.parentElement.remove()"></button> | |
102 </div> | |
97 <div class="message-body"> | 103 <div class="message-body"> |
98 {{ notification.message }} | 104 {{ notification.message }} |
99 </div> | 105 </div> |
100 </article> | 106 </article> |
101 {% endfor %} | 107 {% endfor %} |