{% 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', 'hx-post': path('app_booking_create_step_2'), 'hx-target': '#main-content', 'hx-swap': 'innerHTML scroll:top' } }) }} {# Pagination - mobile only (above summary) #}
{% include 'booking/_pagination.html.twig' with { 'current_step': 2 } %}
{% block booking_summary %}
{% include 'booking/_summary.html.twig' with { 'bookingCreateDto': bookingDto, 'summaryData': summaryData } %}
{% endblock %} {% block participant_cards %}
{# Pagination - desktop only (fixed above scrollable content) #}

Teilnehmer

{# Display form-level validation errors #} {% if form.vars.submitted and not form.vars.valid %} {% 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 cardData in cardsData %} {% include 'booking/_participant_card.html.twig' with { 'cardData': cardData, 'index': loop.index0, 'participantNumber': loop.index, 'mode': 'create' } %} {% endfor %}
{% endblock %}
{{ form_rest(form) }} {{ form_end(form) }} {% endblock %}