2016-03-17 11:45:48 +00:00
|
|
|
|
{% from "components/table.html" import list_table, field, right_aligned_field_heading, hidden_field_heading %}
|
|
|
|
|
|
|
|
|
|
|
|
{% call(item) list_table(
|
|
|
|
|
|
jobs,
|
|
|
|
|
|
caption="Recent batch jobs",
|
2016-03-21 15:23:46 +00:00
|
|
|
|
empty_message='You haven’t sent any batch messages yet',
|
2016-03-21 13:07:12 +00:00
|
|
|
|
field_headings=['File', 'Started', right_aligned_field_heading('Rows')]
|
2016-03-17 11:45:48 +00:00
|
|
|
|
) %}
|
|
|
|
|
|
{% call field() %}
|
|
|
|
|
|
<a href="{{ url_for('.view_job', service_id=service_id, job_id=item.id) }}">{{ item.original_file_name }}</a>
|
|
|
|
|
|
{% endcall %}
|
|
|
|
|
|
{% call field() %}
|
|
|
|
|
|
{{ item.created_at|format_datetime }}
|
|
|
|
|
|
{% endcall %}
|
|
|
|
|
|
{% call field(align='right') %}
|
|
|
|
|
|
{{ item.notification_count }}
|
|
|
|
|
|
{% endcall %}
|
|
|
|
|
|
{% endcall %}
|
|
|
|
|
|
{% if more_jobs_to_show %}
|
|
|
|
|
|
{% if current_user.has_permissions(['send_texts', 'send_emails', 'send_letters']) %}
|
|
|
|
|
|
<p class="table-show-more-link">
|
2016-03-21 15:23:46 +00:00
|
|
|
|
<a href="{{ url_for('.view_jobs', service_id=service_id) }}">See all sent batch messages</a>
|
2016-03-17 11:45:48 +00:00
|
|
|
|
</p>
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
{% endif %}
|