Merge pull request #3924 from alphagov/letter-permanent-failure

Permanent failure message for letters
This commit is contained in:
Rebecca Law
2021-06-15 13:43:26 +01:00
committed by GitHub
5 changed files with 9 additions and 4 deletions

View File

@@ -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': '',

View File

@@ -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) }}

View File

@@ -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