<!--
SPDX-FileCopyrightText: 2025-present Tobias Kunze
SPDX-License-Identifier: AGPL-3.0-only WITH LicenseRef-Pretalx-AGPL-3.0-Terms
-->

{% extends "orga/generic/list.html" %}

{% load i18n %}
{% load static %}

{% block scripts %}
    <script defer src="{% static "common/js/ui/dialog.js" %}"></script>
{% endblock scripts %}

{% block page_title %}
    {{ generic_title }}
    <span data-dialog-target="#info-dialog" data-toggle="dialog">
        <i class="fa fa-question-circle-o text-info ml-2"></i>
    </span>
{% endblock page_title %}

{% block list_content %}
    <dialog id="info-dialog">
        <div class="alert alert-info">
            <div>
                <p>
                    {% blocktranslate trimmed %}
                        You can edit the default templates and your custom templates for emails here.
                        If you want to send emails to some or all of your speakers, head over to the
                        "Send Emails" tab. Mails queued for sending are in the "Outbox" tab.
                    {% endblocktranslate %}
                </p>
                <p>
                    {% blocktranslate trimmed %}
                        There are different placeholders available depending on the template type.
                        They are explained in detail once you start editing a template.
                    {% endblocktranslate %}
                </p>
            </div>
        </div>
    </dialog>

    {{ block.super }}
{% endblock list_content %}
