2016-04-20 15:37:17 +01:00
|
|
|
|
{% from "components/big-number.html" import big_number %}
|
2018-10-03 15:15:19 +01:00
|
|
|
|
{% from "components/message-count-label.html" import message_count_label %}
|
2016-09-29 18:44:10 +01:00
|
|
|
|
{% from "components/table.html" import list_table, field, hidden_field_heading, row_heading, text_field %}
|
2017-01-25 15:59:06 +00:00
|
|
|
|
{% from "components/pill.html" import pill %}
|
2016-04-20 15:37:17 +01:00
|
|
|
|
|
|
|
|
|
|
{% extends "withnav_template.html" %}
|
|
|
|
|
|
|
2017-02-13 10:45:15 +00:00
|
|
|
|
{% block service_page_title %}
|
|
|
|
|
|
Usage
|
2016-04-20 15:37:17 +01:00
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block maincolumn_content %}
|
|
|
|
|
|
|
2017-02-23 15:41:56 +00:00
|
|
|
|
<h1 class='heading-large'>Usage</h1>
|
2017-01-25 15:59:06 +00:00
|
|
|
|
|
|
|
|
|
|
<div class="bottom-gutter">
|
2017-02-14 14:21:36 +00:00
|
|
|
|
{{ pill(years, selected_year, big_number_args={'smallest': True}) }}
|
2016-04-20 15:37:17 +01:00
|
|
|
|
</div>
|
2017-02-14 14:21:36 +00:00
|
|
|
|
<div id='pill-selected-item'>
|
|
|
|
|
|
<div class='grid-row'>
|
2017-12-20 16:28:40 +00:00
|
|
|
|
<div class='column-half'>
|
2017-02-14 14:21:36 +00:00
|
|
|
|
<h2 class='heading-small'>Emails</h2>
|
|
|
|
|
|
<div class="keyline-block">
|
|
|
|
|
|
{{ big_number(emails_sent, 'sent', smaller=True) }}
|
|
|
|
|
|
{{ big_number("Unlimited", 'free allowance', smaller=True) }}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2017-12-20 16:28:40 +00:00
|
|
|
|
<div class='column-half'>
|
2017-02-14 14:21:36 +00:00
|
|
|
|
<h2 class='heading-small'>Text messages</h2>
|
|
|
|
|
|
<div class="keyline-block">
|
|
|
|
|
|
{{ big_number(sms_sent, 'sent', smaller=True) }}
|
|
|
|
|
|
{{ big_number(sms_free_allowance, 'free allowance', smaller=True) }}
|
|
|
|
|
|
{{ big_number(sms_allowance_remaining, 'free allowance remaining', smaller=True) }}
|
|
|
|
|
|
{% if sms_chargeable %}
|
|
|
|
|
|
{{ big_number(
|
|
|
|
|
|
sms_chargeable,
|
|
|
|
|
|
'at {:.2f} pence per message'.format(sms_rate * 100),
|
|
|
|
|
|
smaller=True
|
|
|
|
|
|
) }}
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
</div>
|
2016-04-20 15:37:17 +01:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2017-02-14 14:21:36 +00:00
|
|
|
|
|
|
|
|
|
|
<div class='grid-row'>
|
2017-12-20 16:28:40 +00:00
|
|
|
|
<div class='column-half'>
|
2017-02-14 14:21:36 +00:00
|
|
|
|
<div class="keyline-block">
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2017-12-20 16:28:40 +00:00
|
|
|
|
<div class='column-half'>
|
2017-02-14 14:21:36 +00:00
|
|
|
|
<div class="keyline-block">
|
2016-04-20 15:37:17 +01:00
|
|
|
|
{{ big_number(
|
2017-02-14 14:21:36 +00:00
|
|
|
|
(sms_chargeable * sms_rate),
|
|
|
|
|
|
'spent',
|
|
|
|
|
|
currency="£",
|
2016-05-05 10:34:15 +01:00
|
|
|
|
smaller=True
|
2016-04-20 15:37:17 +01:00
|
|
|
|
) }}
|
2017-02-14 14:21:36 +00:00
|
|
|
|
</div>
|
2016-04-20 15:37:17 +01:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2017-02-14 14:21:36 +00:00
|
|
|
|
{% if months %}
|
|
|
|
|
|
<div class="dashboard-table body-copy-table">
|
|
|
|
|
|
{% call(month, row_index) list_table(
|
|
|
|
|
|
months,
|
|
|
|
|
|
caption="Total spend",
|
|
|
|
|
|
caption_visible=False,
|
|
|
|
|
|
empty_message='',
|
|
|
|
|
|
field_headings=[
|
|
|
|
|
|
'By month',
|
|
|
|
|
|
hidden_field_heading('Cost'),
|
|
|
|
|
|
],
|
|
|
|
|
|
field_headings_visible=True
|
|
|
|
|
|
) %}
|
|
|
|
|
|
{% call row_heading() %}
|
|
|
|
|
|
{{ month.name }}
|
|
|
|
|
|
{% endcall %}
|
|
|
|
|
|
{% call field(align='left') %}
|
|
|
|
|
|
{{ big_number(
|
2017-12-20 16:28:40 +00:00
|
|
|
|
sms_rate * month.paid,
|
2017-02-14 14:21:36 +00:00
|
|
|
|
currency="£",
|
|
|
|
|
|
smallest=True
|
|
|
|
|
|
) }}
|
2017-12-20 16:28:40 +00:00
|
|
|
|
<ul>
|
2017-02-14 14:21:36 +00:00
|
|
|
|
{% if month.free %}
|
2018-10-03 15:15:19 +01:00
|
|
|
|
<li class="tabular-numbers">{{ "{:,}".format(month.free) }} free {{ message_count_label(month.free, 'sms', '') }}</li>
|
2017-02-14 14:21:36 +00:00
|
|
|
|
{% endif %}
|
|
|
|
|
|
{% if month.paid %}
|
2018-10-03 15:15:19 +01:00
|
|
|
|
<li class="tabular-numbers">{{ "{:,}".format(month.paid) }} {{ message_count_label(month.free, 'sms', '') }}at
|
2017-02-14 14:21:36 +00:00
|
|
|
|
{{- ' {:.2f}p'.format(sms_rate * 100) }}</li>
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
{% if not (month.free or month.paid) %}
|
|
|
|
|
|
<li aria-hidden="true">–</li>
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
{% endcall %}
|
|
|
|
|
|
{% endcall %}
|
2016-04-20 15:37:17 +01:00
|
|
|
|
</div>
|
2017-02-14 14:21:36 +00:00
|
|
|
|
{% endif %}
|
2016-09-29 18:44:10 +01:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="grid-row">
|
2017-01-25 15:59:06 +00:00
|
|
|
|
<div class="column-half">
|
|
|
|
|
|
<p class="align-with-heading-copy">
|
|
|
|
|
|
Financial year ends 31 March.
|
|
|
|
|
|
</p>
|
|
|
|
|
|
</div>
|
2016-09-29 18:44:10 +01:00
|
|
|
|
<div class="column-half">
|
|
|
|
|
|
<p class="align-with-heading-copy">
|
2016-04-20 15:37:17 +01:00
|
|
|
|
What counts as 1 text message?<br />
|
|
|
|
|
|
See <a href="{{ url_for('.pricing') }}">pricing</a>.
|
|
|
|
|
|
</p>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2018-10-03 15:15:19 +01:00
|
|
|
|
{% endblock %}
|