2015-12-14 16:53:07 +00:00
|
|
|
{% extends "withnav_template.html" %}
|
2015-12-17 11:14:19 +00:00
|
|
|
{% from "components/table.html" import 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 %}
|
2015-11-30 15:13:25 +00:00
|
|
|
|
|
|
|
|
{% block page_title %}
|
|
|
|
|
GOV.UK Notify | Notifications activity
|
|
|
|
|
{% 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">
|
|
|
|
|
{{ uploaded_file_name }} sent with {{ template_used }}
|
|
|
|
|
</h1>
|
2015-11-30 15:13:25 +00:00
|
|
|
|
2015-12-17 14:05:35 +00:00
|
|
|
{{ banner(flash_message) }}
|
|
|
|
|
|
2015-12-17 11:52:24 +00:00
|
|
|
<ul class="grid-row job-totals">
|
|
|
|
|
<li class="column-one-third">
|
|
|
|
|
{{ big_number(
|
|
|
|
|
counts.total,
|
|
|
|
|
'text message' if 1 == counts.total else 'text messages'
|
|
|
|
|
)}}
|
|
|
|
|
</li>
|
|
|
|
|
<li class="column-one-third">
|
|
|
|
|
{{ big_number(
|
|
|
|
|
counts.failed,
|
|
|
|
|
'failed delivery' if 1 == counts.failed else 'failed deliveries'
|
|
|
|
|
)}}
|
|
|
|
|
</li>
|
|
|
|
|
<li class="column-one-third">
|
|
|
|
|
{{ big_number(
|
|
|
|
|
cost, 'total cost'
|
|
|
|
|
)}}
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
<p>
|
|
|
|
|
You uploaded contact-demo.csv today at 13:42
|
|
|
|
|
</p>
|
2015-12-17 11:14:19 +00:00
|
|
|
|
|
|
|
|
{% call(item) table(
|
|
|
|
|
messages,
|
2015-12-17 11:52:24 +00:00
|
|
|
caption='Messages',
|
2015-12-17 11:14:19 +00:00
|
|
|
caption_visible=False,
|
|
|
|
|
field_headings=[
|
|
|
|
|
'To',
|
|
|
|
|
'Message',
|
|
|
|
|
right_aligned_field_heading('Delivery status')
|
|
|
|
|
]
|
|
|
|
|
) %}
|
|
|
|
|
{% call field() %}
|
|
|
|
|
<a href="{{ url_for('.shownotification', notification_id=item.id) }}">{{item.phone}}</a>
|
|
|
|
|
{% endcall %}
|
|
|
|
|
{% call field() %}
|
|
|
|
|
<a href="{{ url_for('.shownotification', notification_id=item.id) }}">{{item.message}}</a>
|
|
|
|
|
{% endcall %}
|
|
|
|
|
{% call field(
|
|
|
|
|
align='right',
|
|
|
|
|
status='error' if item.status == 'Failed' else 'default'
|
|
|
|
|
) %}
|
|
|
|
|
{{ item.status }} {{ item.time }}
|
|
|
|
|
{% endcall %}
|
|
|
|
|
{% endcall %}
|
2015-11-30 15:13:25 +00:00
|
|
|
|
|
|
|
|
{% endblock %}
|