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

Send text messages

Check and confirm

Back

{% if recipients.first_three and recipients.last_three %} {% for recipient in recipients.first_three %} {{ sms_message( message_template|replace_placeholders(recipient), "Row {} {}".format(loop.index, recipient['phone']) ) }} {% endfor %}

See rows 4 to {{ number_of_recipients - 3 }}

{% for recipient in recipients.last_three %} {{ sms_message( message_template|replace_placeholders(recipient), "Row {} {}".format(number_of_recipients - 3 + loop.index, recipient['phone']) ) }} {% endfor %} {% else %} {% for recipient in recipients.all %} {{ sms_message( message_template|replace_placeholders(recipient), "Row {} {}".format(loop.index, recipient['phone']) ) }} {% endfor %} {% endif %}

Back

{% endblock %}