feat: display booked insurance in edit mode
This commit is contained in:
@@ -179,10 +179,23 @@
|
|||||||
}) }}
|
}) }}
|
||||||
|
|
||||||
<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) #}
|
||||||
{% set showBulkInsurance = participantIndex > 0 and bookingDto.participants[0].bulkInsuranceBooking %}
|
{% 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>
|
||||||
|
|
||||||
{% if showBulkInsurance %}
|
{# Insurance field OR assigned insurance display for dependent participants (create mode) #}
|
||||||
|
{% else %}
|
||||||
|
{% set showBulkInsurance = participantIndex > 0 and bookingDto.participants[0].bulkInsuranceBooking %}
|
||||||
|
|
||||||
|
{% if showBulkInsurance %}
|
||||||
<fieldset class="mb-1">
|
<fieldset class="mb-1">
|
||||||
<legend class="font-semibold mb-1">Reiseversicherung</legend>
|
<legend class="font-semibold mb-1">Reiseversicherung</legend>
|
||||||
<div class="text-sm text-gray-600">
|
<div class="text-sm text-gray-600">
|
||||||
@@ -221,6 +234,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user