Put download PDF in footer

This makes its positioning consistent with the previous page in the
one-off sending journey.

It gives us more space to put information about the status of the letter
above the preview of the letter.
This commit is contained in:
Chris Hill-Scott
2018-11-22 12:16:32 +00:00
parent 0ed66828fc
commit b317bd7a0b
2 changed files with 13 additions and 10 deletions

View File

@@ -48,6 +48,7 @@
.page-footer {
margin-bottom: 0;
min-height: 50px;
}
.notification-status {

View File

@@ -51,22 +51,24 @@
<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 as a PDF</a>
</p>
{% endif %}
{% endif %}
{{ template|string }}
{% if template.template_type != 'letter' %}
{% if template.template_type == 'email' %}<div class="js-stick-at-bottom-when-scrolling">{% endif %}
{% if template.template_type == 'letter' %}
<div class="js-stick-at-bottom-when-scrolling">
<div class="page-footer">
<div>&nbsp;</div>
<a class="page-footer-right-aligned-link" href="{{ url_for('main.view_letter_notification_as_preview', service_id=current_service.id, notification_id=notification_id, filetype='pdf') }}" download>Download as a PDF</a>
</div>
</div>
{% elif template.template_type == 'email' %}
<div class="js-stick-at-bottom-when-scrolling">
{{ ajax_block(partials, updates_url, 'status', finished=finished) }}
</div>
{% elif template.template_type == 'sms' %}
{{ ajax_block(partials, updates_url, 'status', finished=finished) }}
{% if template.template_type == 'email' %}</div>{% endif %}
{% endif %}
{% if current_user.has_permissions('send_messages') and current_user.has_permissions('view_activity') and template.template_type == 'sms' and can_receive_inbound %}