Merge pull request #1635 from alphagov/pdf-of-sent-letter

Add a link to download a PDF of a sent letter
This commit is contained in:
Chris Hill-Scott
2017-11-16 11:44:43 +00:00
committed by GitHub
3 changed files with 79 additions and 16 deletions

View File

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