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>
|
2017-07-04 09:32:09 +01: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 %}
|
2017-06-24 17:12:45 +01:00
|
|
|
sent
|
|
|
|
|
{% 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>
|
|
|
|
|
{% 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
|
|
|
|
|
|
|
|
{% endblock %}
|