Status Buchnungen und Zimmer verfügbar

git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3432 f459cee4-fb09-11de-96c3-f9c5f16c3c76
This commit is contained in:
adametz 2018-07-26 16:07:56 +00:00
parent 0bdd497cfb
commit a6ef96b4e5
15 changed files with 27874 additions and 26 deletions

View file

@ -78,7 +78,9 @@
{# TODO folgendes evtl noch weiter verallgemeinern #}
{% set priceTypeIds = [] %}
{% for price in travel_date.prices %}
{% set priceTypeIds = priceTypeIds|merge([price.priceTypeId]) %}
{% if(price.available == "1") %}
{% set priceTypeIds = priceTypeIds|merge([price.priceTypeId]) %}
{% endif %}
{% endfor %}
{% if "1" in priceTypeIds %}
@ -115,7 +117,7 @@
{{ form_errors(form.tripleRoomCount) }}
</td>
</tr>
<tr>
<td>Zubuchbare Leistungen</td>
<td>

View file

@ -231,34 +231,43 @@
</td>
{% endif %}
<td data-title="Preis p.P im Doppelzimmer">
{% if travel_date.prices[3].effectiveDiscountPrice %}
<i class="icons-percent"></i>
{% endif %}
<span class="block">
<span class="{% if travel_date.prices[3].effectiveDiscountPrice %}old_price{% endif %}">
ab {{ travel_date.prices[3].effectivePrice|number_format }}
</span>
{% if travel_date.prices[3].available == "1" %}
{% if travel_date.prices[3].effectiveDiscountPrice %}
<span class="new_price">
ab {{ travel_date.prices[3].effectiveDiscountPrice|number_format }}
</span>
<i class="icons-percent"></i>
{% endif %}
</span>
<span class="block">
<span class="{% if travel_date.prices[3].effectiveDiscountPrice %}old_price{% endif %}">
ab {{ travel_date.prices[3].effectivePrice|number_format }}
</span>
{% if travel_date.prices[3].effectiveDiscountPrice %}
<span class="new_price">
ab {{ travel_date.prices[3].effectiveDiscountPrice|number_format }}
</span>
{% endif %}
</span>
{% else %}
nicht verfügbar
{% endif %}
</td>
<td data-title="Preis p.P im Einzelzimmer">
{% if travel_date.prices[1].effectiveDiscountPrice %}
<i class="icons-percent"></i>
{% endif %}
<span class="block">
<span class="{% if travel_date.prices[1].effectiveDiscountPrice %}old_price{% endif %}">
ab {{ travel_date.prices[1].effectivePrice|number_format }}
</span>
{% if travel_date.prices[1].available == "1" %}
{% if travel_date.prices[1].effectiveDiscountPrice %}
<span class="new_price">
ab {{ travel_date.prices[1].effectiveDiscountPrice|number_format }}
</span>
<i class="icons-percent"></i>
{% endif %}
</span>
<span class="block">
<span class="{% if travel_date.prices[1].effectiveDiscountPrice %}old_price{% endif %}">
ab {{ travel_date.prices[1].effectivePrice|number_format }}
</span>
{% if travel_date.prices[1].effectiveDiscountPrice %}
<span class="new_price">
ab {{ travel_date.prices[1].effectiveDiscountPrice|number_format }}
</span>
{% endif %}
</span>
{% else %}
nicht verfügbar
{% endif %}
</td>
<td data-title="Abflugorte / Zuschläge">
<a href="#" class="color-brand" data-toggle="modal" data-target="#st-departures-modal-{{ loop.index0 }}">
@ -271,8 +280,22 @@
} %}
</td>
<td data-title="Verfügbarkeit">
<img src="/images/icons/available-{{ travel_date.effectiveStatus }}.png"
alt="Verfügbarkeit">
<div style="">
<img src="/images/icons/available-{{ travel_date.effectiveStatus }}.png" style="height: 24px; width: 24px;vertical-align:middle" data-toggle="tooltip" data-placement="top"
{% if travel_date.effectiveStatus == 0 %}
data-original-title="NICHT VERFÜGBAR" alt="NICHT VERFÜGBAR">
{% endif %}
{% if travel_date.effectiveStatus == 1 %}
data-original-title="WENIGE VERFÜGBAR" alt="WENIGE VERFÜGBAR">
{% endif %}
{% if travel_date.effectiveStatus == 2 %}
data-original-title="BUCHBAR" alt="BUCHBAR">
{% endif %}
{% if travel_date.effectiveStatus == 3 %}
data-original-title="GARANTIERT" alt="GARANTIERT">
{% endif %}
</div>
</td>
<td data-title="">
<a href="{{ page.urlPath ~ '/buchen?nr=' ~ travel_date.name }}"