2015-12-14 16:53:07 +00:00
|
|
|
|
{% extends "withnav_template.html" %}
|
2016-01-07 12:29:56 +00:00
|
|
|
|
{% from "components/table.html" import list_table, field, right_aligned_field_heading %}
|
2015-12-17 14:05:35 +00:00
|
|
|
|
{% from "components/big-number.html" import big_number %}
|
|
|
|
|
|
{% from "components/banner.html" import banner %}
|
2016-02-03 14:43:16 +00:00
|
|
|
|
{% from "components/sms-message.html" import sms_message %}
|
2015-11-30 15:13:25 +00:00
|
|
|
|
|
|
|
|
|
|
{% block page_title %}
|
2016-02-08 09:23:51 +00:00
|
|
|
|
{{ uploaded_file_name }} – GOV.UK Notify
|
2015-11-30 15:13:25 +00:00
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
2015-12-14 16:53:07 +00:00
|
|
|
|
{% block maincolumn_content %}
|
2015-11-30 15:13:25 +00:00
|
|
|
|
|
2015-12-17 11:14:19 +00:00
|
|
|
|
<h1 class="heading-large">
|
2016-02-03 15:24:50 +00:00
|
|
|
|
{{ uploaded_file_name }}
|
2016-02-01 16:57:29 +00:00
|
|
|
|
</h1>
|
2015-11-30 15:13:25 +00:00
|
|
|
|
|
2016-02-04 12:38:35 +00:00
|
|
|
|
<div class="grid-row">
|
|
|
|
|
|
<div class="column-two-thirds">
|
|
|
|
|
|
{{ sms_message(
|
|
|
|
|
|
template['content'],
|
|
|
|
|
|
)}}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2016-02-03 14:43:16 +00:00
|
|
|
|
|
|
|
|
|
|
<p class='heading-small'>
|
|
|
|
|
|
Started {{ uploaded_file_time|format_datetime }}
|
2016-02-01 16:57:29 +00:00
|
|
|
|
</p>
|
2015-12-17 14:05:35 +00:00
|
|
|
|
|
2016-02-01 16:57:29 +00:00
|
|
|
|
<ul class="grid-row job-totals">
|
2016-02-03 14:43:16 +00:00
|
|
|
|
<li class="column-one-quarter">
|
|
|
|
|
|
{{ big_number(
|
2016-02-10 09:46:02 +00:00
|
|
|
|
0, 'queued'
|
2016-02-03 14:43:16 +00:00
|
|
|
|
)}}
|
|
|
|
|
|
</li>
|
|
|
|
|
|
<li class="column-one-quarter">
|
2016-02-01 16:57:29 +00:00
|
|
|
|
{{ big_number(
|
2016-02-10 09:46:02 +00:00
|
|
|
|
1, 'sent'
|
2016-02-01 16:57:29 +00:00
|
|
|
|
)}}
|
|
|
|
|
|
</li>
|
2016-02-03 15:24:50 +00:00
|
|
|
|
<li class="column-one-quarter">
|
2016-02-01 16:57:29 +00:00
|
|
|
|
{{ big_number(
|
|
|
|
|
|
counts.failed,
|
2016-02-03 14:43:16 +00:00
|
|
|
|
'failed'
|
2016-02-01 16:57:29 +00:00
|
|
|
|
)}}
|
|
|
|
|
|
</li>
|
2016-02-03 15:24:50 +00:00
|
|
|
|
<li class="column-one-quarter">
|
2016-02-01 16:57:29 +00:00
|
|
|
|
{{ big_number(
|
|
|
|
|
|
cost, 'total cost'
|
|
|
|
|
|
)}}
|
|
|
|
|
|
</li>
|
|
|
|
|
|
</ul>
|
2015-12-17 11:52:24 +00:00
|
|
|
|
|
2016-01-07 12:29:56 +00:00
|
|
|
|
{% call(item) list_table(
|
2016-02-04 12:38:35 +00:00
|
|
|
|
[
|
2016-02-10 09:40:05 +00:00
|
|
|
|
{'row': 1, 'phone': '+447700 900995', 'template': template['name'], 'status': 'queued'}
|
2016-02-04 12:38:35 +00:00
|
|
|
|
],
|
2016-02-03 14:43:16 +00:00
|
|
|
|
caption=uploaded_file_name,
|
2016-02-03 15:24:50 +00:00
|
|
|
|
caption_visible=False,
|
2016-02-03 14:43:16 +00:00
|
|
|
|
empty_message="Messages go here",
|
2015-12-17 11:14:19 +00:00
|
|
|
|
field_headings=[
|
2016-02-10 09:40:05 +00:00
|
|
|
|
'Row',
|
2016-02-04 12:38:35 +00:00
|
|
|
|
'Recipient',
|
|
|
|
|
|
'Template',
|
2016-02-03 15:24:50 +00:00
|
|
|
|
right_aligned_field_heading('Status')
|
2015-12-17 11:14:19 +00:00
|
|
|
|
]
|
|
|
|
|
|
) %}
|
|
|
|
|
|
{% call field() %}
|
2016-02-10 09:40:05 +00:00
|
|
|
|
{{ item.row }}.
|
|
|
|
|
|
{% endcall %}
|
|
|
|
|
|
{% call field() %}
|
|
|
|
|
|
{{item.phone[:3]}} •••• ••••••
|
2015-12-17 11:14:19 +00:00
|
|
|
|
{% endcall %}
|
|
|
|
|
|
{% call field() %}
|
2016-02-04 12:38:35 +00:00
|
|
|
|
{{item.template}}
|
2015-12-17 11:14:19 +00:00
|
|
|
|
{% endcall %}
|
|
|
|
|
|
{% call field(
|
|
|
|
|
|
align='right',
|
|
|
|
|
|
status='error' if item.status == 'Failed' else 'default'
|
|
|
|
|
|
) %}
|
2016-02-04 12:38:35 +00:00
|
|
|
|
{{ item.status }}
|
2016-02-01 16:57:29 +00:00
|
|
|
|
{% endcall %}
|
2015-12-17 11:14:19 +00:00
|
|
|
|
{% endcall %}
|
2015-11-30 15:13:25 +00:00
|
|
|
|
|
|
|
|
|
|
{% endblock %}
|