# HG changeset patch # User Goffi # Date 1499752079 -7200 # Node ID 9abef4a23af0bac0034ee48f6a665d6148129214 # Parent f371bc50ea45df703118569d4dc6412f74b64486 base/base: a confirm message is displayed on top of page when confirm is set diff -r f371bc50ea45 -r 9abef4a23af0 default/base/base.html --- 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() }} + {% if confirm %} + {% block confirm %} +
{% trans %}Your answer has been recorded correctly.{% endtrans %}
+ {%endblock confirm %} + {% endif %}
{% block body %} {% endblock body %} diff -r f371bc50ea45 -r 9abef4a23af0 default/static/styles.css --- a/default/static/styles.css Tue Jul 11 07:47:18 2017 +0200 +++ b/default/static/styles.css Tue Jul 11 07:47:59 2017 +0200 @@ -42,3 +42,13 @@ font-weight: bold; text-align: center; } + +.post_confirm { + text-align: center; + background-color: lightgreen; + padding: 1em; + font-size: 1.2em; + font-weight: bold; + width: 60%; + margin: 1.5em auto; +}