{% extends 'layout.html.twig' %} {% block content %} {% include '_partials/_flashes.html.twig' %} {{ form_start(form) }} {% if not form.vars.valid %} {% include '_partials/_alert.html.twig' with { 'level': 'error', 'title': 'Die Buchung konnte nicht aktualisiert werden' } %} {% for child in form.participants.children %} {% if not child.vars.valid %} {% set participant = child.vars.data %} {% set messages = [] %} {% for field in child.children %} {% for error in field.vars.errors %} {% set messages = messages|merge([field.vars.label ~ ': ' ~ error.message]) %} {% endfor %} {% endfor %} {% include '_partials/_alert.html.twig' with { 'level': 'error', 'title': 'Teilnehmer:in ' ~ participant.index ~ ':' ~ participant.firstName ~ participant.lastName, 'messages': messages } %} {% endif %} {% endfor %} {% endif %}

Buchung bearbeiten

Reisedaten

Reise

{{ bookingData.travel }}

Reisezeitraum

{{ travelData.dateFrom|date('d.m.Y') }} - {{ travelData.dateTo|date('d.m.Y') }}

Buchungsdatum

{{ bookingData.bookingDate|date('d.m.Y') }}

Vorgangsnummer

{{ bookingData.bookingNumber }}

Rechnungsnummer

{{ bookingData.invoiceNumber }}

Anmelder:in

{{ bookingData.applicant.firstName }} {{ bookingData.applicant.name }}

Anzahl Teilnehmer:innen

{{ bookingData.participants|length }}

Gesamtpreis

{{ bookingData.calculatedTotalPrice|format_currency('EUR') }}

Inklusivleistungen

{% if travelData.includedServices | length == 0 %} - {% else %}
    {% for selectionGroup in travelData.includedServices %} {% for service in selectionGroup.selections %}
  • {{ service.label }}
  • {% endfor %} {% endfor %}
{% endif %}

Aktualisierung möglich bis

  • Zusatzleistungen: {% if mutableData.items['additional_services'].mutable %}{{ mutableData.items['additional_services'].mutableBefore|date('d.m.Y') }}{% else %}nicht mehr möglich{% endif %}
  • Beförderung: {% if mutableData.items['transportation'].mutable %}{{ mutableData.items['transportation'].mutableBefore|date('d.m.Y') }}{% else %}nicht mehr möglich{% endif %}
  • Zustiege: {% if mutableData.items['pickup'].mutable %}{{ mutableData.items['pickup'].mutableBefore|date('d.m.Y') }}{% else %}nicht mehr möglich{% endif %}
{% for child in form.participants %} {% set participant = child.vars.data %}
{% if participant.status == 'S' %} {% do child.setRendered %} {% endif %}
Teilnehmer:in {{ participant.index }}: {{ participant.firstName }} {{ participant.lastName }} {% if participant.status == 'S' %} storniert{% endif %}
{% if participant.status != 'S' %} {% endif %}
{% endfor %}
zurück
{{ form_rest(form) }} {{ form_end(form) }} {% endblock %}