{% extends 'layout_booking.html.twig' %} {% block content %} {% include '_partials/_flashes.html.twig' %} {{ form_start(form, { 'attr': { 'class': 'flex-1 flex flex-col min-h-0' } }) }}
{# Sidebar summary #} {% block booking_summary %}
{% include 'booking/_summary.html.twig' with { 'bookingCreateDto': bookingDto, 'summaryData': summaryData, 'mutableData': mutableData|default(null) } %}
{% endblock %} {# Main content area #}
{# Header - desktop only #} {# Scrollable content #}
{% block participant_cards %}

Teilnehmer:innen

{% if isDirty %} {% include '_partials/_alert.html.twig' with { level: 'warning', title: 'Ungespeicherte Änderungen', messages: ['Du hast Änderungen an der Buchung vorgenommen. Bitte denke daran, abschließend den \'Buchung aktualisieren\' Button zu klicken.'] } %} {% endif %} {# Display validation errors #} {% if hasValidationErrors|default(false) %} {% include '_partials/_alert.html.twig' with { level: 'error', title: 'Bitte überprüfe die Teilnehmerdaten', messages: ['Einige Teilnehmer haben noch unvollständige oder fehlerhafte Angaben. Bitte bearbeite die markierten Teilnehmer.'] } %} {% endif %}
{% for participant in bookingDto.participants %} {% set isCanceled = (bookingData.participantsStatus[loop.index0] ?? null) == 'S' %} {% include 'booking/_participant_card.html.twig' with { 'cardData': cardsData[loop.index0], 'index': loop.index0, 'participantNumber': loop.index, 'mode': 'edit', 'bookingId': bookingData.id, 'isCanceled': isCanceled, 'isSubmitted': isSubmitted, } %} {% endfor %}
{% endblock %}
{# Fixed footer #}
{% if isDirty %} {% endif %}
{{ form_rest(form) }} {{ form_end(form) }} {% endblock %}