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