mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Tell user why validation failed on letter validation page - part 1
This commit is contained in:
@@ -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 %}
|
||||
@@ -14,10 +14,10 @@
|
||||
|
||||
<div class="grid-row">
|
||||
<div class="column-whole">
|
||||
{% if result %}
|
||||
{% if passed_validation %}
|
||||
{{ banner(message, with_tick=True) }}
|
||||
{% elif message %}
|
||||
{{ banner(message, 'dangerous')}}
|
||||
{% include "partials/check/letter-validation-failed-banner.html" %}
|
||||
{% endif %}
|
||||
|
||||
<h1 class="heading-large">Letter validation preview</h1>
|
||||
|
||||
@@ -21,10 +21,10 @@
|
||||
)}}
|
||||
</div>
|
||||
<div class="column-whole template-container">
|
||||
{% if result %}
|
||||
{% if passed_validation %}
|
||||
{{ banner(message, with_tick=True) }}
|
||||
{% elif message %}
|
||||
{{ banner(message, 'dangerous')}}
|
||||
{% include "partials/check/letter-validation-failed-banner.html" %}
|
||||
{% endif %}
|
||||
|
||||
{% for page in pages %}
|
||||
|
||||
Reference in New Issue
Block a user