<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:r="http://typo3.org/ns/Evoweb/Recaptcha/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">
<div class="reservation-form tx-ig-reservations">
    <f:if condition="{reservation.event}">
      <h2>{reservation.event.calendar.name}, <f:if condition="{reservation.event.calendar.calendarType.mode} == '1'"><f:then><f:format.date format="%d.%m.%Y">{reservation.event.startDateTime}</f:format.date> {reservation.event.timeslot.name}</f:then><f:else><f:format.date format="%d.%m.%Y %H:%M">{reservation.event.startDateTime}</f:format.date> - <f:format.date format="%H:%M">{reservation.event.endDateTime}</f:format.date> <f:translate key="tx_igreservations.time-after-text" /></f:else></f:if> <f:link.action class="button" title="Kalender ansehen" pluginName="PublicCalendar" controller="Calendar" action="show" pageUid="{reservation.event.calendar.pageUid}" arguments="{search: {date: '{reservation.event.startDate->f:format.date(format: \'Y-m-d\')}' }}"><core:icon identifier="actions-calendar" size="small" alternativeMarkupIdentifier="inline" /></f:link.action></h2>
    </f:if>
    <f:form pluginName="Ajax" controller="Ajax" action="reservationCreate" name="reservation" object="{reservation}" pageType="9190501" class="form-kontakt form-guest dp-form">
        <div class="ym-grid">
            <div>
                <f:form.hidden property="event.status" value="{defaultStatus.uid}" />
            </div>
            <f:alias map="{edit: 1, pageType: 9190501}">
                <f:render partial="Reservation/FormFields" arguments="{_all}" />
            </f:alias>
            <div class="ym-g100 ig-inline">
                <f:form.hidden name="calendar" value="{calendar.uid}" />
                <f:form.hidden name="timeslot" value="{timeslot.uid}" />
                <f:form.hidden name="date" value="{dateValue}" />
                <f:form.submit value="{f:translate(key: 'events.update')}" />
            </div>
        </div>
    </f:form>
</div>

</html>
