{% from "components/email-message.html" import email_message %} {% from "components/sms-message.html" import sms_message %}
{% if 'email' == template.template_type %} {{ email_message( template.formatted_subject_as_markup, template.formatted_as_markup, id=template.id ) }} {% elif 'sms' == template.template_type %} {{ sms_message( template.formatted_as_markup, id=template.id ) }} {% endif %}
{% if current_user.has_permissions(permissions=['send_texts', 'send_emails', 'send_letters']) %} Send {{ 'text messages' if 'sms' == template.template_type else 'emails' }} {% endif %} {% if current_user.has_permissions(permissions=['manage_templates'], admin_override=True) %} Edit template {% endif %} API info