<!--
SPDX-FileCopyrightText: 2017-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 stylesheets %}
    <link rel="stylesheet" href="{% static "orga/css/ui/dragsort.css" %}">
{% endblock stylesheets %}

{% block scripts %}
    <script defer src="{% static "common/js/ui/dialog.js" %}"></script>
    <script defer src="{% static "orga/js/ui/dragsort.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 title_actions %}
    {% if question_list %}
        <a href="{{ request.event.cfp.urls.remind_questions }}" class="btn btn-info">{% translate "Send out reminders for custom fields without responses" %}</a>
    {% endif %}
{% endblock title_actions %}

{% block list_content %}
    <dialog id="info-dialog">
        <div class="alert alert-info">
            {% blocktranslate trimmed %}
                Custom fields can help you sort out additional details with speakers, such as
                clothing sizes, special requirements such as dietary needs, or accommodation.
                Custom fields can be configured either on a per-proposal level, or per speaker, as
                you see fit.
            {% endblocktranslate %}
        </div>
    </dialog>

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