X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/58242917a50ec39071529953e77343fd3eb6dda0..ee389cd4c92c394753f98d1bfd3ccee2817b541d:/Resources/views/form/login.html.twig diff --git a/Resources/views/form/login.html.twig b/Resources/views/form/login.html.twig index d680b2d..fd8ff05 100644 --- a/Resources/views/form/login.html.twig +++ b/Resources/views/form/login.html.twig @@ -1,32 +1,41 @@ -{% extends '@RapsysAir/base.html.twig' %} +{% extends '@RapsysAir/body.html.twig' %} {% block content %} <section id="form"> <h2><a href="{{ path('rapsys_user_login') }}">{% trans %}Login{% endtrans %}</a></h2> - <div> - {{ form_start(form) }} - - <header>{{ form_errors(form) }}</header> - + <section> + {{ form_start(login) }} <section> - {{ form_row(form.mail) }} - - {{ form_row(form.password) }} + {{ form_row(login.mail) }} - {% 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 %} + {{ form_row(login.password) }} </section> - {{ form_row(form.submit) }} + {{ form_row(login.submit) }} {# Render CSRF token etc .#} <footer style="display:none"> - {{ form_rest(form) }} + {{ form_rest(login) }} </footer> + {{ form_end(login) }} + </section> + {% if recover is defined %} + <section> + <h3>Recover</h3> + {{ form_start(recover) }} + + <section> + {{ form_row(recover.mail) }} + + {{ form_row(recover.submit) }} + </section> + + {# Render CSRF token etc .#} + <footer style="display:none"> + {{ form_rest(recover) }} + </footer> - {{ form_end(form) }} - </div> + {{ form_end(recover) }} + </section> + {% endif %} </section> {% endblock %}