diff --git a/src/Form/ParticipantType.php b/src/Form/ParticipantType.php
index 8ef8d8d..4870b05 100644
--- a/src/Form/ParticipantType.php
+++ b/src/Form/ParticipantType.php
@@ -26,7 +26,7 @@ class ParticipantType extends AbstractType
$participantIndex = $participantData->index;
// don't add any fields for canceled participants
- if ('F' !== $participantData->status) {
+ if ('S' === $participantData->status) {
return;
}
diff --git a/templates/booking/edit.html.twig b/templates/booking/edit.html.twig
index 0fe14d4..b08e601 100644
--- a/templates/booking/edit.html.twig
+++ b/templates/booking/edit.html.twig
@@ -7,7 +7,7 @@
{% set messages = form.vars.errors|map(error => error.message) %}
{% include '_partials/_alert.html.twig' with { 'level': 'error', 'title': 'Die Buchung konnte nicht aktualisiert werden', 'messages': messages } %}
{% endif %}
-
+
@@ -89,16 +89,16 @@
-
- Unterkunft: {{ mutableData.items['accommodation'].mutableBefore|date('d.m.Y') }}
+ Unterkunft: {% if mutableData.items['accommodation'].mutable %}{{ mutableData.items['accommodation'].mutableBefore|date('d.m.Y') }}{% else %}nicht mehr möglich{% endif %}
-
- Zusatzleistungen: {{ mutableData.items['additional_services'].mutableBefore|date('d.m.Y') }}
+ Zusatzleistungen: {% if mutableData.items['additional_services'].mutable %}{{ mutableData.items['additional_services'].mutableBefore|date('d.m.Y') }}{% else %}nicht mehr möglich{% endif %}
-
- Beförderung: {{ mutableData.items['transportation'].mutableBefore|date('d.m.Y') }}
+ Beförderung: {% if mutableData.items['transportation'].mutable %}{{ mutableData.items['transportation'].mutableBefore|date('d.m.Y') }}{% else %}nicht mehr möglich{% endif %}
-
- Zustiege: {{ mutableData.items['pickup'].mutableBefore|date('d.m.Y') }}
+ Zustiege: {% if mutableData.items['pickup'].mutable %}{{ mutableData.items['pickup'].mutableBefore|date('d.m.Y') }}{% else %}nicht mehr möglich{% endif %}
@@ -108,14 +108,14 @@
{% for child in form.participants %}
{% set participant = child.vars.data %}
- {% if participant.status != 'F' %}
+ {% if participant.status == 'S' %}
{% do child.setRendered %}
{% endif %}
Teilnehmer:in {{ participant.index }}: {{ participant.firstName }} {{ participant.lastName }}
- {% if participant.status != 'F' %} storniert{% endif %}
+ {% if participant.status == 'S' %} storniert{% endif %}
- {% if participant.status != 'F' %}
+ {% if participant.status == 'S' %}
{% set surcharges = bookingData.surchargesForParticipant(participant.index) %}
{% if surcharges|length > 0 %}
@@ -209,7 +209,7 @@
Hin-/Rückreise