Show cancel notice

This commit is contained in:
Dirk Koritnik 2021-09-07 19:23:57 +02:00
parent 2d3db75070
commit 515351823b
4 changed files with 19 additions and 1 deletions

View file

@ -27,6 +27,10 @@
<source>Search</source> <source>Search</source>
<target>Suchen</target> <target>Suchen</target>
</trans-unit> </trans-unit>
<trans-unit id="tx_events.date.canceled">
<source>Canceled</source>
<target>Abgesagt</target>
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

View file

@ -21,6 +21,9 @@
<trans-unit id="tx_events.searchform.search"> <trans-unit id="tx_events.searchform.search">
<source>Search</source> <source>Search</source>
</trans-unit> </trans-unit>
<trans-unit id="tx_events.date.canceled">
<source>Canceled</source>
</trans-unit>
</body> </body>
</file> </file>
</xliff> </xliff>

View file

@ -21,6 +21,11 @@
</f:if> </f:if>
--> -->
</f:comment> </f:comment>
<f:if condition="{date.canceled} == 'canceled'">
<h4 class="bg-secondary text-white p-2">
<f:translate key="LLL:EXT:events/Resources/Private/Language/locallang.xlf:tx_events.date.canceled" />
</h4>
</f:if>
<h4> <h4>
<f:link.action pageUid="{settings.showPID}" action="show" controller="Date" arguments="{date: date}"> <f:link.action pageUid="{settings.showPID}" action="show" controller="Date" arguments="{date: date}">
{date.event.title} {date.event.title}
@ -29,7 +34,7 @@
<p><strong>{date.event.teaser}</strong></p> <p><strong>{date.event.teaser}</strong></p>
<f:format.crop maxCharacters="150">{date.event.details}</f:format.crop> <f:format.crop maxCharacters="150">{date.event.details}</f:format.crop>
</div> </div>
<div class="col-4"> <div class="col-4 position-relative">
<f:if condition="{date.event.images.0}"> <f:if condition="{date.event.images.0}">
<f:then> <f:then>
<f:link.action pageUid="{settings.showPID}" action="show" controller="Date" arguments="{date: date}"> <f:link.action pageUid="{settings.showPID}" action="show" controller="Date" arguments="{date: date}">
@ -42,6 +47,7 @@
</f:link.action> </f:link.action>
</f:else> </f:else>
</f:if> </f:if>
</div> </div>
</div> </div>
<f:if condition="{index.isLast}"> <f:if condition="{index.isLast}">

View file

@ -13,6 +13,11 @@
</f:if> </f:if>
</div> </div>
<div class="col-6"> <div class="col-6">
<f:if condition="{date.canceled} == 'canceled'">
<h4 class="bg-secondary text-white p-2">
<f:translate key="LLL:EXT:events/Resources/Private/Language/locallang.xlf:tx_events.date.canceled" />
</h4>
</f:if>
<h4> <h4>
<f:format.date format="%a">{date.start}</f:format.date> <f:format.date format="%a">{date.start}</f:format.date>
<f:format.date format="d.m.">{date.start}</f:format.date> <f:format.date format="d.m.">{date.start}</f:format.date>