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:render section="OptionsModalRow" arguments="{_all}"/>
|
||||
</f:for>
|
||||
<f:for each="{prices.unavailable}" as="row">
|
||||
<f:render section="OptionsModalRow" arguments="{_all}"/>
|
||||
</f:for>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -304,23 +301,25 @@
|
||||
data-modal-target="content"
|
||||
data-uid="{row.roomUid}">
|
||||
<f:for each="{row.optionalServices}" as="section" key="sectionCode">
|
||||
<div class="py-2 -mx-1">
|
||||
<div class="font-bold text-xl px-1">
|
||||
{section.label}
|
||||
<f:if condition="{section.services}">
|
||||
<div class="py-2 -mx-1">
|
||||
<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>
|
||||
<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>
|
||||
</f:if>
|
||||
</f:for>
|
||||
</div>
|
||||
</f:Section>
|
||||
|
||||
Reference in New Issue
Block a user