mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 05:59:44 -04:00
Merge pull request #3924 from alphagov/letter-permanent-failure
Permanent failure message for letters
This commit is contained in:
@@ -220,7 +220,7 @@ def format_notification_status(status, template_type):
|
||||
'failed': '',
|
||||
'technical-failure': 'Technical failure',
|
||||
'temporary-failure': '',
|
||||
'permanent-failure': '',
|
||||
'permanent-failure': 'Permanent failure',
|
||||
'delivered': '',
|
||||
'received': '',
|
||||
'accepted': '',
|
||||
|
||||
@@ -80,6 +80,7 @@
|
||||
('Printed', 'The provider has printed the letter. Letters are printed at 5:30pm and dispatched the next working day.'),
|
||||
('Cancelled', 'Sending cancelled. Your letter will not be printed or dispatched.'),
|
||||
('Technical failure', 'Notify had an unexpected error while sending the letter to our printing provider.'),
|
||||
('Permanent failure', 'The provider cannot print the letter. Your letter will not be dispatched.')
|
||||
] %}
|
||||
{% call row() %}
|
||||
{{ text_field(message_length) }}
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
</p>
|
||||
|
||||
{% if template.template_type == 'letter' %}
|
||||
{% if notification_status in ('permanent-failure', 'cancelled') %}
|
||||
{% if notification_status == 'cancelled' %}
|
||||
<p class="notification-status-cancelled">
|
||||
Cancelled {{ updated_at|format_datetime_short }}
|
||||
</p>
|
||||
@@ -49,6 +49,10 @@
|
||||
<p class="notification-status-cancelled">
|
||||
{{ message.summary | safe }}
|
||||
</p>
|
||||
{% elif notification_status == 'permanent-failure' %}
|
||||
<p class="notification-status-cancelled">
|
||||
Permanent failure – The provider cannot print the letter. Your letter will not be dispatched.
|
||||
</p>
|
||||
{% elif notification_status == 'technical-failure' %}
|
||||
<p class="notification-status-cancelled">
|
||||
Technical failure – Notify will resend once the team have
|
||||
|
||||
Reference in New Issue
Block a user