{namespace vh=Newland\NeosViewHelpers\ViewHelpers}
{namespace components=Newland\NeosCommon\ViewHelpers}

<div
    data-toubiz-events-list
    class="tb-event-list is-loaded">

    <div class="tb-event-list__body relative">
        <ul data-toubiz-events-list-items
            class="tb-teaser-list o-grid o-grid--fourths">
            <f:for each="{eventDates}" as="eventDate">
                <figure class="o-grid__item">
                    <vh:render partial="EventDates/Teaser/Event" arguments="{eventDate: eventDate, node: node, targetNode: targetNode}"/>
                </figure>
            </f:for>
        </ul>
    </div>
</div>

<f:if condition="!{disablePagination}">
    <components:pagination
        currentPage="{pagination.page}"
        totalPageCount="{pagination.count.pages}"
    />
</f:if>
