Check price is defined

This commit is contained in:
Kevin Adametz 2018-10-16 14:24:25 +02:00
parent 3dec64587e
commit e3fa5a0796

View file

@ -250,6 +250,7 @@
<td data-title="Ende">{{ travel_date.end|date }}</td>
{% if has_three_bed_room %}
<td data-title="Preis p.P. im Dreibettzimmer">
{% if travel_date.prices[5] is defined %}
{% if travel_date.prices[5].available == "1" %}
{% if travel_date.prices[5] is defined %}
{% if travel_date.prices[5].effectiveDiscountPrice %}
@ -269,11 +270,12 @@
{% else %}
nicht verfügbar
{% endif %}
{% endif %}
</td>
{% endif %}
{% if has_double_bed_room %}
<td data-title="Preis p.P im Doppelzimmer">
{% if travel_date.prices[3] is defined %}
{% if travel_date.prices[3].available == "1" %}
{% if travel_date.prices[3].effectiveDiscountPrice %}
<i class="icons-percent"></i>
@ -291,11 +293,13 @@
{% else %}
nicht verfügbar
{% endif %}
{% endif %}
</td>
{% endif %}
{% if has_singel_bed_room %}
<td data-title="Preis p.P im Einzelzimmer">
{% if travel_date.prices[1] is defined %}
{% if travel_date.prices[1].available == "1" %}
{% if travel_date.prices[1].effectiveDiscountPrice %}
<i class="icons-percent"></i>
@ -313,6 +317,7 @@
{% else %}
nicht verfügbar
{% endif %}
{% endif %}
</td>
{% endif %}
<td data-title="Abflugorte / Zuschläge">