Merge branch 'develop'

This commit is contained in:
Björn Fromme
2023-05-22 21:12:49 +02:00
16 changed files with 444 additions and 39 deletions
@@ -5,3 +5,7 @@
.anchor {
@apply block h-0 w-0 pt-16 -mt-16;
}
.alert {
@apply bg-ep-primary-bg p-4 text-ep-primary-dark;
}
@@ -5,7 +5,9 @@
<f:if condition="{pricetable -> f:count()} == 0">
<f:then>
<f:render partial="NotBookable" arguments="{_all}"/>
<div class="alert alert-info" data-rte-content>
{nonBookableInfo.text -> f:format.html()}
</div>
</f:then>
<f:else>
<div class="w-full max-w-full overflow-x-scroll md:overflow-x-auto"
@@ -15,7 +15,9 @@
<f:if condition="{isProductWithNoInfoConcept}">
<f:else>
<f:if condition="{unavailable}">
<f:render partial="NotBookable" arguments="{_all}"/>
<div class="alert alert-info" data-rte-content>
{nonBookableInfo.text -> f:format.html()}
</div>
</f:if>
</f:else>
</f:if>
@@ -11,7 +11,9 @@
<f:render section="Table" arguments="{_all}"/>
</f:then>
<f:else>
<f:render partial="NotBookable" arguments="{_all}"/>
<div class="alert alert-info" data-rte-content>
{nonBookableInfo.text -> f:format.html()}
</div>
</f:else>
</f:if>
</f:section>
@@ -15,7 +15,9 @@
<f:if condition="{isProductWithNoInfoConcept}">
<f:else>
<f:if condition="{unavailable}">
<f:render partial="NotBookable" arguments="{_all}"/>
<div class="alert alert-info" data-rte-content>
{nonBookableInfo.text -> f:format.html()}
</div>
</f:if>
</f:else>
</f:if>
@@ -13,27 +13,28 @@
<f:render partial="Header/Header"
arguments="{header: data.header, subheader: data.subheader, layout: data.header_layout, link: data.header_link, default: settings.defaultHeaderType}" />
<f:if condition="{teasers}">
<div class="flex items-center space-x-1 mb-2 sm:hidden">
<button type="button"
class="opacity-50"
data-action="teasergrid#grid"
data-teasergrid-target="button">
<svg class="w-5 h-5 text-ep-primary">
<use href="{f:uri.image(src: 'EXT:ep_theme/Resources/Public/images/icons_sprite.svg')}#icon-teaser-grid"></use>
</svg>
</button>
<button type="button"
data-action="teasergrid#block"
data-teasergrid-target="button">
<svg class="w-5 h-5 text-ep-primary">
<use href="{f:uri.image(src: 'EXT:ep_theme/Resources/Public/images/icons_sprite.svg')}#icon-teaser-single"></use>
</svg>
</button>
</div>
<div class="grid grid-cols-2 lg:grid-cols-3 gap-4 md:gap-8"
data-teasergrid-target="container">
<f:for each="{teasers}" as="teaser" iteration="iteration">
<f:render partial="Product/Teaser" section="Teaser" arguments="{
<f:then>
<div class="flex items-center space-x-1 mb-2 sm:hidden">
<button type="button"
class="opacity-50"
data-action="teasergrid#grid"
data-teasergrid-target="button">
<svg class="w-5 h-5 text-ep-primary">
<use href="{f:uri.image(src: 'EXT:ep_theme/Resources/Public/images/icons_sprite.svg')}#icon-teaser-grid"></use>
</svg>
</button>
<button type="button"
data-action="teasergrid#block"
data-teasergrid-target="button">
<svg class="w-5 h-5 text-ep-primary">
<use href="{f:uri.image(src: 'EXT:ep_theme/Resources/Public/images/icons_sprite.svg')}#icon-teaser-single"></use>
</svg>
</button>
</div>
<div class="grid grid-cols-2 lg:grid-cols-3 gap-4 md:gap-8"
data-teasergrid-target="container">
<f:for each="{teasers}" as="teaser" iteration="iteration">
<f:render partial="Product/Teaser" section="Teaser" arguments="{
concept: teaser.concept,
hotel: teaser.hotel,
product: teaser.product,
@@ -50,19 +51,27 @@
dateTo: dateTo,
index: iteration.index
}"/>
</f:for>
</div>
<f:if condition="{settings.hideMoreLink}">
<f:else>
<div class="text-right mt-4">
<f:link.typolink class="button bg-button"
parameter="{settings.defaultSearchPageUid}"
additionalParams="f={filterSettings -> ep:filterSettingsEncoder()}">
Alle anzeigen
</f:link.typolink>
</f:for>
</div>
<f:if condition="{settings.hideMoreLink}">
<f:else>
<div class="text-right mt-4">
<f:link.typolink class="button bg-button"
parameter="{settings.defaultSearchPageUid}"
additionalParams="f={filterSettings -> ep:filterSettingsEncoder()}">
Alle anzeigen
</f:link.typolink>
</div>
</f:else>
</f:if>
</f:then>
<f:else>
<f:if condition="{nonBookableInfo}">
<div class="alert alert-info" data-rte-content>
{nonBookableInfo.text -> f:format.html()}
</div>
</f:else>
</f:if>
</f:if>
</f:else>
</f:if>
</div>
</div>