<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">
<cal:calendar.hasPermission calendar="{event.calendar}" permission="read">
  <f:then></f:then>
  <f:else>
    <cal:calendar.hasPermission calendar="{event.calendar}" permission="admin,team">
      <f:link.action pageUid="{settings.unapprovedListPageUid}" pluginName="EventTodo" controller="Reservation" action="edit" arguments="{reservation: reservation, redirect: redirect}" 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:link.action pageUid="{settings.unapprovedListPageUid}" pluginName="EventTodo" controller="Reservation" action="delete" arguments="{reservation: reservation, redirect: redirect}" class="link-button calendar-confirm" data="{confirm-title: 'Eintrag wirklich löschen?',  confirm-content: '{event.calendar.name}: {event.startEndDateTime}'}">
        <core:icon identifier="actions-delete" size="small" alternativeMarkupIdentifier="inline" /><span class="label">
          <f:translate key="events.delete" /></span>
      </f:link.action>
    </cal:calendar.hasPermission>
  </f:else>
</cal:calendar.hasPermission>
</html>
