Mercurial > libervia-templates
changeset 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 | f371bc50ea45 |
children | 134c731937e8 |
files | default/base/base.html default/static/styles.css |
diffstat | 2 files changed, 15 insertions(+), 0 deletions(-) [+] |
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 %}
--- 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; +}