2017-06-29 16:06:36 +01:00
|
|
|
|
{% from "components/banner.html" import banner_wrapper %}
|
|
|
|
|
|
|
2016-07-21 13:47:18 +01:00
|
|
|
|
<div class="bottom-gutter">
|
|
|
|
|
|
{% call banner_wrapper(type='dangerous') %}
|
|
|
|
|
|
<h1 class='banner-title'>
|
2017-06-29 12:23:42 +01:00
|
|
|
|
{% if original_file_name %}
|
|
|
|
|
|
Too many recipients
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
Daily limit reached
|
|
|
|
|
|
{% endif %}
|
2016-07-21 13:47:18 +01:00
|
|
|
|
</h1>
|
|
|
|
|
|
<p>
|
2016-07-21 13:48:10 +01:00
|
|
|
|
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>
|
2017-06-29 12:23:42 +01:00
|
|
|
|
{% if original_file_name %}
|
|
|
|
|
|
<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>
|
|
|
|
|
|
{% endif %}
|
2016-07-21 13:47:18 +01:00
|
|
|
|
{% endcall %}
|
|
|
|
|
|
</div>
|