{% extends "orga/mails/base.html" %} {% load i18n %} {% load static %} {% block extra_title %}{% translate "Email editor" %} :: {% endblock extra_title %} {% block mail_content %}
{% csrf_token %}

{% block email_editor_title %} {% translate "Email editor" %} {% endblock email_editor_title %}

{% block email_editor_title_detail %}{% endblock email_editor_title_detail %}

{% include "common/forms/errors.html" %}
{% translate "Recipients" %} {% block recipient_form %}{% endblock recipient_form %}
{% translate "Advanced settings" %}
{% block advanced_recipient_form %} {{ form.reply_to.as_field_group }} {{ form.bcc.as_field_group }} {% endblock advanced_recipient_form %}
{% translate "Content" %} {{ form.subject.as_field_group }} {{ form.text.as_field_group }}
{% translate "Placeholders" %} {% include "orga/mails/_placeholder_group.html" with placeholders=form.grouped_placeholders.submission tag="submission" %} {% include "orga/mails/_placeholder_group.html" with placeholders=form.grouped_placeholders.slot tag="slot" %} {% include "orga/mails/_placeholder_group.html" with placeholders=form.grouped_placeholders.user tag="user" %} {% include "orga/mails/_placeholder_group.html" with placeholders=form.grouped_placeholders.event tag="event" %} {% include "orga/mails/_placeholder_group.html" with placeholders=form.grouped_placeholders.other tag="other" %}
{% block email_editor_preview %} {% if request.method == "POST" %}
{% translate "E-mail preview" %}
{% blocktranslate trimmed with count=mail_count %} Roughly {{ count }} emails will be generated. {% endblocktranslate %}
{% if form.warnings %}
{% blocktranslate trimmed %} You have placeholders in your email that are either not valid or not valid for every email! {% endblocktranslate %}
    {# { is the HTML entity for {, which would break django template syntax #} {% for w in form.warnings %}
  • {{{ w }}}
  • {% endfor %}
{% blocktranslate trimmed %} Emails where placeholders are invalid will not be created! For example, if you are using {session_room}, but some proposals don’t have a room yet, only emails for proposals with a scheduled room will be created. {% endblocktranslate %}
{% endif %}
{% for locale, out in output.items %}
{{ out.subject|safe }}

{{ out.html|safe }}
{% endfor %}
{% endif %} {% endblock email_editor_preview %} {% block skip_queue %} {% if form.skip_queue and request.method == "POST" %}
{{ form.skip_queue.as_field_group }} {% endif %} {% endblock skip_queue %} {% block email_editor_actions %}
{% if request.method == "POST" %} {% endif %}
{% endblock email_editor_actions %}
{% endblock mail_content %}