Mercurial > libervia-templates
diff 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 |
line wrap: on
line diff
--- a/sat_templates/templates/bulma/base/base.html Sat Aug 15 23:38:12 2020 +0200 +++ b/sat_templates/templates/bulma/base/base.html Tue Aug 25 08:39:30 2020 +0200 @@ -84,7 +84,10 @@ <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-header"> + {% trans %}Success{% endtrans %} + <button class="delete" aria-label="delete" onclick="this.parentElement.parentElement.remove()"></button> + </div> <div class="message-body"> {% trans %}Your data has been sent correctly.{% endtrans %} </div> @@ -93,7 +96,10 @@ {% 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-header"> + {% trans %}Notification{% endtrans %} + <button class="delete" aria-label="delete" onclick="this.parentElement.parentElement.remove()"></button> + </div> <div class="message-body"> {{ notification.message }} </div>