{% extends 'Admin/layout.html.twig' %}
{% set themeLight = true %}

{% block body %}
    <header class="header">
        <div class="header-wrapper">
            <h1 class="header-title">Ajouter une disponibilité {% if 'precis' == typedispo %}précise{% else %}hebdomadaire{% endif %}</h1>
            <nav class="header-actions">
                <ul class="btns">
                    <li>
                        <button class="btn btn-save" form="form-operationitdlc-availability">
                            {{ 'action.save'|trans({}, 'action') }}
                        </button>
                    </li>
                </ul>
            </nav>
        </div>
    </header>

    {{ form_start(form, {'attr': {'id': 'form-operationitdlc-availability'}}) }}
        <div>
            {{ form_row('precis' == typedispo ? form.dateVisite : form.dayoftheweek) }}
            {{ form_row(form.startTime) }}
            {{ form_row(form.endTime) }}
        </div>
    {{ form_end(form) }}
{% endblock body %}
