<html
  xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
  xmlns:r="http://typo3.org/ns/Evoweb/Recaptcha/ViewHelpers"
  xmlns:dp="http://typo3.org/ns/Internetgalerie/IgDatapoolFe/ViewHelpers"
  data-namespace-typo3-fluid="true">

  <f:layout name="Default" />

<f:section name="content">
    <f:form class="form-kontakt" action="create" name="newEvent" object="{newEvent}">
        <div>
          <dp:form.hiddenDate property="startDate" value="{eventStartDate}" />
          <dp:form.hiddenDate property="endDate" value="{eventEndDate}" />
          <f:form.hidden property="startTime" value="{eventStartDate->f:format.date(format: '%H:%M:%S')}" />
        </div>
        <div class="ym-grid">
            <f:spaceless>
                <f:render partial="Event/FormFields" arguments="{_all}" />
                <div class="ym-g100 ig-inline">
                    <r:form.recaptcha>
                        <f:if condition="{showCaptcha}">
                            <f:then>
                                <f:form.hidden name="submit" value="1" />
                                <f:form.submit data="{sitekey: '{configuration.public_key}', callback: configuration.invisibleCallback}" class="{configuration.captchaCssClass}" value="{f:translate(key: 'events.create')}" />
                            </f:then>
                            <f:else>
                                <div class="recaptcha-development-mode">
                                    Development mode active. Do not expect the captcha to appear.
                                </div>
                            </f:else>
                        </f:if>
                    </r:form.recaptcha>
                </div>
                <div class="ym-g100 ig-inline back-link frame-space-before-small">
                    <f:link.page>
                        <f:translate key="events.back_to_calendar" />
                    </f:link.page>
                </div>
            </f:spaceless>
        </div>
    </f:form>
</f:section>

</html>
