feat: don't render superfluous modals
This commit is contained in:
+18
-19
@@ -168,9 +168,6 @@
|
|||||||
<f:for each="{prices.available}" as="row">
|
<f:for each="{prices.available}" as="row">
|
||||||
<f:render section="OptionsModalRow" arguments="{_all}"/>
|
<f:render section="OptionsModalRow" arguments="{_all}"/>
|
||||||
</f:for>
|
</f:for>
|
||||||
<f:for each="{prices.unavailable}" as="row">
|
|
||||||
<f:render section="OptionsModalRow" arguments="{_all}"/>
|
|
||||||
</f:for>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -304,23 +301,25 @@
|
|||||||
data-modal-target="content"
|
data-modal-target="content"
|
||||||
data-uid="{row.roomUid}">
|
data-uid="{row.roomUid}">
|
||||||
<f:for each="{row.optionalServices}" as="section" key="sectionCode">
|
<f:for each="{row.optionalServices}" as="section" key="sectionCode">
|
||||||
<div class="py-2 -mx-1">
|
<f:if condition="{section.services}">
|
||||||
<div class="font-bold text-xl px-1">
|
<div class="py-2 -mx-1">
|
||||||
{section.label}
|
<div class="font-bold text-xl px-1">
|
||||||
|
{section.label}
|
||||||
|
</div>
|
||||||
|
<f:for each="{section.services}" as="service">
|
||||||
|
<f:if condition="{sectionCode} == 'BUS' || {service.price} != '0,00'">
|
||||||
|
<dl class="flex items-start justify-between p-1 hover:bg-zinc-50">
|
||||||
|
<dt class="font-normal">
|
||||||
|
{service.label}:
|
||||||
|
</dt>
|
||||||
|
<dd class="whitespace-nowrap">
|
||||||
|
{service.price} €
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</f:if>
|
||||||
|
</f:for>
|
||||||
</div>
|
</div>
|
||||||
<f:for each="{section.services}" as="service">
|
</f:if>
|
||||||
<f:if condition="{sectionCode} == 'BUS' || {service.price} != '0,00'">
|
|
||||||
<dl class="flex items-start justify-between p-1 hover:bg-zinc-50">
|
|
||||||
<dt class="font-normal">
|
|
||||||
{service.label}:
|
|
||||||
</dt>
|
|
||||||
<dd class="whitespace-nowrap">
|
|
||||||
{service.price} €
|
|
||||||
</dd>
|
|
||||||
</dl>
|
|
||||||
</f:if>
|
|
||||||
</f:for>
|
|
||||||
</div>
|
|
||||||
</f:for>
|
</f:for>
|
||||||
</div>
|
</div>
|
||||||
</f:Section>
|
</f:Section>
|
||||||
|
|||||||
Reference in New Issue
Block a user