Password change and update text.
parent
923d1676d5
commit
1835b362e1
|
@ -1,6 +1,6 @@
|
|||
{% extends "registration/registration_base.html" %}
|
||||
|
||||
{% block page-title %}Password reset - {{ block.super }}{% endblock %}
|
||||
{% block page-title %}Change password - {{ block.super }}{% endblock %}
|
||||
|
||||
{% block body-class %}{{ block.super }} static{% endblock %}
|
||||
|
||||
|
|
|
@ -1,51 +1,67 @@
|
|||
{% extends "registration/registration_base.html" %}
|
||||
|
||||
{% block page-title %}Reset password - {{ block.super }}{% endblock %}
|
||||
{% block page-title %}Change password - {{ block.super }}{% endblock %}
|
||||
|
||||
{% block body-class %}{{ block.super }} static{% endblock %}
|
||||
|
||||
{% block banner %}
|
||||
<h1>
|
||||
<span class="subtitle">Settings</span>
|
||||
<a href="{{ request.path }}" class="title">Account Information</a>
|
||||
</h1>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% include "accounts/nav.html" %}
|
||||
<div class="page-content">
|
||||
<form class="form-horizontal static-box" method="post" action="">
|
||||
{% if form.errors %}
|
||||
<div class="errors">
|
||||
{{ form.errors }}
|
||||
</div>
|
||||
{% if form.non_field_errors %}
|
||||
<div class="alert alert-error">
|
||||
{{ form.non_field_errors }}
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="alert alert-error">
|
||||
Please fix the errors below.
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<div class="tab-content" id="change-password">
|
||||
<div class="page-title">
|
||||
<h2 class="title-account">Change Your Password</h2>
|
||||
<p>If you change your password, make sure to remember it for the next time you login.</p>
|
||||
<fieldset>
|
||||
<legend>Change password</legend>
|
||||
<div class="control-group {% if form.old_password.errors %}error{% endif %}">
|
||||
<label class="control-label" for="id_old_password">Current password</label>
|
||||
<div class="controls">
|
||||
{{ form.old_password }}
|
||||
{% if form.errors.old_password %}
|
||||
<span class="help-inline">
|
||||
{% for error in form.errors.old_password %}
|
||||
{{ error }}
|
||||
{% endfor %}
|
||||
</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<form class="form-horizontal" method='post' action=''>
|
||||
<div class="fields">
|
||||
{% csrf_token %}
|
||||
<div class="field">
|
||||
<div class="field {% if form.old_password.errors %}error{% endif %}">
|
||||
<label for="id_old_password">Current Password</label>
|
||||
{{ form.old_password }}
|
||||
</div>
|
||||
<div class="field {% if form.new_password1.errors %}error{% endif %}">
|
||||
<label for="id_new_password1">New Password</label>
|
||||
{{ form.new_password1 }}
|
||||
</div>
|
||||
<div class="field {% if form.new_password2.errors %}error{% endif %}">
|
||||
<label for="id_new_password2">Confirm New Password</label>
|
||||
{{ form.new_password2 }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group {% if form.new_password1.errors %}error{% endif %}">
|
||||
<label class="control-label" for="id_new_password1">New password</label>
|
||||
<div class="controls">
|
||||
{{ form.new_password1 }}
|
||||
{% if form.errors.new_password1 %}
|
||||
<span class="help-inline">
|
||||
{% for error in form.errors.new_password1 %}
|
||||
{{ error }}
|
||||
{% endfor %}
|
||||
</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="submit">
|
||||
<input class="submit" type='submit' value="Change Password" />
|
||||
</div>
|
||||
<div class="control-group {% if form.new_password2.errors %}error{% endif %}">
|
||||
<label class="control-label" for="id_new_password2">Confirm new password</label>
|
||||
<div class="controls">
|
||||
{{ form.new_password2 }}
|
||||
{% if form.errors.new_password2 %}
|
||||
<span class="help-inline">
|
||||
{% for error in form.errors.new_password2 %}
|
||||
{{ error }}
|
||||
{% endfor %}
|
||||
</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-actions group">
|
||||
<button class="btn btn-primary" type="submit">Change password</button>
|
||||
</div>
|
||||
</fieldset>
|
||||
{% csrf_token %}
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{% extends "registration/registration_base.html" %}
|
||||
|
||||
{% block page-title %}Password reset - {{ block.super }}{% endblock %}
|
||||
{% block page-title %}Reset password - {{ block.super }}{% endblock %}
|
||||
|
||||
{% block body-class %}{{ block.super }} static{% endblock %}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{% extends "registration/registration_base.html" %}
|
||||
|
||||
{% block page-title %}Password reset - {{ block.super }}{% endblock %}
|
||||
{% block page-title %}Reset password - {{ block.super }}{% endblock %}
|
||||
|
||||
{% block body-class %}{{ block.super }} static{% endblock %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue