{# 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 the SVG needs no confirm dialogs or inline CSRF tokens -- clicking your own desk always just opens this. #} {% 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 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-post: htmx issues the release request directly, so this never submits the surrounding edit form and no nested
is needed. #}
{{ form_end(form) }} {% endblock %}