mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 02:23:11 -04:00
This follows the pattern of what we’ve done with services, users and events. It gives us a better interface to the data we get back from the API than dealing with the raw JSON directly. Now is a good time to do this because we’re going to be making a bunch of changes to the jobs pages, and those changes will be easier to code and understand with a sesnsible model behind them.
35 lines
1.2 KiB
HTML
35 lines
1.2 KiB
HTML
{% extends "withnav_template.html" %}
|
|
{% from "components/banner.html" import banner %}
|
|
{% from "components/ajax-block.html" import ajax_block %}
|
|
{% from "components/page-footer.html" import page_footer %}
|
|
|
|
{% block service_page_title %}
|
|
{{ job.original_file_name }}
|
|
{% endblock %}
|
|
|
|
{% block maincolumn_content %}
|
|
|
|
<h1 class="heading-large">
|
|
{{ job.original_file_name }}
|
|
</h1>
|
|
|
|
{% if just_sent %}
|
|
{{ banner(just_sent_message, type='default', with_tick=True) }}
|
|
{% else %}
|
|
{{ ajax_block(partials, updates_url, 'status', finished=finished) }}
|
|
{% endif %}
|
|
{{ ajax_block(partials, updates_url, 'counts', finished=finished) }}
|
|
{{ ajax_block(partials, updates_url, 'notifications', finished=finished) }}
|
|
|
|
{% if job.letter_job_can_be_cancelled %}
|
|
<div class="js-stick-at-bottom-when-scrolling">
|
|
<div class="page-footer">
|
|
<span class="page-footer-delete-link page-footer-delete-link-without-button">
|
|
<a href="{{ url_for('main.cancel_letter_job', service_id=current_service.id, job_id=job.id) }}">Cancel sending these letters</a>
|
|
</span>
|
|
{% else %}
|
|
<div> </div>
|
|
{% endif %}
|
|
|
|
{% endblock %}
|