]>
Commit | Line | Data |
---|---|---|
1 | {% extends "FOSUserBundle::layout.html.twig" %} | |
2 | ||
3 | {% block fos_user_content %} | |
4 | <form action="{{ path('fos_user_security_check') }}" method="post" name="loginform"> | |
5 | <fieldset class="w500p center"> | |
6 | <h2 class="mbs txtcenter">{% trans %}Login to wallabag{% endtrans %}</h2> | |
7 | {% if error %} | |
8 | <div>{{ error.message }}</div> | |
9 | {% endif %} | |
10 | ||
11 | {% for flashMessage in app.session.flashbag.get('notice') %} | |
12 | <p>{{ flashMessage }}</p> | |
13 | {% endfor %} | |
14 | ||
15 | <div class="row"> | |
16 | <label class="col w150p" for="username">{% trans %}Username{% endtrans %}</label> | |
17 | <input type="text" id="username" name="_username" value="{{ last_username }}" /> | |
18 | </div> | |
19 | ||
20 | <div class="row"> | |
21 | <label class="col w150p" for="password">{% trans %}Password{% endtrans %}</label> | |
22 | <input type="password" id="password" name="_password" /> | |
23 | </div> | |
24 | ||
25 | <div class="row mts txtcenter"> | |
26 | <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}" /> | |
27 | <button type="submit">Login</button> | |
28 | <a href="{{ path('fos_user_registration_register') }}" class="button">{% trans %}Register{% endtrans %}</a> | |
29 | <a href="{{ path('fos_user_resetting_request') }}" class="small">Forgot your password?</a> | |
30 | </div> | |
31 | </fieldset> | |
32 | </form> | |
33 | {% endblock %} |