fix: replace relation to date entity with text property for code

This commit is contained in:
Björn Fromme
2024-11-08 13:04:26 +01:00
parent 72f2c9706e
commit 225b90e71b
5 changed files with 40 additions and 41 deletions
@@ -45,7 +45,7 @@
</h1>
{travelinfo.introText -> f:format.html()}
<p>
{travelinfo.traveldate.product.name} {travelinfo.traveldate.dateStart -> f:format.date(format: 'd.m.Y')} - {travelinfo.traveldate.dateEnd -> f:format.date(format: 'd.m.Y')}
{date.product.name} {date.dateStart -> f:format.date(format: 'd.m.Y')} - {date.dateEnd -> f:format.date(format: 'd.m.Y')}
</p>
</div>
</div>
@@ -64,11 +64,11 @@
Adresse
</h3>
<p>
{travelinfo.traveldate.hotel.name}
{date.hotel.name}
<br>
{travelinfo.traveldate.hotel.address -> f:format.nl2br()}
{date.hotel.address -> f:format.nl2br()}
</p>
<f:if condition="{travelinfo.traveldate.busIncluded}">
<f:if condition="{date.busIncluded}">
<h3 class="text-white">
Bus-Zustiege
</h3>
@@ -84,7 +84,7 @@
Uhrzeit
</th>
</tr>
<f:for each="{travelinfo.traveldate.pickups}" as="pickup">
<f:for each="{date.pickups}" as="pickup">
<tr class="odd:bg-zinc-50 align-top">
<td class="border-r border-zinc-200 px-2 py-1 md:p-2">
{pickup.city}<br><span class="text-xs">{pickup.street}</span>