diff default/base/base.html @ 39:9abef4a23af0

base/base: a confirm message is displayed on top of page when confirm is set
author Goffi <goffi@goffi.org>
date Tue, 11 Jul 2017 07:47:59 +0200
parents d782227c088d
children 37fd11d71233
line wrap: on
line diff
--- a/default/base/base.html	Tue Jul 11 07:47:18 2017 +0200
+++ b/default/base/base.html	Tue Jul 11 07:47:59 2017 +0200
@@ -35,6 +35,11 @@
     {{ script.generate_scripts() }}
 </head>
 <body>
+    {% if confirm %}
+    {% block confirm %}
+    <div class="box post_confirm">{% trans %}Your answer has been recorded correctly.{% endtrans %}</div>
+    {%endblock confirm %}
+    {% endif %}
     <div id="body">
     {% block body %}
     {% endblock body %}