ssSudan Nil Frontend + extra Days + price in booking form - export + mail
git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3483 f459cee4-fb09-11de-96c3-f9c5f16c3c76
This commit is contained in:
parent
b28c7db598
commit
98bd71c760
22 changed files with 2186 additions and 32 deletions
|
|
@ -54,10 +54,6 @@
|
|||
{% endif %}
|
||||
{% endspaceless %}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{{ form_errors(form.email) }}
|
||||
|
||||
<div id="message"></div>
|
||||
|
|
@ -94,12 +90,26 @@
|
|||
{# TODO folgendes evtl noch weiter verallgemeinern #}
|
||||
{% set priceTypeIds = [] %}
|
||||
{% set priceTypeChildIds = [] %}
|
||||
{% set extraDays = 0 %}
|
||||
|
||||
|
||||
{% for price in travel_date.prices %}
|
||||
{% if(price.available == "1") %}
|
||||
{% set priceTypeIds = priceTypeIds|merge([price.priceTypeId]) %}
|
||||
{% if(price.priceChildren > 0) %}
|
||||
{% set priceTypeChildIds = priceTypeChildIds|merge([price.priceTypeId]) %}
|
||||
{% endif %}
|
||||
{% if(price.extraPrice > 0) %}
|
||||
{% set extraDays = 1 %}
|
||||
{% endif %}
|
||||
{% if(price.extraPriceComfort > 0) %}
|
||||
{% set extraDays = 1 %}
|
||||
{% endif %}
|
||||
{% if(price.extraPriceChildren > 0) %}
|
||||
{% set extraDays = 1 %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
|
|
@ -115,6 +125,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
{% if "1" in priceTypeChildIds %}
|
||||
<tr>
|
||||
{% else %}
|
||||
|
|
@ -215,7 +226,28 @@
|
|||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="display:">
|
||||
|
||||
|
||||
{% if extraDays == 1 and travel_program.drafts.count() > 0 %}
|
||||
<tr>
|
||||
{% else %}
|
||||
<tr style="display:none">
|
||||
{% endif %}
|
||||
<td>Verlängerung buchen</td>
|
||||
<td>
|
||||
Vor der Reise
|
||||
{{ form_widget(form.extraBookingDaysBefore) }}
|
||||
{{ form_errors(form.extraBookingDaysBefore) }}
|
||||
<br>
|
||||
|
||||
Nach der Reise
|
||||
{{ form_widget(form.extraBookingDaysAfter) }}
|
||||
{{ form_errors(form.extraBookingDaysAfter) }}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr style="">
|
||||
<td>Reiseversicherung</td>
|
||||
<td>
|
||||
<div class="radio">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue