2015-12-14 16:37:15 +00:00
|
|
|
|
{% extends "withnav_template.html" %}
|
2016-02-03 14:43:16 +00:00
|
|
|
|
{% from "components/table.html" import list_table, field, right_aligned_field_heading %}
|
2015-12-18 16:36:24 +00:00
|
|
|
|
{% from "components/big-number.html" import big_number %}
|
2015-11-25 16:21:28 +00:00
|
|
|
|
|
|
|
|
|
|
{% block page_title %}
|
2016-02-01 16:57:29 +00:00
|
|
|
|
GOV.UK Notify | Dashboard
|
2015-11-25 16:21:28 +00:00
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
2015-12-14 16:37:15 +00:00
|
|
|
|
{% block maincolumn_content %}
|
2015-11-25 16:21:28 +00:00
|
|
|
|
|
2016-02-01 16:57:29 +00:00
|
|
|
|
<ul class="grid-row job-totals">
|
|
|
|
|
|
<li class="column-half">
|
|
|
|
|
|
{{ big_number(
|
|
|
|
|
|
free_text_messages_remaining,
|
|
|
|
|
|
'free text messages remaining'
|
|
|
|
|
|
)}}
|
|
|
|
|
|
</li>
|
|
|
|
|
|
<li class="column-half">
|
|
|
|
|
|
{{ big_number(
|
|
|
|
|
|
'£' + spent_this_month,
|
|
|
|
|
|
'spent this month'
|
|
|
|
|
|
)}}
|
|
|
|
|
|
</li>
|
|
|
|
|
|
</ul>
|
2015-11-25 16:21:28 +00:00
|
|
|
|
|
2016-02-04 09:58:56 +00:00
|
|
|
|
{% if not jobs %}
|
2016-02-02 13:38:39 +00:00
|
|
|
|
{{ banner(
|
2016-02-04 09:58:56 +00:00
|
|
|
|
"""
|
|
|
|
|
|
<ol>
|
|
|
|
|
|
<li>
|
|
|
|
|
|
<a href='{}'>Add a template</a>
|
|
|
|
|
|
</li>
|
|
|
|
|
|
<li>
|
|
|
|
|
|
<a href='{}'>Send yourself a text message</a>
|
|
|
|
|
|
</li>
|
|
|
|
|
|
</ol>
|
|
|
|
|
|
""".format(
|
|
|
|
|
|
url_for(".add_service_template", service_id=service_id),
|
2016-02-02 17:28:30 +00:00
|
|
|
|
url_for(".choose_sms_template", service_id=service_id)
|
2016-02-02 13:38:39 +00:00
|
|
|
|
)|safe,
|
2016-02-04 09:58:56 +00:00
|
|
|
|
subhead='Get started',
|
2016-02-02 13:38:39 +00:00
|
|
|
|
type="tip"
|
|
|
|
|
|
)}}
|
2016-02-04 09:58:56 +00:00
|
|
|
|
{% else %}
|
2016-02-02 13:38:39 +00:00
|
|
|
|
{% call(item) list_table(
|
2016-02-03 14:43:16 +00:00
|
|
|
|
jobs,
|
2016-02-02 13:38:39 +00:00
|
|
|
|
caption="Recent text messages",
|
|
|
|
|
|
empty_message='You haven’t sent any text messages yet',
|
2016-02-03 14:43:16 +00:00
|
|
|
|
field_headings=['Job', 'Created', right_aligned_field_heading('Status')]
|
2016-02-02 13:38:39 +00:00
|
|
|
|
) %}
|
|
|
|
|
|
{% call field() %}
|
2016-02-03 14:43:16 +00:00
|
|
|
|
<a href="{{ url_for('.view_job', service_id=service_id, job_id=item.id) }}">{{ item.original_file_name }}</a>
|
2016-02-02 13:38:39 +00:00
|
|
|
|
{% endcall %}
|
|
|
|
|
|
{% call field() %}
|
2016-02-03 14:43:16 +00:00
|
|
|
|
{{ item.created_at|format_datetime }}
|
2016-02-02 13:38:39 +00:00
|
|
|
|
{% endcall %}
|
2016-02-03 14:43:16 +00:00
|
|
|
|
{% call field(align='right') %}
|
2016-02-02 13:38:39 +00:00
|
|
|
|
{{ item.status }}
|
|
|
|
|
|
{% endcall %}
|
2016-02-01 16:57:29 +00:00
|
|
|
|
{% endcall %}
|
2016-02-02 13:38:39 +00:00
|
|
|
|
{% endif %}
|
2015-11-25 16:21:28 +00:00
|
|
|
|
|
2015-11-30 14:53:25 +00:00
|
|
|
|
{% endblock %}
|