changeset 244:a62822c6a114

bulma: added a notification area + first dialog template for confirmation request
author Goffi <goffi@goffi.org>
date Fri, 19 Jun 2020 17:57:13 +0200
parents 2b8d18a9df00
children 10278ba367a2
files sat_templates/templates/bulma/base/base.html sat_templates/templates/bulma/dialogs/confirm.html
diffstat 2 files changed, 22 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sat_templates/templates/bulma/base/base.html	Fri Jun 19 17:57:13 2020 +0200
+++ b/sat_templates/templates/bulma/base/base.html	Fri Jun 19 17:57:13 2020 +0200
@@ -82,6 +82,7 @@
         {% endblock main_menu %}
     {% endif %}
     <div id="body" class="container">
+        <div id="notifs_area"></div>
         {% block body %}
         {% endblock body %}
     </div>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sat_templates/templates/bulma/dialogs/confirm.html	Fri Jun 19 17:57:13 2020 +0200
@@ -0,0 +1,21 @@
+<div>
+    <div class="modal has-justify-start is-active click_to_cancel">
+        <div class="modal-content">
+            <div class="notification is-warning">
+                <div class="columns">
+                    <div class="column is-flex has-items-vcentered">
+                        <p class="has-text-weight-bold">{{message}}</p>
+                    </div>
+                    <div class="column is-narrow has-text-centered">
+                        <button class="button is-danger click_to_ok">
+                            {{ok_label|default("OK", true)}}
+                        </button>
+                        <button class="button click_to_cancel">
+                            {{cancel_label|default("Cancel", true)}}
+                        </button>
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
+</div>