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

{% trans "Send out emails" %} {{ view_title }}

{% 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" %} {% include form_fragment_name with form=form %}
{% trans "Content" %} {% bootstrap_field form.subject layout='horizontal' %} {% bootstrap_field form.message layout='horizontal' %} {% bootstrap_field form.attachment layout='horizontal' %} {% if form.attach_tickets %} {% bootstrap_field form.attach_tickets layout='horizontal' %} {% endif %} {% if form.attach_ical %} {% bootstrap_field form.attach_ical layout='horizontal' %} {% endif %}
{% if is_preview %}
{% trans "Email 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 %} {% if form.cleaned_data.attach_ical %}
  • {% trans "Attach calendar files" %}
  • {% endif %}
{% endfor %}
{% endif %}
{% if not is_preview %} {% trans "You need to preview your email before you can send it." %}    {% else %} {% endif %}
{% endblock %} {% endblock %}