<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:r="http://typo3.org/ns/Evoweb/Recaptcha/ViewHelpers" xmlns:dp="http://typo3.org/ns/Internetgalerie/IgDatapoolFe/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="Default" />

<f:section name="content">
    <f:render partial="Event/SearchForm" arguments="{_all}" />
    <div class="news">
        <div class="reservations-event-list news-list-view">
            <f:if condition="{settings.view} == 'list'">
                <f:then>
                    <f:if condition="{pagination.paginator.paginatedItems->f:count()} > 0">
                        <f:then>
                            <f:for each="{pagination.paginator.paginatedItems}" as="event" iteration="it">
                                <f:render partial="Event/ListItem" arguments="{_all}" />
                            </f:for>
                        </f:then>
                        <f:else>
                            <div class="reservations-no-events">
                                <p>Keine möglichen Termine gefunden.</p>
                            </div>
                        </f:else>
                    </f:if>
                    <f:if condition="{pagination.lastPageNumber}>1">
                        <div class="pagination">
                            <f:render partial="Pagination" arguments="{pagination: pagination.pagination, paginator: pagination.paginator,search: search}" />
                        </div>
                    </f:if>
                </f:then>
                <f:else>
                    <f:for each="{events}" as="event" iteration="it">
                        <f:render partial="Event/ListItem" arguments="{_all}" />
                    </f:for>
                </f:else>
            </f:if>
        </div>
    </div>
</f:section>

</html>
