changeset 48:37fd11d71233

base: confirmation message can now be customised using "confirm" blog
author Goffi <goffi@goffi.org>
date Fri, 27 Oct 2017 18:48:41 +0200
parents 7d5cca978eeb
children f19e9f5e43b0
files default/base/base.html
diffstat 1 files changed, 10 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/default/base/base.html	Sun Sep 24 16:48:15 2017 +0200
+++ b/default/base/base.html	Fri Oct 27 18:48:41 2017 +0200
@@ -35,11 +35,18 @@
     {{ 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 %}
+    {# confirmation message used when post data has been handled correctly #}
+        {% block confirm %}
+            <div class="box post_confirm">
+                {% block confirm_message %}
+                    {% trans %}Your data has been sent correctly.{% endtrans %}
+                {% endblock confirm_message %}
+            </div>
+        {% endblock confirm %}
     {% endif %}
+
     <div id="body">
     {% block body %}
     {% endblock body %}