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 %}
|
2016-01-07 20:11:22 +00:00
|
|
|
{% from "components/page-footer.html" import page_footer %}
|
2015-11-30 14:20:17 +00:00
|
|
|
|
|
|
|
|
{% block page_title %}
|
2015-12-10 17:54:05 +00:00
|
|
|
GOV.UK Notify | Send text messages
|
2015-11-30 14:20:17 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
2015-12-14 16:53:07 +00:00
|
|
|
{% block maincolumn_content %}
|
|
|
|
|
|
2015-11-30 14:20:17 +00:00
|
|
|
|
2015-12-10 17:54:05 +00:00
|
|
|
<h1 class="heading-xlarge">Send text messages</h1>
|
2015-11-30 14:20:17 +00:00
|
|
|
|
2015-12-10 17:54:05 +00:00
|
|
|
<h2 class="heading-medium">Check and confirm</h2>
|
2015-11-30 14:20:17 +00:00
|
|
|
|
2015-12-20 00:00:01 +00:00
|
|
|
<form method="POST" enctype="multipart/form-data">
|
|
|
|
|
|
2016-01-07 20:11:22 +00:00
|
|
|
{{ page_footer(
|
|
|
|
|
"Send {} text messages".format(number_of_recipients)
|
2015-12-20 00:00:01 +00:00
|
|
|
) }}
|
|
|
|
|
|
|
|
|
|
<h3 class="heading-small">First 3 messages</h2>
|
|
|
|
|
|
|
|
|
|
{% if recipients.first_three and recipients.last_three %}
|
|
|
|
|
|
|
|
|
|
{% for recipient in recipients.first_three %}
|
|
|
|
|
{{ sms_message(
|
|
|
|
|
message_template|replace_placeholders(recipient),
|
|
|
|
|
"{}".format(recipient['phone'])
|
|
|
|
|
) }}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
|
|
<h3 class="heading-small">Last 3 messages</h2>
|
|
|
|
|
|
|
|
|
|
{% for recipient in recipients.last_three %}
|
|
|
|
|
{{ sms_message(
|
|
|
|
|
message_template|replace_placeholders(recipient),
|
|
|
|
|
"{}".format(recipient['phone'])
|
|
|
|
|
) }}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
|
|
{% for recipient in recipients.all %}
|
|
|
|
|
{{ sms_message(
|
|
|
|
|
message_template|replace_placeholders(recipient),
|
|
|
|
|
"{}".format(recipient['phone'])
|
|
|
|
|
) }}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
<p>
|
|
|
|
|
<a href="#">See all</a>
|
|
|
|
|
</p>
|
|
|
|
|
|
2016-01-07 20:11:22 +00:00
|
|
|
{{ page_footer(
|
|
|
|
|
button_text = "Send {} text messages".format(number_of_recipients),
|
|
|
|
|
back_link = url_for(".sendsms")
|
2015-12-20 00:00:01 +00:00
|
|
|
) }}
|
|
|
|
|
|
|
|
|
|
</form>
|
2015-12-11 17:25:04 +00:00
|
|
|
|
2015-11-30 14:20:17 +00:00
|
|
|
{% endblock %}
|