feat: import services without price and filter when rendering
This commit is contained in:
@@ -430,7 +430,7 @@ class DateImportService implements SingletonInterface, LoggerAwareInterface
|
||||
];
|
||||
}
|
||||
|
||||
$servicesGeneral = $this->parseService($xmlDate, 'lei_sonstiges', true);
|
||||
$servicesGeneral = $this->parseService($xmlDate, 'lei_sonstiges');
|
||||
|
||||
$combinedServices = [];
|
||||
|
||||
|
||||
+11
-9
@@ -281,20 +281,22 @@
|
||||
<div class="hidden"
|
||||
data-modal-target="content"
|
||||
data-uid="{row.roomUid}">
|
||||
<f:for each="{row.optionalServices}" as="section">
|
||||
<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">
|
||||
<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 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>
|
||||
|
||||
Reference in New Issue
Block a user