{% extends "orga/mails/base.html" %} {% comment %} SPDX-FileCopyrightText: 2017-present Tobias Kunze SPDX-License-Identifier: AGPL-3.0-only WITH LicenseRef-Pretalx-AGPL-3.0-Terms {% endcomment %} {% 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" %}
{% 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 "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 output %}
{% translate "Email 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 %}
1 %}lang="{{ locale }}"{% endif %} class="mail-preview"> {{ 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 %} {% if confirm_skip_queue %}
{% blocktranslate trimmed count count=mail_count %} You are about to immediately send {{ count }} email. {% plural %} You are about to immediately send {{ count }} emails. {% endblocktranslate %}
{% blocktranslate trimmed %} These emails will be sent right now instead of being placed in the outbox. You will not be able to review or recall them. Please confirm that you want to send them. {% endblocktranslate %}
{% endif %} {% include "orga/includes/submit_row.html" %}
{% endblock mail_content %}