wip: show pricing

This commit is contained in:
Björn Fromme
2025-09-02 16:59:55 +02:00
parent 60b655a195
commit 0e0ce254a9
19 changed files with 602 additions and 183 deletions
+37 -7
View File
@@ -27,9 +27,9 @@
<div class="grid grid-cols-2 gap-4 pb-4">
{{ form_row(participant.firstName) }}
{{ form_row(participant.lastName) }}
{# hx-swap="none" tells HTMX not to do a normal swap, as OOB will handle it #}
{{ form_row(participant.dateOfBirth, {
'attr': {
'hx-trigger': 'change',
'hx-post': path('app_booking_create_step_2_refresh'),
'hx-swap': 'none'
}
@@ -47,9 +47,9 @@
{{ form_row(participant.bodyDimensions.weight) }}
</div>
<div class="grid grid-cols-2 gap-4">
{# hx-swap="none" tells HTMX not to do a normal swap, as OOB will handle it #}
{{ form_row(participant.assignedRoomId, {
'attr': {
'hx-trigger': 'change',
'hx-post': path('app_booking_create_step_2_refresh'),
'hx-swap': 'none'
}
@@ -60,19 +60,49 @@
</div>
<div class="grid grid-cols-2 gap-4">
{% if participant.skiPass is defined %}
{{ form_row(participant.skiPass) }}
{{ form_row(participant.skiPass, {
'attr': {
'hx-trigger': 'change',
'hx-post': path('app_booking_create_step_2_refresh'),
'hx-swap': 'none'
}
}) }}
{% endif %}
{% if participant.courses is defined %}
{{ form_row(participant.courses) }}
{{ form_row(participant.courses, {
'attr': {
'hx-trigger': 'change',
'hx-post': path('app_booking_create_step_2_refresh'),
'hx-swap': 'none'
}
}) }}
{% endif %}
{% if participant.additionalServices is defined %}
{{ form_row(participant.additionalServices) }}
{{ form_row(participant.additionalServices, {
'attr': {
'hx-trigger': 'change',
'hx-post': path('app_booking_create_step_2_refresh'),
'hx-swap': 'none'
}
}) }}
{% endif %}
{% if participant.rentals is defined %}
{{ form_row(participant.rentals) }}
{{ form_row(participant.rentals, {
'attr': {
'hx-trigger': 'change',
'hx-post': path('app_booking_create_step_2_refresh'),
'hx-swap': 'none'
}
}) }}
{% endif %}
{% if participant.board is defined %}
{{ form_row(participant.board) }}
{{ form_row(participant.board, {
'attr': {
'hx-trigger': 'change',
'hx-post': path('app_booking_create_step_2_refresh'),
'hx-swap': 'none'
}
}) }}
{% endif %}
</div>
</div>