mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-14 02:09:44 -04:00
All paragraphs should have class="govuk-body", or be otherwise custom-styled. This commit adds some extra checks to our test fixture that looks for paragraphs that don’t have any styling. Our test coverage is pretty good, so this should check almost all pages, and prevent regressions. I’ve done this in such a way that it can be extended for other elements (e.g. links) in the future.
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 class="govuk-body">
|
||
You can only send {{ current_service.message_limit }} messages per day
|
||
{%- if current_service.trial_mode %}
|
||
in <a class="govuk-link govuk-link--no-visited-state" href="{{ url_for('.trial_mode_new')}}">trial mode</a>
|
||
{%- endif -%}
|
||
.
|
||
</p>
|
||
{% if original_file_name %}
|
||
<p class="govuk-body">
|
||
{% 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 %}
|