mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-07 00:58:25 -04:00
move too many messages error to its own partial
This commit is contained in:
27
app/templates/partials/check/too_many_messages.html
Normal file
27
app/templates/partials/check/too_many_messages.html
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
<div class="bottom-gutter">
|
||||||
|
{% call banner_wrapper(type='dangerous') %}
|
||||||
|
<h1 class='banner-title'>
|
||||||
|
Too many recipients
|
||||||
|
</h1>
|
||||||
|
{% if statistics.emails_requested or statistics.sms_requested %}
|
||||||
|
<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>
|
||||||
|
{% endif %}
|
||||||
|
<p>
|
||||||
|
You can still send
|
||||||
|
{{ current_service.message_limit - statistics.get('emails_requested', 0) - statistics.get('sms_requested', 0) }}
|
||||||
|
messages today, but
|
||||||
|
‘{{ original_file_name }}’ contains
|
||||||
|
{{ count_of_recipients }} {{ recipients.recipient_column_header }}
|
||||||
|
{%- if count_of_recipients != 1 -%}
|
||||||
|
{{ 'es' if 'email address' == recipients.recipient_column_header else 's' }}
|
||||||
|
{%- endif %}
|
||||||
|
</p>
|
||||||
|
{% endcall %}
|
||||||
|
</div>
|
||||||
@@ -104,35 +104,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% elif count_of_recipients > (current_service.message_limit - statistics.get('emails_requested', 0) - statistics.get('sms_requested', 0)) %}
|
{% elif count_of_recipients > (current_service.message_limit - statistics.get('emails_requested', 0) - statistics.get('sms_requested', 0)) %}
|
||||||
|
{% include "partials/check/too_many_messages.html" %}
|
||||||
<div class="bottom-gutter">
|
|
||||||
{% call banner_wrapper(type='dangerous') %}
|
|
||||||
<h1 class='banner-title'>
|
|
||||||
Too many recipients
|
|
||||||
</h1>
|
|
||||||
{% if statistics.emails_requested or statistics.sms_requested %}
|
|
||||||
<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>
|
|
||||||
{% endif %}
|
|
||||||
<p>
|
|
||||||
You can still send
|
|
||||||
{{ current_service.message_limit - statistics.get('emails_requested', 0) - statistics.get('sms_requested', 0) }}
|
|
||||||
messages today, but
|
|
||||||
‘{{ original_file_name }}’ contains
|
|
||||||
{{ count_of_recipients }} {{ recipients.recipient_column_header }}
|
|
||||||
{%- if count_of_recipients != 1 -%}
|
|
||||||
{{ 'es' if 'email address' == recipients.recipient_column_header else 's' }}
|
|
||||||
{%- endif %}
|
|
||||||
</p>
|
|
||||||
{% endcall %}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
||||||
<h1 class="heading-large">
|
<h1 class="heading-large">
|
||||||
|
|||||||
Reference in New Issue
Block a user