2016-03-02 17:36:20 +00:00
|
|
|
{% extends "withnav_template.html" %}
|
|
|
|
|
{% from "components/banner.html" import banner %}
|
2016-06-28 09:21:46 +01:00
|
|
|
{% from "components/ajax-block.html" import ajax_block %}
|
2017-03-22 10:55:15 +00:00
|
|
|
{% from "components/page-footer.html" import page_footer %}
|
2020-03-03 14:27:13 +00:00
|
|
|
{% from "components/page-header.html" import page_header %}
|
2016-03-02 17:36:20 +00:00
|
|
|
|
2017-02-13 10:45:15 +00:00
|
|
|
{% block service_page_title %}
|
2020-01-08 12:23:09 +00:00
|
|
|
{{ job.original_file_name }}
|
2016-03-02 17:36:20 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block maincolumn_content %}
|
|
|
|
|
|
2020-03-03 14:27:13 +00:00
|
|
|
{{ page_header(
|
|
|
|
|
job.original_file_name,
|
|
|
|
|
back_link=None if just_sent else url_for('main.uploads', service_id=current_service.id)
|
|
|
|
|
) }}
|
2016-03-02 17:36:20 +00:00
|
|
|
|
2020-03-03 14:27:13 +00:00
|
|
|
{% if just_sent and job.template_type == 'letter' %}
|
2018-11-29 11:37:38 +00:00
|
|
|
{{ banner(just_sent_message, type='default', with_tick=True) }}
|
2017-07-13 11:28:37 +01:00
|
|
|
{% else %}
|
2020-01-08 16:23:43 +00:00
|
|
|
{{ ajax_block(partials, updates_url, 'status', finished=job.processing_finished) }}
|
2017-07-13 11:28:37 +01:00
|
|
|
{% endif %}
|
2020-01-08 16:23:43 +00:00
|
|
|
{{ ajax_block(partials, updates_url, 'counts', finished=job.processing_finished) }}
|
|
|
|
|
{{ ajax_block(partials, updates_url, 'notifications', finished=job.processing_finished) }}
|
2016-03-02 17:36:20 +00:00
|
|
|
|
2020-01-08 12:23:09 +00:00
|
|
|
{% if job.letter_job_can_be_cancelled %}
|
2019-06-18 15:52:29 +01:00
|
|
|
<div class="js-stick-at-bottom-when-scrolling">
|
|
|
|
|
<div class="page-footer">
|
|
|
|
|
<span class="page-footer-delete-link page-footer-delete-link-without-button">
|
2020-02-10 12:13:24 +00:00
|
|
|
<a class="govuk-link govuk-link--destructive" href="{{ url_for('main.cancel_letter_job', service_id=current_service.id, job_id=job.id) }}">Cancel sending these letters</a>
|
2019-06-18 15:52:29 +01:00
|
|
|
</span>
|
|
|
|
|
{% else %}
|
|
|
|
|
<div> </div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
2016-03-02 17:36:20 +00:00
|
|
|
{% endblock %}
|