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

{% block body %}
    <section class="clearfix">
        <div class="content-copy">
            <h1>Neues Objekt anlegen</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.type, {label: 'Typ'}) }}
                    {{ form_row(form.description, {label: 'Beschreibung'}) }}
                    {{ form_row(form.equipment, {label: 'Ausstattung'}) }}
                    {{ form_row(form.adress1, {label: 'Adresse 1'}) }}
                    {{ form_row(form.adress2, {label: 'Adresse 2'}) }}
                    {{ form_row(form.zipCode, {label: 'PLZ'}) }}
                    {{ form_row(form.city, {label: 'Ort'}) }}
                    {{ form_row(form.maximumPersons, {label: 'Maximale Personenanzahl'}) }}
                    {{ form_row(form.deposit, {label: 'Kaution'}) }}

                    {#
                    <div class="checkbox">
                        {{ form_widget(form.calendarVisible) }}
                        <label for="{{ form.calendarVisible.vars.id }}">
                            Kalender sichtbar
                        </label>
                        {{ form_errors(form.calendarVisible) }}
                    </div>
                    #}

                    <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/lodgings"
               class="btn btn-primary"
               rel="nofollow"
            >
                Zurück
            </a>
        </div>
    </section><!-- end section -->
{% endblock body %}