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