]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Resources/views/form/login.html.twig
Replace body with base template
[airbundle] / Resources / views / form / login.html.twig
index d680b2dfcddc56a931dd09bf212fafefdf37e0de..c01e652b9c10bc5823d7c33f0ae51fcf65cf5696 100644 (file)
@@ -1,32 +1,38 @@
 {% extends '@RapsysAir/base.html.twig' %}
 {% block content %}
-       <section id="form">
-               <h2><a href="{{ path('rapsys_user_login') }}">{% trans %}Login{% endtrans %}</a></h2>
-               <div>
-                       {{ form_start(form) }}
+       <article id="form">
+               <header>
+                       <h2><a href="{{ path('rapsys_user_login') }}">{% trans %}Login{% endtrans %}</a></h2>
+               </header>
+               {{ form_start(login) }}
+                       <div>
+                               {{ form_row(login.mail) }}
 
-                               <header>{{ form_errors(form) }}</header>
+                               {{ form_row(login.password) }}
 
-                               <section>
-                                       {{ form_row(form.mail) }}
+                               {{ form_row(login.submit) }}
+                       </div>
 
-                                       {{ form_row(form.password) }}
+                       {# Render CSRF token etc .#}
+                       <footer style="display:none">{{ form_rest(login) }}</footer>
+               {{ form_end(login) }}
+       </article>
+       {% if recover is defined %}
+               <article id="recover">
+                       <header>
+                               <h2><a href="{{ path('rapsys_user_recover') }}">{% trans %}Recover{% endtrans %}</a></h2>
+                       </header>
+                       {{ form_start(recover) }}
 
-                                       {% if error %}
-                                               <div class="error">
-                                                       <ul><li><a href="{{ path('rapsys_user_recover') }}">{% trans %}To recover your account click here{% endtrans %}</a></li></ul>
-                                               </div>
-                                       {% endif %}
-                               </section>
+                               <div>
+                                       {{ form_row(recover.mail) }}
 
-                               {{ form_row(form.submit) }}
+                                       {{ form_row(recover.submit) }}
+                               </div>
 
                                {# Render CSRF token etc .#}
-                               <footer style="display:none">
-                                       {{ form_rest(form) }}
-                               </footer>
-
-                       {{ form_end(form) }}
-               </div>
-       </section>
+                               <footer style="display:none">{{ form_rest(recover) }}</footer>
+                       {{ form_end(recover) }}
+               </article>
+       {% endif %}
 {% endblock %}