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

<f:section name="content">
    <h2>{event.calendar.name}, <f:format.date format="%d.%m.%Y %H:%M">{event.startDateTime}</f:format.date> - <f:format.date format="%H:%M">{event.endDateTime}</f:format.date> <f:translate key="tx_igreservations.time-after-text" /></h2>
    <f:if condition="{event.calendarGroup}">
        <div class="calendargroup frame-space-after-extra-small">
            <p>Diese Veranstaltung befindet sich auch in folgenden Räumen:</p>
            <ul>
                <f:for each="{event.calendarGroup.calendars}" as="cal">
                    <f:if condition="{calendar.uid} != {cal.uid}">
                        <li class="calendargroup-calendar">{cal.name}</li>
                    </f:if>
                </f:for>
            </ul>
        </div>
    </f:if>
  <f:form class="form-kontakt dp-form" action="update" name="event" object="{event}">
        <div class="ym-grid">
            <f:spaceless>
                <f:render partial="Event/FormFields" arguments="{_all}" />
                <div class="ym-g100 ig-inline">
                    <f:form.submit value="{f:translate(key: 'events.update')}" />
                </div>
		<f:render partial="Event/Edit/Back" arguments="{_all}" />
                <cal:calendar.isAdmin calendar="{calendar}">
                    <div class="ym-gr ig-inline delete-link frame-space-before-small">
                        <f:link.action action="deleteConfirm" arguments="{event: event}" data="{delete-text: '{f:translate(key: \'events.really_delete\')}'}">
                            <f:translate key="events.delete" />
                        </f:link.action>
                    </div>
                </cal:calendar.isAdmin>
            </f:spaceless>
        </div>
    </f:form>
</f:section>

</html>
