mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 16:24:08 -04:00
they're currently expecting a RecipientsCSV object - but we won't always have that available if we're handling a single notification. So make the partials take generic variables, and then use a jinja with block to pass in the correct values from either the check csv page or the check notification page. Additionally set the notification check page to show errors nicely - hide the send button if there were problems, and replace the header
26 lines
780 B
HTML
26 lines
780 B
HTML
{% from "components/banner.html" import banner_wrapper %}
|
||
|
||
{% macro skip_to_file_contents() %}
|
||
<p class="visually-hidden">
|
||
<a href="#{{ file_contents_header_id }}">Skip to file contents</a>
|
||
</p>
|
||
{% endmacro %}
|
||
|
||
<div class="bottom-gutter">
|
||
{% call banner_wrapper(type='dangerous') %}
|
||
<h1 class='banner-title'>
|
||
You can’t send to
|
||
{{ 'this' if count_of_recipients == 1 else 'these' }}
|
||
{{ template_type_label }}
|
||
{%- if count_of_recipients != 1 -%}
|
||
{{ 'es' if 'email address' == template_type_label else 's' }}
|
||
{%- endif %}
|
||
</h1>
|
||
<p>
|
||
In <a href="{{ url_for('.trial_mode') }}">trial mode</a> you can only
|
||
send to yourself and members of your team
|
||
</p>
|
||
{{ skip_to_file_contents() }}
|
||
{% endcall %}
|
||
</div>
|