aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/login.twig
blob: d10805301f92ba93d179b956cebd500c80651ea1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{% extends "layout.twig" %}

{% block title %}{% trans "login to your poche" %}{% endblock %}
{% block messages %}
            <div class="messages">
                <ul>
                {% for error in errors %}
                    <li>{{ error.value|e }}</li>
                {% endfor %}
                </ul>
            </div>
{% endblock %}
{% block content %}
            <form method="post" action="?login" name="loginform">
                <fieldset class="w500p center">
                    <h2 class="mbs txtcenter">{% trans "login to your poche" %}</h2>
                    {% if demo == 1 %}<p>{% trans "you are in demo mode, some features may be disabled." %}</p>{% endif %}
					<div class="row">
						<label class="col w150p" for="login">{% trans "Login" %}</label>
						<input class="col" type="text" id="login" name="login" placeholder="Login" tabindex="1" autofocus {% if demo == 1 %}value="poche"{% endif %} />
					</div>

					<div class="row">
						<label class="col w150p" for="password">{% trans "Password" %}</label>
						<input class="col" type="password" id="password" name="password" placeholder="Password" tabindex="2" {% if demo == 1 %}value="poche"{% endif %} />
					</div>
					<div class="row">
						<label class="col w150p">{% trans "Stay signed in" %}</label>
						<div class="col">
							<input type="checkbox" name="longlastingsession" tabindex="3">
							<small class="inbl">(Do not check on public computers)</small>
						</div>
					</div>
					<div class="row mts txtcenter">
						<button class="bouton" type="submit" tabindex="4">{% trans "Sign in" %}</button>
					</div>
                </fieldset>
                <input type="hidden" name="returnurl" value="{{ referer }}">
                <input type="hidden" name="token" value="{{ token }}">
            </form>
{% endblock %}