feat: display booked insurance in edit mode

This commit is contained in:
Björn Fromme
2026-03-16 11:59:11 +01:00
parent ea312b9986
commit d20215929d
+15 -1
View File
@@ -179,7 +179,20 @@
}) }} }) }}
<div class="col-span-2"> <div class="col-span-2">
{# Insurance field OR assigned insurance display for dependent participants #} {# Insurance display for edit mode (read-only) #}
{% if bookingDto.mode == constant('App\\Form\\Model\\BookingDto::MODE_EDIT') and form.vars.data.insurance %}
<fieldset class="mb-1">
<legend class="font-semibold mb-1">Reiseversicherung</legend>
<div class="text-sm text-gray-600">
{{ form.vars.data.insurance.label }}
{% if form.vars.data.insurance.price and form.vars.data.insurance.price > 0 %}
<span class="text-gray-500">(€{{ form.vars.data.insurance.price|number_format(2, ',', '.') }})</span>
{% endif %}
</div>
</fieldset>
{# Insurance field OR assigned insurance display for dependent participants (create mode) #}
{% else %}
{% set showBulkInsurance = participantIndex > 0 and bookingDto.participants[0].bulkInsuranceBooking %} {% set showBulkInsurance = participantIndex > 0 and bookingDto.participants[0].bulkInsuranceBooking %}
{% if showBulkInsurance %} {% if showBulkInsurance %}
@@ -221,6 +234,7 @@
{% endif %} {% endif %}
</fieldset> </fieldset>
{% endif %} {% endif %}
{% endif %}
</div> </div>
</div> </div>