{% extends "orga/mails/base.html" %}
{% load bootstrap4 %}
{% load i18n %}

{% block mail_content %}
    {% if placeholders %}
        <div class="alert alert-info"><span>
            {% blocktranslate trimmed %}
                You have some variables available that will be rendered into the mails
                (in the appropriate language) before sending:
            {% endblocktranslate %}
            <ul>
                {% for placeholder in placeholders %}
                    <li>{{ placeholder.name }}{% if placeholder.explanation %}: {{ placeholder.explanation }}{% endif %}</li>
                {% endfor %}
            </ul>
        </span></div>
    {% endif %}
    <form method="post">
        {% csrf_token %}
        <h2>{% translate "Mail Template Editor" %}</h2>
        {% bootstrap_form_errors form %}
        {% bootstrap_form form layout='event' %}
        {% include "orga/submit_row.html" %}
    </form>
{% endblock %}
