feat: import services without price and filter when rendering

This commit is contained in:
Björn Fromme
2025-01-02 15:17:37 +01:00
parent f7819116a6
commit 8312b61bac
2 changed files with 12 additions and 10 deletions
@@ -430,7 +430,7 @@ class DateImportService implements SingletonInterface, LoggerAwareInterface
];
}
$servicesGeneral = $this->parseService($xmlDate, 'lei_sonstiges', true);
$servicesGeneral = $this->parseService($xmlDate, 'lei_sonstiges');
$combinedServices = [];
@@ -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>