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

{% trans "Send out emails" %}

{% block inner %}
{% csrf_token %} {% if is_preview %} {% for k, l in request.POST.lists %} {% if k != "action" %} {% for v in l %} {% endfor %} {% endif %} {% endfor %} {% endif %} {% bootstrap_form_errors form %}
{% trans "Recipients" %} {% bootstrap_field form.recipients layout='horizontal' %} {% 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.not_checked_in layout='horizontal' %} {% bootstrap_field form.checkin_lists layout='horizontal' %}
{% trans "Content" %} {% bootstrap_field form.subject layout='horizontal' %} {% bootstrap_field form.message layout='horizontal' %} {% bootstrap_field form.attachment layout='horizontal' %} {% bootstrap_field form.attach_tickets layout='horizontal' %}
{% if is_preview %}
{% trans "E-mail preview" %}
{% for locale, out in output.items %}
{{ out.subject|safe }}

{{ out.html|safe }} {% if out.attachment %}

{{ out.attachment.filename }}

{% endif %} {% if form.cleaned_data.attach_tickets %}

{% trans "Tickets" %}

{% endif %}
{% endfor %}
{% endif %}
{% if not is_preview %} {% trans "You need to preview your email before you can send it." %}    {% else %} {% endif %}
{% endblock %} {% endblock %}