2017-06-12 17:21:25 +01:00
{% extends "withnav_template.html" %}
{% from "components/banner.html" import banner %}
{% from "components/ajax-block.html" import ajax_block %}
2017-06-24 17:12:45 +01:00
{% from "components/message-count-label.html" import message_count_label %}
2017-06-12 17:21:25 +01:00
{% from "components/page-footer.html" import page_footer %}
{% block service_page_title %}
2017-07-04 14:05:11 +01:00
{{ message_count_label(1, template.template_type, suffix='') | capitalize }}
2017-06-12 17:21:25 +01:00
{% endblock %}
{% block maincolumn_content %}
< h1 class = "heading-large" >
2017-06-24 17:12:45 +01:00
{{ message_count_label(1, template.template_type, suffix='') | capitalize }}
2017-06-12 17:21:25 +01:00
< / h1 >
2017-06-24 17:12:45 +01:00
< p >
2018-03-02 17:06:51 +00:00
{% if is_precompiled_letter %}
2018-03-16 14:41:07 +00:00
Provided as PDF, sent
2017-07-04 09:32:09 +01:00
{% else %}
2018-03-02 17:06:51 +00:00
{% if help %}
{{ template.name }}
{% else %}
< a href = "{{ url_for('.view_template', service_id=current_service.id, template_id=template.id) }}" > {{ template.name }}< / a >
{% endif %}
sent
2017-07-04 09:32:09 +01:00
{% endif %}
2017-06-24 17:12:45 +01:00
{% if job and job.original_file_name != 'Report' %}
from
< a href = "{{ url_for('.view_job', service_id=current_service.id, job_id=job.id) }}" > {{ job.original_file_name }}< / a >
{% elif created_by %}
by {{ created_by.name }}
{% endif %}
on {{ created_at|format_datetime_short }}
< / p >
2017-07-13 13:05:41 +01:00
{% if template.template_type == 'letter' %}
< p >
Estimated delivery date: {{ estimated_letter_delivery_date|string|format_date_short }}
< / p >
2017-11-10 08:42:49 +00:00
< p class = "bottom-gutter" >
2018-01-02 14:38:14 +00:00
< 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 >
2017-11-10 08:42:49 +00:00
< / p >
2017-07-13 13:05:41 +01:00
{% endif %}
2017-06-12 17:21:25 +01:00
{{ template|string }}
2017-07-13 13:05:41 +01:00
{% if template.template_type != 'letter' %}
{{ ajax_block(partials, updates_url, 'status', finished=finished) }}
{% endif %}
2017-06-12 17:21:25 +01:00
2018-03-01 10:30:17 +00:00
{% if current_user.has_permissions('send_messages') and template.template_type == 'sms' and can_receive_inbound %}
2017-10-16 10:30:59 +01:00
< p >
< a href = "{{ url_for('.conversation', service_id=current_service.id, notification_id=notification_id, _anchor='n{}'.format(notification_id)) }}" > See all text messages sent to this phone number< / a >
< / p >
{% endif %}
2017-06-12 17:21:25 +01:00
{% endblock %}