mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-04 13:41:38 -04:00
Inheriting from `dict` has some unexpected side effects that don’t happen with plain object. The one we want to avoid right now is that a dict doesn’t seem to implement `__dict__` in a normal way, which is required by `werkzeug.utils.cached_property`.
41 lines
1.3 KiB
HTML
41 lines
1.3 KiB
HTML
<h1 class='banner-title' data-module="track-error" data-error-type="Trial mode: too many recipients" data-error-label="{{ upload_id }}">
|
||
{% if original_file_name %}
|
||
Too many recipients
|
||
{% else %}
|
||
Daily limit reached
|
||
{% endif %}
|
||
</h1>
|
||
<p>
|
||
You can only send {{ current_service.message_limit }} messages per day
|
||
{%- if current_service.trial_mode %}
|
||
in <a href="{{ url_for('.using_notify')}}#trial-mode">trial mode</a>
|
||
{%- endif -%}
|
||
.
|
||
</p>
|
||
{% 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 %}
|