Merge pull request #3953 from alphagov/show_exceeded_daily_limit_on_page

Show status when job has exceeded the daily sending limit
This commit is contained in:
Rebecca Law
2021-07-15 16:03:19 +01:00
committed by GitHub
3 changed files with 46 additions and 1 deletions

View File

@@ -11,7 +11,7 @@
{% else %}
Uploaded by {{ job.created_by.name }} on {{ job.created_at|format_datetime_short }}
{% endif %}
{% else %}
{% else %}
Sent by {{ job.created_by.name }} on {{ job.created_at|format_datetime_short }}
{% if job.template.template_type == "letter" %}
<p class="govuk-body" id="printing-info">
@@ -20,4 +20,12 @@
{% endif %}
{% endif %}
</p>
{% if job.status == 'sending limits exceeded'%}
<p class="govuk-error-message">
Notify cannot send these messages because you have reached your daily limit. You can only send {{ current_service.message_limit|format_thousands }} messages per day.
</p>
<p class="govuk-error-message govuk-!-margin-bottom-6">
Upload this spreadsheet again tomorrow or <a class="govuk-link" href="https://www.notifications.service.gov.uk/support">contact the GOV.UK Notify team</a> to raise the limit.
</p>
{% endif %}
</div>