{# Editing one occurrence. For a booking that belongs to a series this is the "override": only this day moves, the rest of the series is untouched and the occurrence is flagged as differing from it. Releasing lives here too rather than on the floor plan, so a card needs no confirm dialogs or inline CSRF tokens -- clicking your own desk always just opens this. The release button opens the shared confirmation modal over this one. #} {% extends 'htmx_modal.html.twig' %} {% block title %}{{ resource.label }} ändern{% endblock %} {% block content %} {{ form_start(form, { attr: { 'hx-post': form.vars.action, 'hx-target': '#htmx-modal', 'hx-swap': 'outerHTML', } }) }} {{ form_errors(form) }}

{{ resource.type.label }} · {{ booking.date|format_datetime(pattern: 'EEEE, d. MMMM y') }} {%- if resource.group %} · {{ resource.group.label }}{% endif %}

{% if booking.partOfSeries %}
Teil einer Serie: {{ booking.series.describe }}. Eine Änderung hier gilt nur für diesen Tag.
{% endif %} {% include 'booking/_fields.html.twig' %}
{# type="button" with its own hx-get: htmx opens the confirmation modal over this one, so nothing submits the surrounding edit form and no nested
is needed. Confirming removes both modals -- see Booking\ReleaseController. #}
{{ form_end(form) }} {% endblock %}