{% extends "orga/settings/base.html" %}
{% load bootstrap4 %}
{% load i18n %}
{% block settings_content %}

<div class="flex-container"><div class="flex-content">

    <form method="post" action="" enctype="multipart/form-data">
        {% csrf_token %}
        <legend>
            {% trans "General information" %}
        </legend>

        {% bootstrap_field form.name layout='event' %}
        {% bootstrap_field form.slug layout='event' %}
        {% bootstrap_field form.date_from layout='event' %}
        {% bootstrap_field form.date_to layout='event' %}
        {% bootstrap_field form.email layout='event' %}

        <legend>
            {% trans "Display settings" %}
        </legend>
        {% bootstrap_field form.is_public layout='event' %}
        {% bootstrap_field form.landing_page_text layout='event' %}
        {% bootstrap_field form.timezone layout='event' %}
        {% bootstrap_field form.locale layout='event' %}
        {% bootstrap_field form.locales layout='event' %}
        {% bootstrap_field form.primary_color layout='event' %}
        {% bootstrap_field form.custom_css layout='event' %}
        {% bootstrap_field form.logo layout='event' %}
        {% bootstrap_field sform.show_schedule layout='event' %}

        <div class="form-group row">
            <div class="ml-auto col-md-9">
                {% if action == "edit" %}
                    <button type="submit" class="btn btn-primary">{% trans "Save" %}</button>
                {% elif action == "view" %}
                    <a class="btn btn-primary" href={{ request.event.orga_urls.edit_settings }}>{% trans "Edit" %}</a>
                {% endif %}
            </div>
        </div>
    </form>
</div></div>

{% endblock %}
