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 %}
|
|
|
|
|
|
{% from "components/pill.html" import pill %}
|
|
|
|
|
|
|
|
|
|
|
|
{% extends "withnav_template.html" %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block service_page_title %}
|
|
|
|
|
|
Usage
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block maincolumn_content %}
|
|
|
|
|
|
|
2023-06-08 13:12:00 -04:00
|
|
|
|
<h1 class="font-body-lg">
|
|
|
|
|
|
Usage
|
|
|
|
|
|
</h1>
|
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'>
|
2022-12-01 08:53:50 -05:00
|
|
|
|
|
2022-10-13 20:51:45 +00:00
|
|
|
|
<div class='govuk-grid-column-one-half'>
|
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) }}
|
2022-04-20 10:49:59 +01:00
|
|
|
|
{% if sms_free_allowance > 0 %}
|
|
|
|
|
|
{{ big_number(sms_allowance_remaining, 'free allowance remaining', smaller=True) }}
|
|
|
|
|
|
{% endif %}
|
2022-04-26 17:37:34 +01:00
|
|
|
|
{% for row in sms_breakdown %}
|
|
|
|
|
|
{% if row.charged_units > 0 %}
|
|
|
|
|
|
{{ big_number(
|
|
|
|
|
|
row.charged_units,
|
|
|
|
|
|
'at {:.2f} pence per message'.format(row.rate * 100),
|
|
|
|
|
|
smaller=True
|
|
|
|
|
|
) }}
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
{% endfor %}
|
2017-12-20 16:28:40 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2023-03-07 17:15:31 -05:00
|
|
|
|
<div class='govuk-grid-column-one-half pilot-disabled'>
|
|
|
|
|
|
<h2 class='heading-small'>Emails</h2>
|
|
|
|
|
|
<div class="keyline-block">
|
2022-12-01 21:49:04 -05:00
|
|
|
|
{{ big_number(emails_sent, 'email disabled during SMS pilot', smaller=True) }}
|
|
|
|
|
|
{{ big_number("", '', smaller=True) }}
|
2017-12-20 16:28:40 +00:00
|
|
|
|
</div>
|
2022-12-01 08:53:50 -05:00
|
|
|
|
</div>
|
2017-12-20 16:28:40 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
|
2022-12-01 08:53:50 -05:00
|
|
|
|
<!-- <div class='govuk-grid-row'>
|
2022-10-13 20:51:45 +00:00
|
|
|
|
<div class='govuk-grid-column-one-half'>
|
2017-12-20 16:28:40 +00:00
|
|
|
|
<div class="keyline-block">
|
|
|
|
|
|
{{ big_number(
|
2022-04-26 15:40:29 +01:00
|
|
|
|
sms_cost,
|
2017-12-20 16:28:40 +00:00
|
|
|
|
'spent',
|
2022-10-12 20:16:22 +00:00
|
|
|
|
currency="$",
|
2017-12-20 16:28:40 +00:00
|
|
|
|
smaller=True
|
2022-12-01 10:18:12 -05:00
|
|
|
|
) }}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class='govuk-grid-column-one-half'>
|
|
|
|
|
|
<div class="keyline-block">
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
2017-12-20 16:28:40 +00:00
|
|
|
|
</div>
|
2022-12-01 08:53:50 -05:00
|
|
|
|
</div> -->
|
2017-12-20 16:28:40 +00:00
|
|
|
|
|
|
|
|
|
|
{% if months %}
|
2023-06-08 13:12:00 -04:00
|
|
|
|
<div class="dashboard-table usage-table body-copy-table margin-top-4">
|
2022-04-29 16:42:22 +01:00
|
|
|
|
{% call(item, row_index) list_table(
|
2017-12-20 16:28:40 +00:00
|
|
|
|
months,
|
|
|
|
|
|
caption="Total spend",
|
|
|
|
|
|
caption_visible=False,
|
|
|
|
|
|
empty_message='',
|
|
|
|
|
|
field_headings=[
|
|
|
|
|
|
'By month',
|
2022-12-01 21:49:04 -05:00
|
|
|
|
hidden_field_heading('Text messages'),
|
2017-12-20 16:28:40 +00:00
|
|
|
|
hidden_field_heading('Cost'),
|
|
|
|
|
|
],
|
|
|
|
|
|
field_headings_visible=True
|
|
|
|
|
|
) %}
|
|
|
|
|
|
{% call row_heading() %}
|
2022-04-29 16:42:22 +01:00
|
|
|
|
{{ item.month }}
|
2017-12-20 16:28:40 +00:00
|
|
|
|
{% endcall %}
|
2022-12-01 21:49:04 -05:00
|
|
|
|
{% for counts, template_type in [
|
|
|
|
|
|
(item.sms_counts.0, 'sms'),
|
|
|
|
|
|
] %}
|
|
|
|
|
|
{% call field(align='left') %}
|
|
|
|
|
|
{{ big_number(
|
|
|
|
|
|
counts.requested,
|
|
|
|
|
|
counts.requested|message_count_label(template_type, suffix=''),
|
|
|
|
|
|
smallest=True,
|
|
|
|
|
|
) }}
|
|
|
|
|
|
{% if counts.requested %}
|
|
|
|
|
|
<span class="{{ 'failure-highlight' if counts.show_warning else '' }}">
|
|
|
|
|
|
{{ "{:,}".format(counts.failed) }} failed
|
|
|
|
|
|
</span>
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
–
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
{% endcall %}
|
|
|
|
|
|
{% endfor %}
|
2017-12-20 16:28:40 +00:00
|
|
|
|
{% call field(align='left') %}
|
|
|
|
|
|
{{ big_number(
|
2022-12-01 10:18:12 -05:00
|
|
|
|
item.sms_cost,
|
2022-10-12 20:16:22 +00:00
|
|
|
|
currency="$",
|
2017-12-20 16:28:40 +00:00
|
|
|
|
smallest=True
|
|
|
|
|
|
) }}
|
2019-06-04 16:26:00 +01:00
|
|
|
|
<ul>
|
2022-04-29 16:42:22 +01:00
|
|
|
|
{% if item.sms_free_allowance_used %}
|
|
|
|
|
|
<li class="tabular-numbers">{{ item.sms_free_allowance_used|format_thousands }} free {{ item.sms_free_count|message_count_label('sms', suffix='') }}</li>
|
2017-12-20 16:28:40 +00:00
|
|
|
|
{% endif %}
|
2022-05-03 13:13:29 +01:00
|
|
|
|
{% for sms in item.sms_breakdown %}
|
2022-05-11 13:28:33 +01:00
|
|
|
|
<li class="tabular-numbers">{{ sms.charged_units|message_count('sms') }} at
|
2022-05-03 13:13:29 +01:00
|
|
|
|
{{- ' {:.2f}p'.format(sms.rate * 100) }}</li>
|
|
|
|
|
|
{% endfor %}
|
2022-12-01 10:18:12 -05:00
|
|
|
|
{% if not (item.sms_free_allowance_used or item.sms_cost) %}
|
2019-06-04 16:26:00 +01:00
|
|
|
|
<li aria-hidden="true">–</li>
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
</ul>
|
2017-12-20 16:28:40 +00:00
|
|
|
|
{% endcall %}
|
2022-12-01 21:49:04 -05:00
|
|
|
|
|
2017-12-20 16:28:40 +00:00
|
|
|
|
{% 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">
|
2022-12-01 10:18:12 -05:00
|
|
|
|
Federal fiscal year ends September 30
|
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 />
|
2023-06-08 13:12:00 -04:00
|
|
|
|
See <a class="usa-link" href="{{ url_for('.pricing') }}">pricing</a>.
|
2017-12-20 16:28:40 +00:00
|
|
|
|
</p>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
{% endblock %}
|