Fr3deric
6 years ago
6 changed files with 90 additions and 0 deletions
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
{% extends "bam/base.html" %} |
||||
{% block content %} |
||||
<p><h1>Password Change</h1></p> |
||||
|
||||
<p>Your password has been changed.</p> |
||||
{% endblock %} |
@ -0,0 +1,32 @@
@@ -0,0 +1,32 @@
|
||||
{% extends "bam/base.html" %} |
||||
{% block content-extra-head %} |
||||
<style> |
||||
.form-error { |
||||
color: #e9322d; |
||||
} |
||||
</style> |
||||
{% endblock %} |
||||
{% block content %} |
||||
<p><h1>Password Reset</h1></p> |
||||
|
||||
<p> |
||||
<form method="post" action="{% url 'password_reset' %}" class="pure-form pure-form-aligned"> |
||||
{% csrf_token %} |
||||
<fieldset> |
||||
{% for field in form %} |
||||
<div class="pure-control-group"> |
||||
{{ field.label_tag }} |
||||
{{ field }} |
||||
{% for error in field.errors %} |
||||
<span class="pure-form-message form-error">{{ error }}</span> |
||||
{% endfor %} |
||||
</div> |
||||
{% endfor %} |
||||
<div class="pure-controls"> |
||||
<button type="submit" class="pure-button pure-button-primary">Reset password</button> |
||||
</div> |
||||
<input type="hidden" name="next" value="{{ next }}"> |
||||
</fieldset> |
||||
</form> |
||||
</p> |
||||
{% endblock %} |
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
{% extends "bam/base.html" %} |
||||
{% block content %} |
||||
<p><h1>Password Reset</h1></p> |
||||
|
||||
<p>Your password has been changed. Click <a href="{% url "login" %}">here</a> to log in.</p> |
||||
{% endblock %} |
@ -0,0 +1,36 @@
@@ -0,0 +1,36 @@
|
||||
{% extends "bam/base.html" %} |
||||
{% block content-extra-head %} |
||||
<style> |
||||
.form-error { |
||||
color: #e9322d; |
||||
} |
||||
</style> |
||||
{% endblock %} |
||||
{% block content %} |
||||
<p><h1>Password Reset</h1></p> |
||||
|
||||
<p> |
||||
{% if validlink %} |
||||
<form method="post" action="" class="pure-form pure-form-aligned"> |
||||
{% csrf_token %} |
||||
<fieldset> |
||||
{% for field in form %} |
||||
<div class="pure-control-group"> |
||||
{{ field.label_tag }} |
||||
{{ field }} |
||||
{% for error in field.errors %} |
||||
<span class="pure-form-message form-error">{{ error }}</span> |
||||
{% endfor %} |
||||
</div> |
||||
{% endfor %} |
||||
<div class="pure-controls"> |
||||
<button type="submit" class="pure-button pure-button-primary">Change password</button> |
||||
</div> |
||||
<input type="hidden" name="next" value="{{ next }}"> |
||||
</fieldset> |
||||
</form> |
||||
{% else %} |
||||
Invalid password reset link. |
||||
{% endif %} |
||||
</p> |
||||
{% endblock %} |
@ -0,0 +1,5 @@
@@ -0,0 +1,5 @@
|
||||
{% extends "bam/base.html" %} |
||||
{% block content %} |
||||
<p><h1>Password Reset</h1></p> |
||||
Please check your mailbox. |
||||
{% endblock %} |
Loading…
Reference in new issue