fix: empty options modals in price-tables
closes #8698z480j
This commit is contained in:
+30
-23
@@ -165,30 +165,11 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="h-128 p-4 overflow-y-scroll bg-white rounded-b">
|
<div class="h-128 p-4 overflow-y-scroll bg-white rounded-b">
|
||||||
<f:for each="{prices}" as="row">
|
<f:for each="{prices.available}" as="row">
|
||||||
<div class="hidden"
|
<f:render section="OptionsModalRow" arguments="{_all}"/>
|
||||||
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}
|
|
||||||
</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>
|
</f:for>
|
||||||
</div>
|
<f:for each="{prices.unavailable}" as="row">
|
||||||
</f:for>
|
<f:render section="OptionsModalRow" arguments="{_all}"/>
|
||||||
</div>
|
|
||||||
</f:for>
|
</f:for>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -317,4 +298,30 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</f:section>
|
</f:section>
|
||||||
|
|
||||||
|
<f:Section name="OptionsModalRow">
|
||||||
|
<div class="hidden"
|
||||||
|
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}
|
||||||
|
</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>
|
||||||
|
</div>
|
||||||
|
</f:Section>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user