{% extends "withnav_template.html" %} {% from "components/sms-message.html" import sms_message %} {% from "components/table.html" import table, field %} {% from "components/placeholder.html" import placeholder %} {% from "components/page-footer.html" import page_footer %} {% block page_title %} GOV.UK Notify | Send text messages {% endblock %} {% block maincolumn_content %}

Send text messages

Check and confirm

{{ page_footer( "Send {} text messages".format(number_of_recipients) ) }}

First 3 messages

{% 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 %}

Last 3 messages

{% 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 %}

See all

{{ page_footer( button_text = "Send {} text messages".format(number_of_recipients), back_link = url_for(".sendsms") ) }}
{% endblock %}