<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:cal="http://typo3.org/ns/Ig/IgReservations/ViewHelpers" xmlns:core="http://typo3.org/ns/TYPO3/CMS/Core/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="Default" />

<f:section name="content">

    <f:for each="{calendars}" as="calendar">
      <cal:calendar calendar="{calendar}" ajaxPageUid="{settings.calendarAjaxPageUid}" class="calendar-{unit} calendar-entries-{calendar.data->f:count()}{cal:calendar.hasPermission(calendar: calendar, permission: 'team', then: ' teamarea')}"
            loading="{core:icon(identifier: 'spinner-circle', size: 'small', alternativeMarkupIdentifier: 'inline')}">

	<f:render partial="Calendar/Title" arguments="{calendar: calendar}" />
	
	<f:render partial="Calendar/EventsToApprove" arguments="{calendar:calendar,eventsToApproveCount: eventsToApproveCount, settings:settings, eventClipboard: eventClipboard}" />

        <f:if condition="{calendar.calendarType.partial}!='FullCalendar'">
          <f:render partial="Calendar/Navigation" arguments="{calendarNav: calendarNav, action: 'show', allCalendars: allCalendars, calendar: calendar}" />
        </f:if>

        <f:render partial="Calendar/Type/{calendar.calendarType.partial}" arguments="{_all}" />
	
        <f:if condition="{statusses}">
          <f:render partial="Calendar/Legend" arguments="{statusses: statusses, calendar: calendar}" />
        </f:if>
      </cal:calendar>

      <f:if condition="{f:translate(key: 'roominfo')}">
          <div class="frame-space-before-small">
              <p>{f:translate(key: 'roominfo')}</p>
          </div>
      </f:if>

      <f:if condition="{calendar.room}">
        <f:render partial="Calendar/Room" arguments="{calendar: calendar, room: calendar.room}" />
      </f:if>

    </f:for>
</f:section>

</html>
