mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
Refactor uploads preview error banner to use a shared component
Also refactor a corresponding test to avoid asserting on the content
This commit is contained in:
@@ -9,13 +9,8 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block maincolumn_content %}
|
||||
{% if status == 'invalid' and error %}
|
||||
{% call banner_wrapper(type='dangerous') %}
|
||||
<h1 class="banner-title">{{ error.title }}</h1>
|
||||
{% if error.detail %}
|
||||
<p>{{ error.detail | safe }}</p>
|
||||
{% endif %}
|
||||
{% endcall %}
|
||||
{% if status == 'invalid' and message %}
|
||||
{% include "partials/check/letter-validation-failed-banner.html" %}
|
||||
{% elif current_service.trial_mode %}
|
||||
{% call banner_wrapper(type='dangerous') %}
|
||||
{% with
|
||||
|
||||
Reference in New Issue
Block a user