2017-12-20 16:28:40 +00:00
|
|
|
|
{% from "components/big-number.html" import big_number %}
|
|
|
|
|
|
{% from "components/table.html" import list_table, field, hidden_field_heading, row_heading, text_field %}
|
2020-09-04 14:32:07 +01:00
|
|
|
|
{% from "components/page-header.html" import page_header %}
|
2017-12-20 16:28:40 +00:00
|
|
|
|
{% from "components/pill.html" import pill %}
|
|
|
|
|
|
|
|
|
|
|
|
{% extends "withnav_template.html" %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block service_page_title %}
|
|
|
|
|
|
Usage
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block maincolumn_content %}
|
|
|
|
|
|
|
2020-09-04 14:32:07 +01:00
|
|
|
|
{{ page_header('Usage', size='medium') }}
|
2017-12-20 16:28:40 +00:00
|
|
|
|
|
|
|
|
|
|
<div class="bottom-gutter">
|
|
|
|
|
|
{{ pill(years, selected_year, big_number_args={'smallest': True}) }}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div id='pill-selected-item'>
|
2020-02-19 11:57:15 +00:00
|
|
|
|
<div class='govuk-grid-row'>
|
2020-02-19 12:29:28 +00:00
|
|
|
|
<div class='govuk-grid-column-one-third'>
|
2017-12-20 16:28:40 +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>
|
2020-02-19 12:29:28 +00:00
|
|
|
|
<div class='govuk-grid-column-one-third'>
|
2017-12-20 16:28:40 +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>
|
|
|
|
|
|
</div>
|
2020-02-19 12:29:28 +00:00
|
|
|
|
<div class='govuk-grid-column-one-third'>
|
2017-12-20 16:28:40 +00:00
|
|
|
|
<h2 class='heading-small'>Letters</h2>
|
|
|
|
|
|
<div class="keyline-block">
|
|
|
|
|
|
{{ big_number(letter_sent, 'sent', smaller=True) }}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2020-02-19 11:57:15 +00:00
|
|
|
|
<div class='govuk-grid-row'>
|
2020-02-19 12:29:28 +00:00
|
|
|
|
<div class='govuk-grid-column-one-third'>
|
2017-12-20 16:28:40 +00:00
|
|
|
|
<div class="keyline-block">
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2020-02-19 12:29:28 +00:00
|
|
|
|
<div class='govuk-grid-column-one-third'>
|
2017-12-20 16:28:40 +00:00
|
|
|
|
<div class="keyline-block">
|
|
|
|
|
|
{{ big_number(
|
|
|
|
|
|
(sms_chargeable * sms_rate),
|
|
|
|
|
|
'spent',
|
|
|
|
|
|
currency="£",
|
|
|
|
|
|
smaller=True
|
|
|
|
|
|
) }}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2020-02-19 12:29:28 +00:00
|
|
|
|
<div class='govuk-grid-column-one-third'>
|
2017-12-20 16:28:40 +00:00
|
|
|
|
<div class="keyline-block">
|
|
|
|
|
|
{{ big_number(
|
|
|
|
|
|
letter_cost,
|
|
|
|
|
|
'spent',
|
|
|
|
|
|
currency="£",
|
|
|
|
|
|
smaller=True
|
|
|
|
|
|
) }}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
{% if months %}
|
2019-10-25 15:07:34 +01:00
|
|
|
|
<div class="dashboard-table usage-table body-copy-table">
|
2017-12-20 16:28:40 +00:00
|
|
|
|
{% 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(
|
|
|
|
|
|
(sms_rate * month.paid) + month.letter_total,
|
|
|
|
|
|
currency="£",
|
|
|
|
|
|
smallest=True
|
|
|
|
|
|
) }}
|
2019-06-04 16:26:00 +01:00
|
|
|
|
<ul>
|
2017-12-20 16:28:40 +00:00
|
|
|
|
{% if month.free %}
|
2021-01-06 13:41:16 +00:00
|
|
|
|
<li class="tabular-numbers">{{ month.free|format_thousands }} free {{ month.free|message_count_label('sms', suffix='') }}</li>
|
2017-12-20 16:28:40 +00:00
|
|
|
|
{% endif %}
|
|
|
|
|
|
{% if month.paid %}
|
2021-01-06 13:41:16 +00:00
|
|
|
|
<li class="tabular-numbers">{{ month.paid|message_count('sms') }} at
|
2017-12-20 16:28:40 +00:00
|
|
|
|
{{- ' {:.2f}p'.format(sms_rate * 100) }}</li>
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
{% for letter in month.letters%}
|
2020-07-03 17:39:45 +01:00
|
|
|
|
{% if letter.billing_units %}
|
2021-01-06 13:41:16 +00:00
|
|
|
|
<li class="tabular-numbers">{{ "{:,} {}".format(letter.billing_units, letter.postage_description) }} {{ letter.billing_units|message_count_label('letter', suffix='') }} at
|
2020-07-14 14:45:37 +01:00
|
|
|
|
{{ letter.rate | format_number_in_pounds_as_currency }}</li>
|
2017-12-20 16:28:40 +00:00
|
|
|
|
{% endif %}
|
|
|
|
|
|
{% endfor %}
|
2019-06-04 16:26:00 +01:00
|
|
|
|
{% if not (month.free or month.paid or month.letters) %}
|
|
|
|
|
|
<li aria-hidden="true">–</li>
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
</ul>
|
2017-12-20 16:28:40 +00:00
|
|
|
|
{% endcall %}
|
|
|
|
|
|
{% endcall %}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2020-02-19 11:57:15 +00:00
|
|
|
|
<div class="govuk-grid-row">
|
2020-02-19 12:29:28 +00:00
|
|
|
|
<div class="govuk-grid-column-one-third">
|
2017-12-20 16:28:40 +00:00
|
|
|
|
<p class="align-with-heading-copy">
|
2019-10-25 15:07:34 +01:00
|
|
|
|
Financial year ends 31 March
|
2017-12-20 16:28:40 +00:00
|
|
|
|
</p>
|
|
|
|
|
|
</div>
|
2020-02-19 12:36:02 +00:00
|
|
|
|
<div class="govuk-grid-column-two-thirds">
|
2017-12-20 16:28:40 +00:00
|
|
|
|
<p class="align-with-heading-copy">
|
|
|
|
|
|
What counts as 1 text message?<br />
|
2019-12-06 07:53:46 +00:00
|
|
|
|
See <a class="govuk-link govuk-link--no-visited-state" href="{{ url_for('.pricing') }}">pricing</a>.
|
2017-12-20 16:28:40 +00:00
|
|
|
|
</p>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
{% endblock %}
|