Files
notifications-admin/app/templates/views/jobs/job.html
T

41 lines
1.5 KiB
HTML
Raw Normal View History

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 %}
{% from "components/back-link/macro.njk" import govukBackLink %}
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 backLink %}
{% if not just_sent %}
{{ govukBackLink({ "href": url_for('main.uploads', service_id=current_service.id) }) }}
{% endif %}
{% endblock %}
2016-03-02 17:36:20 +00:00
{% block maincolumn_content %}
{{ page_header(job.original_file_name) }}
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) }}
{% else %}
2020-01-08 16:23:43 +00:00
{{ ajax_block(partials, updates_url, 'status', finished=job.processing_finished) }}
{% 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">
2022-03-24 12:58:08 +00:00
<span class="page-footer-link page-footer-delete-link-without-button">
<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>&nbsp;</div>
{% endif %}
2016-03-02 17:36:20 +00:00
{% endblock %}