Fix: Correctly determine conditions to show booking button in table

This commit is contained in:
Björn Fromme
2023-06-22 08:51:21 +02:00
parent c7a2998782
commit 5323b2498e
2 changed files with 9 additions and 9 deletions
@@ -111,14 +111,8 @@
</f:if>
</td>
<td class="px-2 py-1 md:p-2 whitespace-nowrap">
<f:if condition="{row.isHideBookingButton}">
<f:if condition="{row.showBookingButton}">
<f:then>
<f:link.typolink parameter="{settings.travelAlertPageUid}"
class="button bg-button button--small">
Reisen-Alert
</f:link.typolink>
</f:then>
<f:else>
<f:if condition="{row.available}">
<f:then>
<a class="button bg-button button--small w-full"
@@ -148,6 +142,12 @@
</span>
</f:else>
</f:if>
</f:then>
<f:else>
<f:link.typolink parameter="{settings.travelAlertPageUid}"
class="button bg-button button--small">
Reisen-Alert
</f:link.typolink>
</f:else>
</f:if>
</td>