-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreset_password.html
64 lines (60 loc) · 1.72 KB
/
reset_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 "base.html" %}
{% block stylesheets %}
{% endblock %}
{% block content %}
<div class="jumbotron">
<div class="container">
<h1>Reset Password</h1>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-6 offset-md-3">
{% include "components/errors.html" %}
{% if mode == "set" %}
{% with form = Forms.auth.ResetPasswordForm() %}
<form method="post" accept-charset="utf-8" autocomplete="off" role="form" class="form-horizontal">
<div class="row">
<div class="col-md-12">
<p>You can now reset the password for your account and log in. Please enter in a new password below.</p>
</div>
</div>
<div class="form-group">
{{ form.password.label }}
{{ form.password(class="form-control") }}
</div>
<div class="row">
<div class="col-md-6 offset-md-6">
{{ form.submit(class="btn btn-md btn-primary float-right") }}
</div>
</div>
{{ form.nonce() }}
</form>
{% endwith %}
{% else %}
{% with form = Forms.auth.ResetPasswordRequestForm() %}
<form method="post" accept-charset="utf-8" autocomplete="off" role="form" class="form-horizontal">
<div class="row">
<div class="col-md-12">
<p>Please provide the email address associated with your account below.</p>
</div>
</div>
<div class="form-group">
{{ form.email.label }}
{{ form.email(class="form-control") }}
</div>
<div class="row">
<div class="col-md-6 offset-md-6">
{{ form.submit(class="btn btn-md btn-primary float-right") }}
</div>
</div>
{{ form.nonce() }}
</form>
{% endwith %}
{% endif %}
</div>
</div>
</div>
{% endblock %}
{% block scripts %}
{% endblock %}