{% extends "pretixcontrol/event/base.html" %} {% load i18n %} {% load bootstrap3 %} {% block title %}{% trans "Send out SMS" %}{% endblock %} {% block content %}

{% trans "Send out SMS" %}

{% if not has_client_secret %}
{% blocktrans trimmed %} You currently cannot send SMS in your events because Juvare Notify has not been configured yet. Please do so now (or ask your administrator for help): {% endblocktrans %} {% trans "Settings" %}
{% else %}
{% blocktrans trimmed %} Please note that SMS are always sent on a per-order basis, not per-recipient. SMS will only be sent if there is a phone number associated with the order. {% endblocktrans %}
{% csrf_token %} {% bootstrap_form_errors form %} {% bootstrap_field form.sendto layout='horizontal' %} {% if form.subevent %} {% bootstrap_field form.subevent layout='horizontal' %} {% bootstrap_field form.subevents_from layout='horizontal' %} {% bootstrap_field form.subevents_to layout='horizontal' %} {% endif %} {% bootstrap_field form.created_from layout='horizontal' %} {% bootstrap_field form.created_to layout='horizontal' %} {% bootstrap_field form.items layout='horizontal' %} {% bootstrap_field form.message layout='horizontal' %} {% if request.method == "POST" %}
{% trans "SMS preview" %}
{% for locale, out in output.items %}
{{ out.subject|safe }}

{{ out.html|safe }}
{% endfor %}
{% endif %}
{% endif %} {% endblock %}