mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-22 08:58:46 -04:00
Implements https://github.com/alphagov/notifications-utils/pull/81 Handles addresses as multiple columns: - in ‘Send yourself a test’ - in example CSV files - in validating that a CSV file has recipients (eg at least an ‘address line 1’ and ‘postcode’ column) - when showing the contents of a CSV file As few UI changes as possible, once we have the thing working end-to-end we can think about how the UI might need to work differently.
39 lines
1.2 KiB
HTML
39 lines
1.2 KiB
HTML
<div class="bottom-gutter">
|
||
{% call banner_wrapper(type='dangerous') %}
|
||
<h1 class='banner-title'>
|
||
Too many recipients
|
||
</h1>
|
||
<p>
|
||
You can only send {{ current_service.message_limit }} messages per day
|
||
{%- if current_service.restricted %}
|
||
in <a href="{{ url_for('.trial_mode')}}">trial mode</a>
|
||
{%- endif -%}
|
||
.
|
||
</p>
|
||
<p>
|
||
{% if current_service.message_limit != remaining_messages %}
|
||
You can still send {{ remaining_messages }} messages today, but
|
||
{% endif %}
|
||
‘{{ original_file_name }}’ contains
|
||
{{ count_of_recipients }}
|
||
{% if count_of_recipients == 1 -%}
|
||
{%- if template.template_type == 'email' -%}
|
||
email address
|
||
{%- elif template.template_type == 'sms' -%}
|
||
phone number
|
||
{%- elif template.template_type == 'letter' -%}
|
||
address
|
||
{%- endif -%}
|
||
{%- else -%}
|
||
{%- if template.template_type == 'email' -%}
|
||
email addresses
|
||
{%- elif template.template_type == 'sms' -%}
|
||
phone numbers
|
||
{%- elif template.template_type == 'letter' -%}
|
||
addresses
|
||
{%- endif -%}
|
||
{%- endif -%}.
|
||
</p>
|
||
{% endcall %}
|
||
</div>
|