wip: booking process, room assignment
This commit is contained in:
@@ -8,26 +8,38 @@
|
||||
<h2>Teilnehmer</h2>
|
||||
{{ form_start(form) }}
|
||||
{% do form.participants.setRendered %}
|
||||
<div class="space-y-8 pb-8">
|
||||
{% for participant in form.participants %}
|
||||
<fieldset class="border rounded-md p-8 pt-4">
|
||||
<legend class="font-bold text-xl px-2">
|
||||
Teilnehmer:in {{ loop.index }}
|
||||
</legend>
|
||||
<div class="grid grid-cols-2 gap-4 pb-4">
|
||||
{{ form_row(participant.firstName) }}
|
||||
{{ form_row(participant.lastName) }}
|
||||
{{ form_row(participant.dateOfBirth) }}
|
||||
{{ form_row(participant.gender) }}
|
||||
{{ form_row(participant.nationality) }}
|
||||
</div>
|
||||
<div class="grid grid-cols-2 gap-4">
|
||||
{{ form_row(participant.email) }}
|
||||
{{ form_row(participant.mobile) }}
|
||||
</div>
|
||||
</fieldset>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% block participants_form %}
|
||||
<div id="participants-form" class="space-y-8 pb-8">
|
||||
{% for participant in form.participants %}
|
||||
<fieldset class="border rounded-md p-8 pt-4">
|
||||
<legend class="font-bold text-xl px-2">
|
||||
Teilnehmer:in {{ loop.index }}
|
||||
</legend>
|
||||
<div class="grid grid-cols-2 gap-4 pb-4">
|
||||
{{ form_row(participant.firstName) }}
|
||||
{{ form_row(participant.lastName) }}
|
||||
{{ form_row(participant.dateOfBirth) }}
|
||||
{{ form_row(participant.gender) }}
|
||||
{{ form_row(participant.nationality) }}
|
||||
</div>
|
||||
<div class="grid grid-cols-2 gap-4">
|
||||
{{ form_row(participant.email) }}
|
||||
{{ form_row(participant.mobile) }}
|
||||
</div>
|
||||
<div class="grid grid-cols-1 gap-4 pt-4">
|
||||
{{ form_row(participant.assignedRoomId, {
|
||||
'attr': {
|
||||
'hx-post': path('app_booking_create_step_2_refresh'),
|
||||
'hx-target': '#participants-form',
|
||||
'hx-select': '#participants-form',
|
||||
'hx-swap': 'outerHTML'
|
||||
}
|
||||
}) }}
|
||||
</div>
|
||||
</fieldset>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
<div class="flex justify-between">
|
||||
<a href="{{ path('app_booking_create_step_1') }}" class="button bg-button bg-button--secondary">Zurück</a>
|
||||
<button type="submit" class="button bg-button bg-button--secondary">Weiter</button>
|
||||
@@ -55,12 +67,12 @@
|
||||
<p>
|
||||
{{ bookingCreateDto.travelData.hotel.name }}
|
||||
</p>
|
||||
{% if bookingCreateDto.participantsCount > 0 %}
|
||||
{% if participantsCount > 0 %}
|
||||
<h4>
|
||||
Anzahl Teilnehmer
|
||||
</h4>
|
||||
<p>
|
||||
{{ bookingCreateDto.participantsCount }}
|
||||
{{ participantsCount }}
|
||||
</p>
|
||||
{% endif %}
|
||||
<h4>
|
||||
|
||||
Reference in New Issue
Block a user