{% extends 'admin.html.twig' %}
{% form_theme form 'default/form/theme.html.twig' %}

{% block body %}
    <section class="clearfix">
        <div class="content-copy">
            <h1>Saison {{ season.name }} bearbeiten</h1>

            <form class="st-booking-form" method="post">

                {{ form_errors(form) }}

                <div id="message"></div>

                <div class="form-box">
                    {{ form_row(form.name, {label: 'Name'}) }}
                    {{ form_row(form.fromDate, {label: 'Von'}) }}
                    {{ form_row(form.toDate, {label: 'Bis'}) }}
                    {{ form_row(form.minimumStay, {label: 'Mindestbelegung in Tagen'}) }}
                    {{ form_row(form.description, {label: 'Beschreibung'}) }}
                    {{ form_row(form.onlyWeekday, {label: 'Exklusiver Wochentag'}) }}

                    <div class="col-md-12 col-sm-12 col-xs-12">
                        <button type="submit" value="SEND" id="submit"
                                class="btn btn-primary btn-lg border-radius"
                        >
                            Speichern
                        </button>
                    </div>
                </div><!-- end form-box -->
                {{ form_rest(form) }}
            </form>
            <a href="/admin/fewo/seasons"
               class="btn btn-primary"
               rel="nofollow"
            >
                Zurück
            </a>
        </div>
    </section><!-- end section -->
{% endblock body %}