mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 02:23:19 -04:00
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.
29 lines
1.1 KiB
HTML
29 lines
1.1 KiB
HTML
<div class="ajax-block-container">
|
|
<p class='bottom-gutter'>
|
|
{% if job.scheduled_for %}
|
|
{% if job.processing_started %}
|
|
Sent by {{ job.created_by.name }} on {{ job.processing_started|format_datetime_short }}
|
|
{% if job.template.template_type == "letter" %}
|
|
<p class="govuk-body" id="printing-info">
|
|
{{ letter_print_day }}
|
|
</p>
|
|
{% endif %}
|
|
{% else %}
|
|
Uploaded by {{ job.created_by.name }} on {{ job.created_at|format_datetime_short }}
|
|
{% endif %}
|
|
{% 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">
|
|
{{ letter_print_day }}
|
|
</p>
|
|
{% 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>
|