diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@smile.fr> | 2015-10-05 22:16:18 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@smile.fr> | 2015-10-05 22:16:18 +0200 |
commit | ec3ce598f6423fcccd88a4fdd77f817c50bc5ab6 (patch) | |
tree | 1897d513ea9f1041e19e29b1e763eb8969f3b51c /src/Wallabag/UserBundle/Resources/views/themes/baggy/Security/login.html.twig | |
parent | 4c5e5441831430af2b8f49dbeb0c76da6993eceb (diff) | |
download | wallabag-ec3ce598f6423fcccd88a4fdd77f817c50bc5ab6.tar.gz wallabag-ec3ce598f6423fcccd88a4fdd77f817c50bc5ab6.tar.zst wallabag-ec3ce598f6423fcccd88a4fdd77f817c50bc5ab6.zip |
material design for register/login/recover pages
Diffstat (limited to 'src/Wallabag/UserBundle/Resources/views/themes/baggy/Security/login.html.twig')
-rw-r--r-- | src/Wallabag/UserBundle/Resources/views/themes/baggy/Security/login.html.twig | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/Wallabag/UserBundle/Resources/views/themes/baggy/Security/login.html.twig b/src/Wallabag/UserBundle/Resources/views/themes/baggy/Security/login.html.twig new file mode 100644 index 00000000..0e7bba0f --- /dev/null +++ b/src/Wallabag/UserBundle/Resources/views/themes/baggy/Security/login.html.twig | |||
@@ -0,0 +1,40 @@ | |||
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} | ||
2 | |||
3 | {% block title %}{% trans %}login to your wallabag{% endtrans %}{% endblock %} | ||
4 | |||
5 | {% block body_class %}login{% endblock %} | ||
6 | |||
7 | {% block menu %}{% endblock %} | ||
8 | {% block messages %}{% endblock %} | ||
9 | |||
10 | {% block content %} | ||
11 | <form action="{{ path('fos_user_security_check') }}" method="post" name="loginform"> | ||
12 | <fieldset class="w500p center"> | ||
13 | <h2 class="mbs txtcenter">{% trans %}Login to wallabag{% endtrans %}</h2> | ||
14 | {% if error %} | ||
15 | <div>{{ error.message }}</div> | ||
16 | {% endif %} | ||
17 | |||
18 | {% for flashMessage in app.session.flashbag.get('notice') %} | ||
19 | <p>{{ flashMessage }}</p> | ||
20 | {% endfor %} | ||
21 | |||
22 | <div class="row"> | ||
23 | <label class="col w150p" for="username">{% trans %}Username{% endtrans %}</label> | ||
24 | <input type="text" id="username" name="_username" value="{{ last_username }}" /> | ||
25 | </div> | ||
26 | |||
27 | <div class="row"> | ||
28 | <label class="col w150p" for="password">{% trans %}Password{% endtrans %}</label> | ||
29 | <input type="password" id="password" name="_password" /> | ||
30 | </div> | ||
31 | |||
32 | <div class="row mts txtcenter"> | ||
33 | <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}" /> | ||
34 | <button type="submit">Login</button> | ||
35 | <a href="{{ path('fos_user_registration_register') }}" class="button">{% trans %}Register{% endtrans %}</a> | ||
36 | <a href="{{ path('fos_user_resetting_request') }}" class="small">Forgot your password?</a> | ||
37 | </div> | ||
38 | </fieldset> | ||
39 | </form> | ||
40 | {% endblock %} | ||