]>
Commit | Line | Data |
---|---|---|
943ac3c7 NL |
1 | {% extends "layout-login.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> | |
f60c9b00 | 12 | <input class="col" type="text" id="login" name="login" placeholder="{% trans "Username" %}" tabindex="1" autofocus {% if constant('MODE_DEMO') == 1 %}value="poche"{% endif %} /> |
943ac3c7 NL |
13 | </div> |
14 | ||
15 | <div class="row"> | |
16 | <label class="col w150p" for="password">{% trans "Password" %}</label> | |
f60c9b00 | 17 | <input class="col" type="password" id="password" name="password" placeholder="{% trans "Password" %}" tabindex="2" {% if constant('MODE_DEMO') == 1 %}value="poche"{% endif %} /> |
943ac3c7 NL |
18 | </div> |
19 | <div class="row"> | |
f60c9b00 | 20 | |
943ac3c7 | 21 | <div class="col"> |
f60c9b00 | 22 | <input type="checkbox" id="longlastingsession" name="longlastingsession" tabindex="3" /> <label for="longlastingsession">{% trans "Stay signed in" %}</label><br /> |
943ac3c7 NL |
23 | <small class="inbl">{% trans "(Do not check on public computers)" %}</small> |
24 | </div> | |
25 | </div> | |
26 | <div class="row mts txtcenter"> | |
e5382002 | 27 | <button class="bouton" type="submit" tabindex="4">{% trans "Sign in" %}</button> |
943ac3c7 | 28 | </div> |
698eda73 TC |
29 | {% if constant('ALLOW_REGISTER') == 1 %} |
30 | <div class="register"> | |
31 | <a href="?registerform">{% trans "Register" %}</a> | |
32 | </div> | |
33 | {% endif %} | |
943ac3c7 NL |
34 | </fieldset> |
35 | <input type="hidden" name="returnurl" value="{{ referer }}"> | |
36 | <input type="hidden" name="token" value="{{ token }}"> | |
37 | </form> | |
38 | {% endif %} | |
39 | {% endblock %} |