Merge pull request #922 from alphagov/cancelled-jobs

Let users cancel a job
This commit is contained in:
Chris Hill-Scott
2016-09-06 17:12:19 +01:00
committed by GitHub
7 changed files with 109 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
{% from "components/table.html" import list_table, field, right_aligned_field_heading, date_field, row_heading %}
{% from "components/page-footer.html" import page_footer %}
<div class="ajax-block-container">
{% if job.job_status == 'scheduled' %}
@@ -6,6 +7,14 @@
<p>
Sending will start at {{ job.scheduled_for|format_time }}
</p>
<div class="page-footer">
<form method="post">
{{ page_footer(
button_text="Cancel sending",
destructive=True
) }}
</form>
</div>
{% else %}