]> Raphaƫl G. Git Repositories - blogbundle/blob - Resources/views/form/login.html.twig
Add login template
[blogbundle] / Resources / views / form / login.html.twig
1 {% extends '@RapsysBlog/_base.html.twig' %}
2 {% block content %}
3 <section class="form">
4 <header>
5 <h2><a href="{{ path('rapsys_user_login') }}">{{ title }}</a></h2>
6 </header>
7 <section>
8 {{ form_start(login) }}
9 {{ form_row(login.mail) }}
10
11 {{ form_row(login.password) }}
12
13 {{ form_row(login.submit) }}
14
15 {# Render CSRF token etc .#}
16 <footer style="display:none">{{ form_rest(login) }}</footer>
17 {{ form_end(login) }}
18 </section>
19 </section>
20 {% if recover is defined %}
21 <section class="form">
22 <header>
23 <h2><a href="{{ path('rapsys_user_recover') }}">{% trans %}Recover{% endtrans %}</a></h2>
24 </header>
25 <section>
26 {{ form_start(recover) }}
27
28 {{ form_row(recover.mail) }}
29
30 {{ form_row(recover.submit) }}
31
32 {# Render CSRF token etc .#}
33 <footer style="display:none">{{ form_rest(recover) }}</footer>
34 {{ form_end(recover) }}
35 </section>
36 </section>
37 {% endif %}
38 {% endblock %}