-
Notifications
You must be signed in to change notification settings - Fork 8
/
login.html
68 lines (53 loc) · 2.8 KB
/
login.html
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
{% extends "./wrapper.html" %}
{% block content %}
<div class="ak-grid-row">
<div class="ak-grid-col ak-grid-col-4-of-12 ak-grid-centered">
<h2>Log In</h2>
<div class="area">
{% if error_message %}
<p class="errornote">{{ error_message }}</p>
{% endif %}
{% if invalid %}
<p class="errornote">Incorrect email or password. Try again, or <a href="{% url 'user_password_forgot' %}?next={{ next }}&email={{ email }}">we can email you a link to reset your password</a>.</p>
{% endif %}
<div id="content-main">
{% if no_password %}
<p>It looks like you've never logged in before. <a href="{% url 'user_password_forgot' %}?email={{ email }}">Click here to set up a password.</a>.</p>
{% endif %}
{% if wrong_account %}
<p>It looks like you may need another email address to view that page, or the page may no longer be accessible.</p>
{% endif %}
<form action="{{ app_path }}" method="post" id="login-form" name="login-form">
<input type="hidden" name="this_is_the_login_form" value="1">
<input type="hidden" name="next" value="{{ next }}">
<input type="hidden" name="required" value="password">
<div class="ak-styled-fields ak-labels-above ak-errs-below ak-clearfix">
<div>
<label for="id_email">Email</label>
<input type="text" name="email" value="{{ email }}" id="id_email" class="ak-full-width">
</div>
<div>
<label for="id_password">Password</label>
<input type="password" name="password" id="id_password" class="ak-full-width">
</div>
<button type="submit" class="ak-submit-button">Log In</button>
</div>
<div>
<a href="{% url 'user_password_forgot' %}?next={{ next }}&email={{ email }}">Forgot your password?</a>
</div>
<div>
<a href="{% url 'user_password_forgot' %}?next={{ next }}&first=1&email={{ email }}">Never logged in before?</a>
</div>
</form>
</div>
</div>
</div>
</div>
{% endblock %}
{% block below_form %}
<script>
actionkit.forms.contextRoot = '/context/';
actionkit.forms.initValidation('login-form');
document.getElementById('id_{% if email %}password{% else %}email{% endif %}').focus()
</script>
{% endblock %}