{% extends '@RapsysAir/body.html.twig' %}
{% block content %}
	<section id="form">
		<header>
			<h2><a href="{{ path('rapsys_air_contact') }}">{{ page.title }}</a></h2>
			<p>{{ page.description }}</p>
		</header>
		{% if sent %}
			<p class="message notice">{% trans %}Your message has been sent{% endtrans %}</p>
		{% else %}
			{{ form_start(form) }}
				<div>
					{{ form_row(form.subject) }}

					{{ form_row(form.name) }}

					{{ form_row(form.mail) }}

					{{ form_row(form.message) }}

					{{ form_row(form.submit) }}
				</div>

				{# Render CSRF token etc .#}
				<footer style="display:none">{{ form_rest(form) }}</footer>
			{{ form_end(form) }}
		{% endif %}
	</section>
{% endblock %}