]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Resources/views/form/contact.html.twig
Add country entity
[airbundle] / Resources / views / form / contact.html.twig
index 957eb1a6048f588c257015b62a4b660119bb4a5c..ff124d5c0166e95679fc0da84a279a27a19755c2 100644 (file)
@@ -1,34 +1,29 @@
 {% extends '@RapsysAir/body.html.twig' %}
 {% block content %}
        <section id="form">
 {% 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') }}">{{ title }}</a></h2>
+                       <p>{{ description }}</p>
+               </header>
                {% if sent %}
                        <p class="message notice">{% trans %}Your message has been sent{% endtrans %}</p>
                {% else %}
                {% if sent %}
                        <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) }}
 
                                        {{ 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 %}
                {% endif %}
        </section>
 {% endblock %}