]> git.immae.eu Git - github/wallabag/wallabag.git/blob - src/Wallabag/UserBundle/Resources/views/Security/login.html.twig
Merge pull request #3858 from wallabag/bump-ocramius
[github/wallabag/wallabag.git] / src / Wallabag / UserBundle / Resources / views / Security / login.html.twig
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 <div class="card-content">
6
7 {% if error %}
8 <script>Materialize.toast('{{ error.messageKey|trans(error.messageData, 'security') }}', 4000)</script>
9 {% endif %}
10
11 {% for flashMessage in app.session.flashbag.get('notice') %}
12 <script>Materialize.toast('{{ flashMessage }}')</script>
13 {% endfor %}
14
15 <div class="row">
16
17 <div class="input-field col s12">
18 <label for="username">{{ 'security.login.username'|trans }}</label>
19 <input type="text" id="username" name="_username" value="{{ last_username }}" autofocus />
20 </div>
21
22 <div class="input-field col s12">
23 <label for="password">{{ 'security.login.password'|trans }}</label>
24 <input type="password" id="password" name="_password" />
25 </div>
26
27 <div class="input-field col s12">
28 <input type="checkbox" id="remember_me" name="_remember_me" checked />
29 <label for="remember_me">{{ 'security.login.keep_logged_in'|trans }}</label>
30 </div>
31
32 </div>
33 </div>
34 <div class="card-action center">
35 <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}" />
36 {% if registration_enabled %}
37 <a href="{{ path('fos_user_registration_register') }}" class="waves-effect waves-light grey btn">{{ 'security.login.register'|trans }}</a>
38 {% endif %}
39 <button class="btn waves-effect waves-light" type="submit" name="send">
40 {{ 'security.login.submit'|trans }}
41 <i class="material-icons right">send</i>
42 </button>
43 </div>
44 <div class="card-action center">
45 <a href="{{ path('fos_user_resetting_request') }}">{{ 'security.login.forgot_password'|trans }}</a>
46 </div>
47 </form>
48 {% endblock fos_user_content %}