Buchung bearbeiten
{% if bookingEditContext.isDirty %} {% endif %}
{% block participant_cards %}
Teilnehmer:innen
{% if app.session.flashBag.peek('booking_edit_notice')|length > 0 %} {% include '_partials/_alert.html.twig' with { level: 'info', title: 'Hinweis', messages: app.flashes('booking_edit_notice') } %} {% endif %} {% if bookingEditContext.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 bookingEditContext.hasValidationErrors %} {% 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 bookingEditContext.bookingDto.participants %}
{% set isCanceled = (bookingEditContext.bookingData.participantsStatus[loop.index0] ?? null) == 'S' %}
{% include 'booking/_participant_card.html.twig' with {
'cardData': bookingEditContext.cardsData[loop.index0],
'index': loop.index0,
'participantNumber': loop.index,
'mode': 'edit',
'bookingId': bookingEditContext.bookingData.id,
'isCanceled': isCanceled,
'isSubmitted': bookingEditContext.isSubmitted,
} %}
{% endfor %}
{% endblock %}