]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Resources/views/form/contact.html.twig
Rename rapsysair:calendar2 command to rapsysair:calendar
[airbundle] / Resources / views / form / contact.html.twig
index b75b91b761da7f439756b28c43dcc7987b3c3df4..dfc46be39553fa480acaac4c9bdfc293a842e2c5 100644 (file)
@@ -1,34 +1,30 @@
 {% extends '@RapsysAir/base.html.twig' %}
 {% block content %}
-       <section id="form">
-               <h2><a href="{{ path('rapsys_air_contact') }}">{{ section }}</a></h2>
+       <article>
+               <header>
+                       <h2>{{ description }}</h2>
+               </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.message) }}
 
-                                               {{ form_row(form.mail) }}
-
-                                               {{ form_row(form.message) }}
-                                       </section>
+                                       {{ form_row(form.captcha) }}
 
                                        {{ 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>
+       </article>
 {% endblock %}