test time fixes and bonus letter removal

This commit is contained in:
stvnrlly
2022-11-22 17:03:42 -05:00
parent 86b28e5e44
commit ca1897973a
20 changed files with 6 additions and 618 deletions

View File

@@ -46,46 +46,6 @@
{{ created_at|format_datetime_human }}
</p>
{% if template.template_type == 'letter' %}
{% if notification_status == 'cancelled' %}
<p class="notification-status-cancelled">
Cancelled {{ updated_at|format_datetime_short }}
</p>
{% elif notification_status == 'validation-failed' %}
<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
fixed the problem
</p>
{% else %}
{% if sent_with_test_key %}
{% if is_precompiled_letter %}
<p class="govuk-body">
This letter passed our checks, but we will not print it because you used a test key.
</p>
{% else %}
<p class="govuk-body">
We will not print this letter because you used a test key.
</p>
{% endif %}
{% else %}
<p class="govuk-body">
{{ letter_print_day }}
</p>
<p class="govuk-body">
Estimated delivery date: {{ estimated_letter_delivery_date|format_day_of_week }} {{ estimated_letter_delivery_date|format_date_short }}
</p>
{% endif %}
{% endif %}
{% endif %}
<div class="{{ 'letter-sent' if template.template_type == 'letter' else '' }}">
{{ template|string }}
</div>