{% extends "withnav_template.html" %} {% from "components/radios.html" import radio_select %} {% from "components/message-count-label.html" import message_count_label %} {% block service_page_title %} {{ "Error" if error else "Preview" }} {% endblock %} {% block maincolumn_content %} {% if error == 'not-allowed-to-send-to' %} {% with count_of_recipients=1, template_type_label='phone number' %} {% include "partials/check/not-allowed-to-send-to.html" %} {% endwith %} {% elif error == 'too-many-messages' %} {% include "partials/check/too-many-messages.html" %} {% elif error == 'message-too-long' %} {# the only row_errors we can get when sending one off messages is that the message is too long #} {% include "partials/check/message-too-long.html" %} {% else %}

Preview of {{ template.name }}

{% endif %} {{ template|string }}
{% endblock %}