<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"
  xmlns:ig="http://typo3.org/ns/Internetgalerie/IgRender/ViewHelpers"
  data-namespace-typo3-fluid="true">

  <div class="reservations-event-show tx-ig-reservations">
    <div class="csc-header ce-header csc-header-layout2">
      <h2>{event.startEndDateTime} <f:translate key="tx_igreservations.time-after-text" />
	<f:render partial="Event/FullCalendar/Show/ActionHeader" arguments="{_all}" />
      </h2>
      <f:if condition="{calendar.timeslotBuffer}">
	<div class="subheader-blocked-time"><f:translate key="blocked_time_for_bookings" />: {event.startTimeWithBufferFormat} - {event.endTimeWithBufferFormat}</div>
      </f:if>
      <f:if condition="{event.category}">
        <span class="subtitle">{event.category.name}</span>
      </f:if>
    </div>
    <div class="event-information frame-space-before-small">
      <f:render partial="Event/FullCalendar/Show/Info" arguments="{_all}" />
      <f:render partial="Event/FullCalendar/Show/Confirm" arguments="{_all}" />

    </div>
    <div class="event-data frame-space-before-small">
      <f:render partial="Event/FullCalendar/Show/ActionEvent" arguments="{_all}" />
      <f:render partial="Event/FullCalendar/Show/Reservations" arguments="{_all}" />
    </div>

    <f:if condition="{event.notes}">
      <div class="event-notes{f:if(condition: reservation, then: ' frame-space-before-small')}">
        <h4>
          <f:translate key="tx_igreservations_domain_model_event.notes" />
        </h4>
        <p>{event.notes->f:format.nl2br()}</p>
      </div>
    </f:if>
    <f:if condition="{event.files}">
      <div class="frame-type-uploads frame-space-before-extra-small">
        <div class="inner-frame">
          <ul class="ce-uploads csc-uploads ce-uploads-type-">
            <f:for each="{event.files}" as="file">
              <li class="csc-uploads-element csc-uploads-element-{file.originalResource.properties.extension}">
                <f:link.typolink parameter="{file.originalResource.publicUrl}" absolute="1" target="_blank">
                  <span class="ce-uploads-fileName csc-uploads-fileName">
                    <f:if condition="{file.originalResource.properties.title}">
                      <f:then>{file.originalResource.properties.title->f:format.htmlspecialchars()}</f:then>
                      <f:else>
                        <ig:format.filename>{file.originalResource.name}</ig:format.filename>
                      </f:else>
                    </f:if>
                  </span>
                  <span class="ce-uploads-filesize csc-uploads-fileSize">(<f:format.bytes value="{file.originalResource.properties.size}" />)</span>
                </f:link.typolink>
              </li>
            </f:for>
          </ul>
        </div>
      </div>
    </f:if>


    <f:comment>
      <f:link.action pageUid="{settings.unapprovedListPageUid}" pluginName="EventTodo" controller="Event" action="edit" controller="Event" arguments="{event: event}" class="link-button">
	<core:icon identifier="actions-open" size="small" alternativeMarkupIdentifier="inline" /><span class="label">
          <f:translate key="events.edit" /></span>
      </f:link.action>
    </f:comment>






  </div>

</html>
