feat: indicate family insurance eligibility

This commit is contained in:
Björn Fromme
2026-08-05 15:11:58 +02:00
parent 0b642dcfe4
commit 2cfa87f44b
12 changed files with 327 additions and 234 deletions
@@ -551,6 +551,15 @@
</div>
{% else %}
<div class="pb-4">
{# The applicant has to choose an insurance before the dependents' dates of birth
are known, so a family insurance cannot be offered at that point. Once the
constellation qualifies, this standing hint points them back at the option. #}
{% if participantIndex == 0 and bookingCreateContext is defined and bookingCreateContext.familyInsuranceUpgradeAvailable %}
{% include '_partials/_alert.html.twig' with {
level: 'info',
messages: ['Für eure Konstellation ist auch eine Familienversicherung verfügbar und kann über die anmeldende Person gebucht werden.']
} %}
{% endif %}
<fieldset class="border border-primary-bg">
<legend class="{{ html_classes('w-full bg-primary-bg p-2 font-semibold uppercase', { 'text-red-500': form.insurance is defined and not form.insurance.vars.valid }) }}">
Reiseversicherung*