blob: d73238d09456d7f6fa74ec7abd32d023b8de3f00 (
plain)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
{% extends 'mainlayout.html' %}
{% block content %}
<section class=section>
<div class="container is-max-desktop box">
<h1 class=title>
{% trans %}Login{% endtrans %}
</h1>
<h2 class=subtitle>
JWebmail
</h2>
{% if login_form.errors %}
<div class="message is-warning">
<div class=message-header>
{{ login_form.errors }}
</div>
</div>
{% endif %}
{% if warn %}
<div class="message is-warning">
<div class=message-header>
{{ warn }}
</div>
</div>
{% endif %}
<form name="login1" id="login1" method="POST" class="pure-form pure-form-aligned jwm-round">
{{ login_form.csrf_token }}
<div class="field is-horizontal">
<div class="field-label is-normal">
{{ login_form.username.label(class='label') }}
</div>
<div class=field-body>
<div class=field>
<div class=control>
{{ login_form.username(class='input') }}
</div>
</div>
</div>
</div>
<div class="field is-horizontal">
<div class="field-label is-normal">
{{ login_form.password.label(class='label') }}
</div>
<div class=field-body>
<div class=field>
<div class=control>
{{ login_form.password(class='input') }}
</div>
</div>
</div>
</div>
<div class="field is-horizontal">
<div class=field-label>
</div>
<div class=field-body>
<div class=field>
<div class=control>
<input type=submit class="button is-primary" name=submit_button value="{{ gettext('Login') }}">
</div>
</div>
</div>
</div>
</form>
</div>
</section>
{% endblock %}
{% block scripts %}
<script type="text/javascript">
if (!document.forms.login1.username.value) {
document.forms.login1.username.focus();
} else {
document.forms.login1.password.focus();
}
</script>
{% endblock %}
|