feat: group rentals and rental insurance fields visually
addresses #869ay16cp
This commit is contained in:
@@ -22,7 +22,9 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
<fieldset class="mb-1">
|
<fieldset class="mb-1">
|
||||||
<legend class="font-semibold mb-1">{{ label }}</legend>
|
<legend class="font-semibold mb-1">{{ label }}</legend>
|
||||||
<div class="text-sm text-gray-500">{{ undefinedLabel }}</div>
|
{% if undefinedLabel %}
|
||||||
|
<div class="text-sm text-gray-500">{{ undefinedLabel }}</div>
|
||||||
|
{% endif %}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
@@ -162,22 +164,6 @@
|
|||||||
}
|
}
|
||||||
}) }}
|
}) }}
|
||||||
|
|
||||||
{{ macros.service_field(form, 'rentals', 'Leihmaterial', {
|
|
||||||
'attr': {
|
|
||||||
'hx-trigger': 'change',
|
|
||||||
'hx-post': path(refreshRouteName, refreshRouteParams|default({index: participantIndex})),
|
|
||||||
'hx-target': '#main-content', 'hx-swap': 'innerHTML'
|
|
||||||
}
|
|
||||||
}, 'Bitte zuerst den Skipass auswählen') }}
|
|
||||||
|
|
||||||
{{ macros.checkbox_field(form, 'rentalInsurance', 'Leihmaterial-Versicherung', {
|
|
||||||
'attr': {
|
|
||||||
'hx-trigger': 'change',
|
|
||||||
'hx-post': path(refreshRouteName, refreshRouteParams|default({index: participantIndex})),
|
|
||||||
'hx-target': '#main-content', 'hx-swap': 'innerHTML'
|
|
||||||
}
|
|
||||||
}, 'Nur bei Buchung von Leihmaterial') }}
|
|
||||||
|
|
||||||
{{ macros.service_field(form, 'board', 'Verpflegung', {
|
{{ macros.service_field(form, 'board', 'Verpflegung', {
|
||||||
'attr': {
|
'attr': {
|
||||||
'hx-trigger': 'change',
|
'hx-trigger': 'change',
|
||||||
@@ -186,6 +172,24 @@
|
|||||||
}
|
}
|
||||||
}) }}
|
}) }}
|
||||||
|
|
||||||
|
<div>
|
||||||
|
{{ macros.service_field(form, 'rentals', 'Leihmaterial', {
|
||||||
|
'attr': {
|
||||||
|
'hx-trigger': 'change',
|
||||||
|
'hx-post': path(refreshRouteName, refreshRouteParams|default({index: participantIndex})),
|
||||||
|
'hx-target': '#main-content', 'hx-swap': 'innerHTML'
|
||||||
|
}
|
||||||
|
}, 'Bitte zuerst den Skipass auswählen') }}
|
||||||
|
|
||||||
|
{{ macros.checkbox_field(form, 'rentalInsurance', null, {
|
||||||
|
'attr': {
|
||||||
|
'hx-trigger': 'change',
|
||||||
|
'hx-post': path(refreshRouteName, refreshRouteParams|default({index: participantIndex})),
|
||||||
|
'hx-target': '#main-content', 'hx-swap': 'innerHTML'
|
||||||
|
}
|
||||||
|
}, null) }}
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="col-span-2">
|
<div class="col-span-2">
|
||||||
{# Insurance display for edit mode (read-only) #}
|
{# Insurance display for edit mode (read-only) #}
|
||||||
{% if bookingDto.mode == constant('App\\Form\\Model\\BookingDto::MODE_EDIT') and form.vars.data.participant.insurance %}
|
{% if bookingDto.mode == constant('App\\Form\\Model\\BookingDto::MODE_EDIT') and form.vars.data.participant.insurance %}
|
||||||
|
|||||||
Reference in New Issue
Block a user