mirror of
https://github.com/werkraum-media/events.git
synced 2024-11-10 08:56:11 +01:00
42 lines
No EOL
2.1 KiB
HTML
42 lines
No EOL
2.1 KiB
HTML
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
|
|
|
|
<f:render partial="Date/SearchForm" arguments="{searchword: searchword, dates: dates, regions: regions, selRegion: selRegion, start: start, end: end}"/>
|
|
|
|
<hr class="mt-2 mb-4">
|
|
|
|
<f:widget.paginate objects="{dates}" as="paginatedDates" configuration="{itemsPerPage: 25, insertAbove: 0, insertBelow: 1, maximumNumberOfLinks: 5, addQueryStringMethod: 'POST,GET'}">
|
|
<f:for each="{paginatedDates}" as="date">
|
|
<div class="row mt-3 mb-3 pb-3 border-bottom ">
|
|
<div class="col-2">
|
|
<b><f:format.date format="H:i">{date.start}</f:format.date></b><br>
|
|
<b><f:format.date format="%a">{date.start}</f:format.date></b><br>
|
|
<b><f:format.date format="d.m.">{date.start}</f:format.date></b><br>
|
|
{date.event.region.title}<br>
|
|
</div>
|
|
<div class="col-6">
|
|
<f:if condition="{date.event.highlight}">
|
|
<f:then>
|
|
<b>Hightlight</b>
|
|
</f:then>
|
|
</f:if>
|
|
<h4>{date.event.title}</h4>
|
|
<p><strong>{date.event.teaser}</strong></p>
|
|
<f:format.crop maxCharacters="150">{date.event.details}</f:format.crop>
|
|
</div>
|
|
<div class="col-4">
|
|
<f:if condition="{date.event.images}">
|
|
<f:then>
|
|
<f:link.action pageUid="{settings.showPID}" action="show" controller="Date" arguments="{date: date}">
|
|
<f:image src="{date.event.images.originalResource.originalFile.uid}" alt="" width="400c" height="280c" class="img-fluid img-thumbnail"/>
|
|
</f:link.action>
|
|
</f:then>
|
|
<f:else>
|
|
<img src="https://dummyimage.com/400x280/ddd/ccc" alt="Dummy" width="400" height="280" class="img-fluid img-thumbnail"/>
|
|
</f:else>
|
|
</f:if>
|
|
</div>
|
|
</div>
|
|
</f:for>
|
|
</f:widget.paginate>
|
|
|
|
</html> |