aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/login.twig
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-08-02 22:40:51 +0200
committerNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-08-02 22:40:51 +0200
commita4565e88edbc8e3bd092a475469769c86a4c350c (patch)
treea6a3c935b03a23ff87575c8c315cf8ba78fe68c2 /tpl/login.twig
parentf6c9baab3efeec1d0efa151e276fc08d5b58f9e9 (diff)
downloadwallabag-a4565e88edbc8e3bd092a475469769c86a4c350c.tar.gz
wallabag-a4565e88edbc8e3bd092a475469769c86a4c350c.tar.zst
wallabag-a4565e88edbc8e3bd092a475469769c86a4c350c.zip
add Twig & refactor poche
Diffstat (limited to 'tpl/login.twig')
-rw-r--r--tpl/login.twig31
1 files changed, 31 insertions, 0 deletions
diff --git a/tpl/login.twig b/tpl/login.twig
new file mode 100644
index 00000000..390718b6
--- /dev/null
+++ b/tpl/login.twig
@@ -0,0 +1,31 @@
1{% extends "layout.twig" %}
2{% block title %}Login{% endblock %}
3{% block content %}
4 <form method="post" action="?login" name="loginform">
5 <fieldset class="w500p center">
6 <h2 class="mbs txtcenter">{% trans "login to your poche" %}</h2>
7 {% if demo == 1 %}<p>{% trans "you are in demo mode, some features may be disabled." %}</p>{% endif %}
8 <div class="row">
9 <label class="col w150p" for="login">{% trans "Login" %}</label>
10 <input class="col" type="text" id="login" name="login" placeholder="Login" tabindex="1" autofocus {% if demo == 1 %}value="poche"{% endif %} />
11 </div>
12
13 <div class="row">
14 <label class="col w150p" for="password">{% trans "Password" %}</label>
15 <input class="col" type="password" id="password" name="password" placeholder="Password" tabindex="2" {% if demo == 1 %}value="poche"{% endif %} />
16 </div>
17 <div class="row">
18 <label class="col w150p">{% trans "Stay signed in" %}</label>
19 <div class="col">
20 <input type="checkbox" name="longlastingsession" tabindex="3">
21 <small class="inbl">(Do not check on public computers)</small>
22 </div>
23 </div>
24 <div class="row mts txtcenter">
25 <button class="bouton" type="submit" tabindex="4">{% trans "Sign in" %}</button>
26 </div>
27 </fieldset>
28 <input type="hidden" name="returnurl" value="{{ referer }}">
29 <input type="hidden" name="token" value="{{ token }}">
30 </form>
31{% endblock %} \ No newline at end of file