Files
notifications-admin/app/templates/views/check-sms.html
T

66 lines
1.5 KiB
HTML
Raw Normal View History

2015-12-14 16:53:07 +00:00
{% extends "withnav_template.html" %}
2015-12-10 16:48:07 +00:00
{% from "components/sms-message.html" import sms_message %}
2015-12-10 17:54:05 +00:00
{% from "components/table.html" import table, field %}
{% from "components/placeholder.html" import placeholder %}
2015-12-11 17:25:04 +00:00
{% from "components/submit-form.html" import submit_form %}
{% block page_title %}
2015-12-10 17:54:05 +00:00
GOV.UK Notify | Send text messages
{% endblock %}
2015-12-14 16:53:07 +00:00
{% block maincolumn_content %}
2015-12-10 17:54:05 +00:00
<h1 class="heading-xlarge">Send text messages</h1>
2015-12-10 17:54:05 +00:00
<h2 class="heading-medium">Check and confirm</h2>
2015-12-11 17:25:04 +00:00
{{ submit_form(
"Send {} text messages".format(number_of_recipients),
url_for(".sendsms")
) }}
<h3 class="heading-small">First 3 messages</h2>
2015-12-11 12:02:21 +00:00
2015-12-11 13:52:58 +00:00
{% if recipients.first_three and recipients.last_three %}
{% for recipient in recipients.first_three %}
{{ sms_message(
message_template|replace_placeholders(recipient),
2015-12-11 17:25:04 +00:00
"{}".format(recipient['phone'])
2015-12-11 13:52:58 +00:00
) }}
{% endfor %}
2015-12-11 17:25:04 +00:00
<h3 class="heading-small">Last 3 messages</h2>
2015-12-11 13:52:58 +00:00
{% for recipient in recipients.last_three %}
{{ sms_message(
message_template|replace_placeholders(recipient),
2015-12-11 17:25:04 +00:00
"{}".format(recipient['phone'])
2015-12-11 13:52:58 +00:00
) }}
{% endfor %}
{% else %}
{% for recipient in recipients.all %}
{{ sms_message(
message_template|replace_placeholders(recipient),
2015-12-11 17:25:04 +00:00
"{}".format(recipient['phone'])
2015-12-11 13:52:58 +00:00
) }}
{% endfor %}
{% endif %}
<p>
2015-12-11 17:25:04 +00:00
<a href="#">See all</a>
2015-12-11 13:52:58 +00:00
</p>
2015-12-11 12:02:21 +00:00
2015-12-11 17:25:04 +00:00
{{ submit_form(
"Send {} text messages".format(number_of_recipients),
url_for(".sendsms")
) }}
2015-12-14 16:53:07 +00:00
2015-12-10 17:54:05 +00:00
{% endblock %}