{namespace form=Neos\Form\ViewHelpers}

<section class="o-container o-container--sm">
	<form:form action="index" object="{form}" method="post" id="{form.identifier}" section="{form.identifier}" enctype="multipart/form-data">
        <f:if condition="{form.renderingOptions.venueTitle} || {form.renderingOptions.venueUnit}">
            <div class="border border-grey-lighter rounded-md p-4 mb-8">
                <h3 class="mt-0">{form.renderingOptions.venueTitle}</h3>
                <p class="text-lg mt-4">{form.renderingOptions.venueUnit}</p>
            </div>
        </f:if>

		<f:if condition="{form.request.parentRequest.arguments.offerSubject}">
			<div class="border border-grey-lighter rounded-3 p-4 mb-6">
				<b>{f:translate(id: 'form.offer.name', source: 'Main', package: 'Newland.CityTheme')}:</b> {form.request.parentRequest.arguments.offerSubject}
				<br>
				<b>{f:translate(id: 'form.offer.organizer', source: 'Main', package: 'Newland.CityTheme')}:</b> {form.request.parentRequest.arguments.recipientName}
			</div>
		</f:if>
		<form:renderRenderable renderable="{form.currentPage}" />
		<f:render partial="Neos.Form:Form/Navigation" arguments="{form: form}" />
		<p class="text-grey mb-6">* {f:translate(id: 'form.required', source: 'Main', package: 'Newland.CityTheme')}</p>
	</form:form>
</section>
