Show status when job has exceeded the daily sending limit

If a job exceeds the daily sending limit, show that on the job page. The job is only created if the sending limit has been reached when the delivery app is processing the job, usually this error is caught at the time the CSV is uploaded and the job is not created.
This commit is contained in:
Rebecca Law
2021-07-05 14:13:20 +01:00
parent 6ac593aa5f
commit af7882e5a4
3 changed files with 39 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,9 @@
{% endif %}
{% endif %}
</p>
{% if job.status == 'sending limits exceeded'%}
<p class="govuk-error-message" >
You have exceeded your daily sending limits. You can upload your CSV tomorrow or <a class="govuk-link" href="https://www.notifications.service.gov.uk/support">contact the GOV.UK Notify team</a>
</p>
{% endif %}
</div>