fix: hide groups price calendar on winter products
This commit is contained in:
@@ -106,19 +106,21 @@
|
|||||||
</f:if>
|
</f:if>
|
||||||
|
|
||||||
<f:if condition="{product.calendarHotel}">
|
<f:if condition="{product.calendarHotel}">
|
||||||
<f:render partial="Product/PriceCalendar.html" arguments="{_all}"/>
|
<f:if condition="{product.season} == 's'">
|
||||||
|
<f:render partial="Product/PriceCalendar.html" arguments="{_all}"/>
|
||||||
|
|
||||||
<f:variable name="currentYear" value="{f:format.date(date: 'now', format: 'Y')}"/>
|
<f:variable name="currentYear" value="{f:format.date(date: 'now', format: 'Y')}"/>
|
||||||
<div hx-get="{ep:uri.ajax(action: 'priceTable', controller: 'AjaxCalendar', extensionName: 'epproducts', pageUid: settings.defaultAjaxUid, arguments: '{hotel: product.calendarHotel, year: currentYear}', format: 'html')}"
|
<div hx-get="{ep:uri.ajax(action: 'priceTable', controller: 'AjaxCalendar', extensionName: 'epproducts', pageUid: settings.defaultAjaxUid, arguments: '{hotel: product.calendarHotel, year: currentYear}', format: 'html')}"
|
||||||
hx-trigger="load">
|
hx-trigger="load">
|
||||||
<f:render section="TableLoadingIndicator"/>
|
<f:render section="TableLoadingIndicator"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<f:variable name="nextYear" value="{f:format.date(date: '+1 year', format: 'Y')}"/>
|
<f:variable name="nextYear" value="{f:format.date(date: '+1 year', format: 'Y')}"/>
|
||||||
<div hx-get="{ep:uri.ajax(action: 'priceTable', controller: 'AjaxCalendar', extensionName: 'epproducts', pageUid: settings.defaultAjaxUid, arguments: '{hotel: product.calendarHotel, year: nextYear}', format: 'html')}"
|
<div hx-get="{ep:uri.ajax(action: 'priceTable', controller: 'AjaxCalendar', extensionName: 'epproducts', pageUid: settings.defaultAjaxUid, arguments: '{hotel: product.calendarHotel, year: nextYear}', format: 'html')}"
|
||||||
hx-trigger="load">
|
hx-trigger="load">
|
||||||
<f:render section="TableLoadingIndicator"/>
|
<f:render section="TableLoadingIndicator"/>
|
||||||
</div>
|
</div>
|
||||||
|
</f:if>
|
||||||
</f:if>
|
</f:if>
|
||||||
|
|
||||||
<f:if condition="{isProductWithExcludedConcept}">
|
<f:if condition="{isProductWithExcludedConcept}">
|
||||||
|
|||||||
Reference in New Issue
Block a user