Check price is defined

git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3472 f459cee4-fb09-11de-96c3-f9c5f16c3c76
This commit is contained in:
adametz 2018-10-16 12:25:05 +00:00
parent 3dec64587e
commit 8f7f2c03db

View file

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