Mercurial > libervia-templates
diff default/base/base.html @ 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 | 9abef4a23af0 |
children | f76ec90e0e1e |
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 %}