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

{% extends "orga/base.html" %}

{% load i18n %}

{% block extra_title %}{% if request.event.is_public %}{% translate "Deactivate event" %}{% else %}{% translate "Go live" %}{% endif %} :: {% endblock extra_title %}

{% block content %}
    <h2>
        {% if request.event.is_public %}
            {% translate "Deactivate event" %}
        {% else %}
            {% translate "Go live" %}
        {% endif %}
    </h2>

    {% if request.event.is_public %}
        {% blocktranslate trimmed %}
            Your event is currently live and publicly visible.
            If you take it down, it will only be visible to you and your team.
        {% endblocktranslate %}
    {% else %}
        {% blocktranslate trimmed %}
            Your event is currently only visible to you and your team.
            By going live, it will be publicly visible.
        {% endblocktranslate %}

        {% if warnings %}
            <p>
                <h4>{% translate "Your event may not be ready for release yet!" %}</h4>
                <ul>
                    {% for warning in warnings %}
                        <li>
                            {{ warning.text }} <a class="btn btn-sm btn-outline-info" href="{{ warning.url }}">{% translate "Fix me" %}</a>
                        </li>
                    {% endfor %}
                </ul>
            </p>
        {% endif %}
        {% if suggestions %}
            <p>
                <h4>{% translate "There may be easy ways to improve your event before its release!" %}</h4>
                <ul>
                    {% for suggestion in suggestions %}
                        <li>
                            {{ suggestion.text }} <a class="btn btn-sm btn-outline-info" href="{{ suggestion.url }}">{% translate "Fix me" %}</a>
                        </li>
                    {% endfor %}
                </ul>
            </p>
        {% endif %}
    {% endif %}
    <p></p>
    {% include "orga/includes/base_form.html" %}
{% endblock content %}
