Show inquiry form button only for selected concepts

This commit is contained in:
Björn Fromme
2022-08-23 12:09:42 +02:00
parent 5cdace64f5
commit e7bb19f9cd
5 changed files with 21 additions and 13 deletions
@@ -15,12 +15,14 @@
</f:else>
</f:if>
{hotel.description -> f:format.html()}
<f:if condition="{hotel.groupsPriceConfigs}">
<f:else>
<f:link.typolink class="button bg-button" parameter="{settings.groupsContactFormPageUid}" additionalParams="&ref={currentPageUid}">
<f:translate key="tx_eptheme.label.to_inquiry_form" extensionName="ep_theme"/>
</f:link.typolink>
</f:else>
<f:if condition="{showInquiryForm}">
<f:if condition="{hotel.groupsPriceConfigs}">
<f:else>
<f:link.typolink class="button bg-button" parameter="{settings.groupsContactFormPageUid}" additionalParams="&ref={currentPageUid}">
<f:translate key="tx_eptheme.label.to_inquiry_form" extensionName="ep_theme"/>
</f:link.typolink>
</f:else>
</f:if>
</f:if>
</div>
<f:if condition="{teasers}">
@@ -170,10 +170,11 @@
</f:section>
<f:section name="Hotel">
<div class="mb-4{f:if(condition: settings.hotelOnTop, else: ' hidden')}"
data-tabs-target="tab"
data-tab="hotel">
<f:render partial="Hotel/Details" arguments="{hotel: hotel, bars: 1, showNonBookableHint: 0, currentPageUid: currentPageUid}"/>
<f:render partial="Hotel/Details" arguments="{hotel: hotel, bars: 1, showNonBookableHint: 0, currentPageUid: currentPageUid, showInquiryForm: isProductWithGroupInquiryForm}"/>
</div>
</f:section>