Add a link to download a PDF of a sent letter

This is useful for service teams to keep a copy for their records. The
letter won’t be available in Notify once the 7 day retention period has
passed.
This commit is contained in:
Chris Hill-Scott
2017-11-13 12:17:16 +00:00
parent 03447c10da
commit 23a1c388f3
3 changed files with 79 additions and 16 deletions
@@ -34,6 +34,9 @@
<p>
Estimated delivery date: {{ estimated_letter_delivery_date|string|format_date_short }}
</p>
<p class="bottom-gutter">
<a href="{{ url_for('main.view_letter_notification_as_preview', service_id=current_service.id, notification_id=notification_id, filetype='pdf') }}" download="download">Download as a PDF</a>
</p>
{% endif %}
{{ template|string }}