X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/f110b8ba20232e0ceeb67390f8e672431868d32d..c1837dbbb99ef2c4ce2ad04ff967aa936a26e4db:/Resources/views/form/contact.html.twig

diff --git a/Resources/views/form/contact.html.twig b/Resources/views/form/contact.html.twig
index b75b91b..ee75ed0 100644
--- a/Resources/views/form/contact.html.twig
+++ b/Resources/views/form/contact.html.twig
@@ -1,34 +1,29 @@
-{% extends '@RapsysAir/base.html.twig' %}
+{% extends '@RapsysAir/body.html.twig' %}
 {% block content %}
 	<section id="form">
-		<h2><a href="{{ path('rapsys_air_contact') }}">{{ section }}</a></h2>
+		<header>
+			<h2><a href="{{ path('rapsys_air_contact') }}">{{ section }}</a></h2>
+			<p>{{ description }}</p>
+		</header>
 		{% if sent %}
-			<p>{% trans %}Your message has been sent{% endtrans %}</p>
+			<p class="message notice">{% trans %}Your message has been sent{% endtrans %}</p>
 		{% else %}
-			<div>
-				{{ form_start(form) }}
+			{{ form_start(form) }}
+				<div>
+					{{ form_row(form.subject) }}
 
-					<header>{{ form_errors(form) }}</header>
+					{{ form_row(form.name) }}
 
-					<section>
-						{{ form_row(form.subject) }}
+					{{ form_row(form.mail) }}
 
-						{{ form_row(form.name) }}
-
-						{{ form_row(form.mail) }}
-
-						{{ form_row(form.message) }}
-					</section>
+					{{ form_row(form.message) }}
 
 					{{ form_row(form.submit) }}
+				</div>
 
-					{# Render CSRF token etc .#}
-					<footer style="display:none">
-						{{ form_rest(form) }}
-					</footer>
-
-				{{ form_end(form) }}
-			</div>
+				{# Render CSRF token etc .#}
+				<footer style="display:none">{{ form_rest(form) }}</footer>
+			{{ form_end(form) }}
 		{% endif %}
 	</section>
 {% endblock %}