diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-01-22 08:30:07 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-01-22 08:30:07 +0100 |
commit | 93fd4692f6eb753cae16358131c8049d84cfbb41 (patch) | |
tree | 1ef2f66eb378cf419d1aa033a2c772539e60537d /app/Resources/views/default/login.twig | |
parent | 0440249631164a378981d014bf71b617c082bf5a (diff) | |
download | wallabag-93fd4692f6eb753cae16358131c8049d84cfbb41.tar.gz wallabag-93fd4692f6eb753cae16358131c8049d84cfbb41.tar.zst wallabag-93fd4692f6eb753cae16358131c8049d84cfbb41.zip |
symfony is there
Diffstat (limited to 'app/Resources/views/default/login.twig')
-rw-r--r-- | app/Resources/views/default/login.twig | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/app/Resources/views/default/login.twig b/app/Resources/views/default/login.twig new file mode 100644 index 00000000..b9f8b497 --- /dev/null +++ b/app/Resources/views/default/login.twig | |||
@@ -0,0 +1,34 @@ | |||
1 | {% extends "layout.twig" %} | ||
2 | |||
3 | {% block title %}{% trans "login to your wallabag" %}{% endblock %} | ||
4 | {% block content %} | ||
5 | {% if http_auth == 0 %} | ||
6 | <form method="post" action="?login" name="loginform"> | ||
7 | <fieldset class="w500p center"> | ||
8 | <h2 class="mbs txtcenter">{% trans "Login to wallabag" %}</h2> | ||
9 | {% if constant('MODE_DEMO') == 1 %}<p>{% trans "you are in demo mode, some features may be disabled." %}</p>{% endif %} | ||
10 | <div class="row"> | ||
11 | <label class="col w150p" for="login">{% trans "Username" %}</label> | ||
12 | <input class="col" type="text" id="login" name="login" placeholder="Login" tabindex="1" autofocus {% if constant('MODE_DEMO') == 1 %}value="poche"{% endif %} /> | ||
13 | </div> | ||
14 | |||
15 | <div class="row"> | ||
16 | <label class="col w150p" for="password">{% trans "Password" %}</label> | ||
17 | <input class="col" type="password" id="password" name="password" placeholder="Password" tabindex="2" {% if constant('MODE_DEMO') == 1 %}value="poche"{% endif %} /> | ||
18 | </div> | ||
19 | <div class="row"> | ||
20 | <label class="col w150p" for="longlastingsession">{% trans "Stay signed in" %}</label> | ||
21 | <div class="col"> | ||
22 | <input type="checkbox" id="longlastingsession" name="longlastingsession" tabindex="3"> | ||
23 | <small class="inbl">{% trans "(Do not check on public computers)" %}</small> | ||
24 | </div> | ||
25 | </div> | ||
26 | <div class="row mts txtcenter"> | ||
27 | <button class="bouton" type="submit" tabindex="4">{% trans "Sign in" %}</button> | ||
28 | </div> | ||
29 | </fieldset> | ||
30 | <input type="hidden" name="returnurl" value="{{ referer }}"> | ||
31 | <input type="hidden" name="token" value="{{ token }}"> | ||
32 | </form> | ||
33 | {% endif %} | ||
34 | {% endblock %} | ||