-
Notifications
You must be signed in to change notification settings - Fork 1
/
password.html
64 lines (53 loc) · 1.87 KB
/
password.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
{% extends "./wrapper.html" %}
{% load actionkit_tags %}
{% block content %}
<div class="ak-grid-row">
<div class="ak-grid-col ak-grid-col-4-of-12 ak-grid-centered">
{% if message %}
<p class="ak-large-text">{{ message }}</p>
{% else %}
{% if first %}
<p>Fill out your email below and we'll send you a link to set up a password so you can log in.</p>
{% else %}
<p>Fill out the form below and we'll send you a link to reset your password.</p>
{% endif %}
<form action="{{ app_path }}" method="post" id="login-form" name="login-form" class="ak-styled-fields ak-labels-above ak-errs-below">
{{ form.non_field_errors }}
{% for field in form.visible_fields %}
<div>
<label for="{{ field.id_for_label }}">
{{ field.label }}
</label>
{{ field }}
{{ field.errors }}
</div>
{% endfor %}
{% for field in form.hidden_fields %}
{{ field }}
{% endfor %}
<div class="submit-row">
<button type="submit" class="ak-submit-button">Send</button>
</div>
</form>
{% endif %}
</div>
</div>
{% endblock %}
{% block script_additions %}
<script type="text/javascript">
$( function () {
var email_field = $('#id_email');
email_field.focus();
var email_from_url = {{ email|json }};
if (email_from_url) {
email_field.val( email_from_url ).change();
}
} );
</script>
{% endblock %}
{% block below_form %}
<script>
actionkit.forms.contextRoot = '/context/';
actionkit.forms.initValidation('login-form');
</script>
{% endblock %}