2016-09-09 15:41:32 +01:00
|
|
|
{% from "components/table.html" import list_table, field, right_aligned_field_heading, row_heading, notification_status_field %}
|
2016-09-01 15:40:49 +01:00
|
|
|
{% from "components/page-footer.html" import page_footer %}
|
2016-03-02 17:36:20 +00:00
|
|
|
|
2016-09-01 11:06:52 +01:00
|
|
|
<div class="ajax-block-container">
|
|
|
|
|
{% if job.job_status == 'scheduled' %}
|
2016-06-28 09:21:46 +01:00
|
|
|
|
2016-09-01 11:06:52 +01:00
|
|
|
<p>
|
2016-10-12 09:20:32 +01:00
|
|
|
Sending will start {{ job.scheduled_for|format_datetime_relative }}
|
2016-09-01 11:06:52 +01:00
|
|
|
</p>
|
2016-09-01 15:40:49 +01:00
|
|
|
<div class="page-footer">
|
|
|
|
|
<form method="post">
|
|
|
|
|
{{ page_footer(
|
|
|
|
|
button_text="Cancel sending",
|
|
|
|
|
destructive=True
|
|
|
|
|
) }}
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
2016-08-25 16:49:31 +01:00
|
|
|
|
2016-09-01 11:06:52 +01:00
|
|
|
{% else %}
|
2016-08-25 16:49:31 +01:00
|
|
|
|
2016-09-01 11:06:52 +01:00
|
|
|
{% if notifications %}
|
|
|
|
|
<div class="dashboard-table">
|
|
|
|
|
{% endif %}
|
2016-06-13 14:13:23 +01:00
|
|
|
|
2016-09-01 11:06:52 +01:00
|
|
|
{% if not help %}
|
|
|
|
|
{% if percentage_complete < 100 %}
|
|
|
|
|
<p class="bottom-gutter-1-2 hint">
|
|
|
|
|
Report is {{ "{:.0f}%".format(percentage_complete) }} complete…
|
|
|
|
|
</p>
|
|
|
|
|
{% elif notifications %}
|
|
|
|
|
<p class="bottom-gutter">
|
|
|
|
|
<a href="{{ download_link }}" download="download" class="heading-small">Download this report</a>
|
|
|
|
|
 
|
|
|
|
|
<span id="time-left">{{ time_left }}</span>
|
|
|
|
|
</p>
|
|
|
|
|
{% endif %}
|
2016-07-11 13:53:55 +01:00
|
|
|
{% endif %}
|
2016-08-25 16:49:31 +01:00
|
|
|
|
2016-09-01 11:06:52 +01:00
|
|
|
{% call(item, row_number) list_table(
|
|
|
|
|
notifications,
|
|
|
|
|
caption=uploaded_file_name,
|
|
|
|
|
caption_visible=False,
|
|
|
|
|
empty_message="No messages to show",
|
|
|
|
|
field_headings=[
|
|
|
|
|
'Recipient',
|
|
|
|
|
'Status'
|
|
|
|
|
],
|
|
|
|
|
field_headings_visible=False
|
2016-08-25 16:49:31 +01:00
|
|
|
) %}
|
2016-09-01 11:06:52 +01:00
|
|
|
{% call row_heading() %}
|
2016-09-09 12:25:39 +01:00
|
|
|
<p>{{ item.to }}</p>
|
2016-09-01 11:06:52 +01:00
|
|
|
{% endcall %}
|
2016-09-09 15:40:27 +01:00
|
|
|
{{ notification_status_field(item) }}
|
2016-08-25 16:49:31 +01:00
|
|
|
{% endcall %}
|
2016-06-28 09:21:46 +01:00
|
|
|
|
2016-09-01 11:06:52 +01:00
|
|
|
{% if more_than_one_page %}
|
|
|
|
|
<p class="table-show-more-link">
|
|
|
|
|
Only showing the first 50 rows
|
|
|
|
|
</p>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{% if notifications %}
|
|
|
|
|
</div>
|
2016-08-25 16:49:31 +01:00
|
|
|
{% endif %}
|
|
|
|
|
|
2016-08-02 10:34:27 +01:00
|
|
|
{% endif %}
|
2016-09-01 11:06:52 +01:00
|
|
|
</div>
|