X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/blobdiff_plain/653cfc153b29c84533b00d29a92510339c6358ca..6feb88cf38ddb5bf23449ca2f84453d645f379e1:/Resources/views/form/login.html.twig diff --git a/Resources/views/form/login.html.twig b/Resources/views/form/login.html.twig index d127e25..cdfeca5 100644 --- a/Resources/views/form/login.html.twig +++ b/Resources/views/form/login.html.twig @@ -2,31 +2,33 @@ {% block content %} <section id="form"> <h2><a href="{{ path('rapsys_user_login') }}">{% trans %}Login{% endtrans %}</a></h2> - <div> - {{ form_start(form) }} + {{ form_start(login) }} + <section> + {{ form_row(login.mail) }} - <header>{{ form_errors(form) }}</header> + {{ form_row(login.password) }} - <section> - {{ form_row(form.mail) }} + {{ form_row(login.submit) }} + </section> - {{ form_row(form.password) }} + {# Render CSRF token etc .#} + <footer style="display:none">{{ form_rest(login) }}</footer> + {{ form_end(login) }} + </section> + {% if recover is defined %} + <section id="recover"> + <h2><a href="{{ path('rapsys_user_recover') }}">{% trans %}Recover{% endtrans %}</a></h2> + {{ 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) }} + </section> + {% endif %} {% endblock %}