{# The shared body of both booking modals. Which fields exist is decided by the controller (the edit modal removes date and the recurrence fields), so everything here is guarded with `is defined` rather than duplicated into two templates. Show/hide is Stimulus, not htmx: toggling a fieldset needs no server round trip, and the house rule keeps purely client-side behaviour out of htmx. #}
{% if form.date is defined %} {{ form_row(form.date) }} {% endif %}
{{ form_row(form.allDay, { attr: { 'data-action': 'bookingform#toggleTimes' } }) }}
{{ form_row(form.startTime) }} {{ form_row(form.endTime) }}
{% if form.repeat is defined %}
{{ form_row(form.repeat, { attr: { 'data-action': 'bookingform#toggleRepeat' } }) }}
{{ form_row(form.until) }}

Belegte Tage werden übersprungen und danach aufgelistet.

{% endif %}