Buchung Reisekostenversicherung raus, dafür Info Checkbox rein

+ DB travel_booking + travel_cancellation int 1

git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3370 f459cee4-fb09-11de-96c3-f9c5f16c3c76
This commit is contained in:
adametz 2018-02-22 10:51:25 +00:00
parent db05f3aa17
commit dbb34b1af1
7 changed files with 91 additions and 20 deletions

View file

@ -42,6 +42,14 @@ Nicht eingeschlossene, zubuchbare Leistungen:
[o] {{ travel_program_service|raw }}
{% endfor %}
=====================================================================================
Reise-Rücktrittskosten-Versicherung:
=====================================================================================
{% if(booking_request.travelCancellation == 1) %}
[x] Informationen angefordert
{% else %}
[o] Keine Informationen gewünscht
{% endif %}
=====================================================================================
Reiseanmelder{% if booking_request.salutation == 2 %}in{% endif %}

View file

@ -110,27 +110,23 @@
{{ form_errors(form.tripleRoomCount) }}
</td>
</tr>
<tr>
<tr>
<td>Reiseversicherung</td>
<td>
<div class="radio">
<input id="st-no-insurance-opt" type="radio" value=""
name="{{ form.insurance.vars.full_name }}"
{% if form.insurance.vars.value == '' %}checked{% endif %}
>
<label for="st-no-insurance-opt">keine Reiseversicherung</label>
{% if form.travelCancellation is defined %}
<div class="checkbox">
{{ form_widget(form.travelCancellation) }}
<label for="{{ form.travelCancellation.vars.id }}">
STERN TOURS GmbH empfiehlt generell den Abschluss einer Reise-Rücktrittskosten-Versicherung und einer Auslands-Reisekrankenversicherung mit Rücktransport. Wenn Sie eine Versicherung wünschen, dann teilen Sie uns das bitte hier ("JA" auswählen) mit und wir senden Ihnen alle Informationen per Email zu.
</label>
</div>
{% for insuranceForm in form.insurance %}
{% include 'default/components/booking/insurance.html.twig' with {
'form': insuranceForm,
'insurance': form.insurance.vars.choices[insuranceForm.vars.value].data
} %}
{% endfor %}
{{ form_errors(form.insurance) }}
{% endif %}
</td>
</tr>
<tr>
<td>Zubuchbare Leistungen</td>
<td>