Mercurial > libervia-templates
comparison 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 |
comparison
equal
deleted
inserted
replaced
47:7d5cca978eeb | 48:37fd11d71233 |
---|---|
33 {% endif %} | 33 {% endif %} |
34 | 34 |
35 {{ script.generate_scripts() }} | 35 {{ script.generate_scripts() }} |
36 </head> | 36 </head> |
37 <body> | 37 <body> |
38 | |
38 {% if confirm %} | 39 {% if confirm %} |
39 {% block confirm %} | 40 {# confirmation message used when post data has been handled correctly #} |
40 <div class="box post_confirm">{% trans %}Your answer has been recorded correctly.{% endtrans %}</div> | 41 {% block confirm %} |
41 {%endblock confirm %} | 42 <div class="box post_confirm"> |
43 {% block confirm_message %} | |
44 {% trans %}Your data has been sent correctly.{% endtrans %} | |
45 {% endblock confirm_message %} | |
46 </div> | |
47 {% endblock confirm %} | |
42 {% endif %} | 48 {% endif %} |
49 | |
43 <div id="body"> | 50 <div id="body"> |
44 {% block body %} | 51 {% block body %} |
45 {% endblock body %} | 52 {% endblock body %} |
46 </div> | 53 </div> |
47 <footer>{% block footer %}{% trans app_name=C.APP_NAME %}Powered by {{app_name}}{% endtrans %}{% endblock %}</footer> | 54 <footer>{% block footer %}{% trans app_name=C.APP_NAME %}Powered by {{app_name}}{% endtrans %}{% endblock %}</footer> |