Tell user why validation failed on letter validation page - part 1

This commit is contained in:
Pea Tyczynska
2019-10-24 22:56:30 +01:00
parent c843940b14
commit f2c7eb5c3e
4 changed files with 32 additions and 5 deletions

View File

@@ -0,0 +1,14 @@
{% from "components/banner.html" import banner_wrapper %}
{% call banner_wrapper(type='dangerous') %}
{% if message is string %}
<h1 class="banner-title">{{ message }}</h1>
{% else %}
<h1 class="banner-title">{{ message.title }}</h1>
{% if message.detail %}
<p>
{{ message.detail | safe }}
</p>
{% endif %}
{% endif %}
{% endcall %}