Show calculator button only if available

This commit is contained in:
Björn Fromme
2020-01-16 08:43:42 +01:00
parent dbe4965252
commit 40160cea00
2 changed files with 6 additions and 4 deletions
@@ -1,5 +1,5 @@
<div class="ep-headbar">Konzept</div>
<f:if condition="{product.calendarHotel}">
<f:if condition="{product.calendarHotel} && {hotel.groupsPriceConfigs}">
<a class="button button--full" data-fancybox data-type="iframe" href="{f:uri.action(action: 'index', controller: 'GroupsPrice', arguments: '{hotel: hotel}', pageUid: settings.groupsPricePopupPageUid)}">
Preisberechnung
</a>
@@ -248,9 +248,11 @@
<f:section name="Calendar">
<f:if condition="{product.calendarHotel}">
<a class="button button--full" data-fancybox data-type="iframe" href="{f:uri.action(action: 'index', controller: 'GroupsPrice', arguments: '{hotel: hotel}', pageUid: settings.groupsPricePopupPageUid)}">
Preisberechnung
</a>
<f:if condition="{hotel.groupsPriceConfigs}">
<a class="button button--full" data-fancybox data-type="iframe" href="{f:uri.action(action: 'index', controller: 'GroupsPrice', arguments: '{hotel: hotel}', pageUid: settings.groupsPricePopupPageUid)}">
Preisberechnung
</a>
</f:if>
<div class="ep-sidebar ep-facts">
<p><strong>Belegungskalender</strong></p>
<calendar