{# Compact participant card with name, room, price, and edit button #} {% set isCanceled = cardData.isCanceled is defined ? cardData.isCanceled : false %} {% set isValid = cardData.isValid is defined ? cardData.isValid : true %} {% set isSubmitted = isSubmitted|default(false) %} {% set mode = mode|default('create') %} {# Determine display states #} {% set showAsError = not isValid and isSubmitted %} {% set showAsIncomplete = not isValid and not isSubmitted %} {# Build edit URL for linking #} {% if mode == 'edit' %} {% set editUrl = path('app_booking_edit_participant', {id: bookingId, index: index}) %} {% else %} {% set editUrl = path('app_booking_create_step_2_participant', {index: index}) %} {% endif %}
{{ participantNumber }}
{% if isCanceled %} {{ cardData.name }} {% else %} {{ cardData.name }} {% endif %}
{% if isCanceled %}
storniert
{% elseif showAsError %}
unvollständige/fehlerhafte Daten
{% else %}
{{ cardData.roomName }}
{{ cardData.price }}
{% endif %}
{% if not isCanceled %} {% endif %}