feat: prevent editing of applicant's personal data in booking
This commit is contained in:
@@ -37,13 +37,13 @@
|
||||
</div>
|
||||
<div>
|
||||
<h3 class="text-lg font-semibold">
|
||||
Anmelder
|
||||
Anmelder:in
|
||||
</h3>
|
||||
{{ bookingData.applicant.firstName }} {{ bookingData.applicant.name }}
|
||||
</div>
|
||||
<div>
|
||||
<h3 class="text-lg font-semibold">
|
||||
Anzahl Teilnehmer
|
||||
Anzahl Teilnehmer:innen
|
||||
</h3>
|
||||
{{ bookingData.participants|length }}
|
||||
</div>
|
||||
@@ -76,7 +76,7 @@
|
||||
Unterkunft: {{ mutableData.items['accommodation'].mutableBefore|date('d.m.Y') }}
|
||||
</li>
|
||||
<li>
|
||||
Teilnehmer: {{ mutableData.items['participant_data'].mutableBefore|date('d.m.Y') }}
|
||||
Teilnehmer:innen: {{ mutableData.items['participant_data'].mutableBefore|date('d.m.Y') }}
|
||||
</li>
|
||||
<li>
|
||||
Zusatzleistungen: {{ mutableData.items['additional_services'].mutableBefore|date('d.m.Y') }}
|
||||
@@ -102,6 +102,16 @@
|
||||
</svg>
|
||||
</div>
|
||||
<div class="hidden" {{ stimulus_target('toggle', 'toggle') }}>
|
||||
{#
|
||||
{% if child.vars.data.personId == bookingData.applicant.personId %}
|
||||
<div class="pt-4">
|
||||
{% include '_partials/_alert.html.twig' with {
|
||||
'level': 'info',
|
||||
'messages': ['Bitte die persönlichen Daten über den Reiter \'Meine Daten\' bearbeiten']
|
||||
} %}
|
||||
</div>
|
||||
{% endif %}
|
||||
#}
|
||||
<div class="flex flex-col space-y-4 pt-4">
|
||||
<div class="relative">
|
||||
<h3 class="text-xl font-semibold">
|
||||
|
||||
Reference in New Issue
Block a user