Show labels for included services depending on season

This commit is contained in:
Björn Fromme
2020-06-02 12:59:33 +02:00
parent 8d5808bfcb
commit 48a4b41e79
4 changed files with 4 additions and 4 deletions
@@ -61,7 +61,7 @@
<span class="icon-wrapper hidden-xs hidden-sm">
<i v-if="showBusIcon(row)" data-placement="top" title="Busfahrt inklusive"
class="fa fa-bus tooltiptoggle"></i>
<i v-if="row.dateSkipassIncluded" data-placement="top" title="Skipass inklusive"
<i v-if="row.dateSkipassIncluded" data-placement="top" :title="row.season === 's' ? 'Bergbahnticket inklusive' : 'Skipass inklusive'"
class="fa fa-tag tooltiptoggle"></i>
</span>
<button type="button" class="button button--light button--small hidden-xs tooltiptoggle"
@@ -49,7 +49,7 @@
<td style="white-space: nowrap" :style="{'text-decoration': !row.roomAvailable && !row.isHideBookingButton ? 'line-through' : ''}">{{ calculatePrice(row) }} </td>
<td>
<i v-if="showBusIcon(row)" data-placement="top" title="Busfahrt inklusive" class="fa fa-bus tooltiptoggle"></i>
<i v-if="row.dateSkipassIncluded" data-placement="top" title="Skipass inklusive" class="fa fa-tag tooltiptoggle"></i>
<i v-if="row.dateSkipassIncluded" data-placement="top" :title="row.season === 's' ? 'Bergbahnticket inklusive' : 'Skipass inklusive'" class="fa fa-tag tooltiptoggle"></i>
</td>
<td>
<button v-if="hasOptionalServices(row) && row.roomAvailable" type="button"
@@ -40,7 +40,7 @@
<hr>
<span class="product-teaser__description">
{ep:dateRange(dateFrom: teaser.minDateStart, dateTo: teaser.maxDateEnd, includeLabel: 0, format: 'd.m.y')} <f:if condition="{teaser.dates -> f:count()} > 1 && !{teaser.daytrip}">({teaser.dates -> f:count()} Termine)</f:if><br>
{ep:nightsOptions(options: teaser.nights, daytrip: teaser.daytrip)}<f:if condition="{teaser.skipassIncluded}">, <strong>inkl. Skipass</strong></f:if>
{ep:nightsOptions(options: teaser.nights, daytrip: teaser.daytrip)}<f:if condition="{teaser.skipassIncluded}">, <strong>inkl. {f:if(condition: '{teaser.season} == "s"', then: 'Bergbahnticket', else: 'Skipass')}</strong></f:if>
</span>
<hr>
<div class="product-teaser__footer">
@@ -59,7 +59,7 @@
</f:if>
</ul>
<ul class="check-list check-list--inverted searchresult-item__featurelist">
<li>Skipass</li>
<li>{f:if(condition: '{teaser.season} == "s"', then: 'Bergbahnticket', else: 'Skipass')}</li>
<f:if condition="{teaser.board}">
<li>{teaser.board}</li>
</f:if>