snipt/templates/registration/password_change_form.html

68 lines
2.8 KiB
HTML
Raw Permalink Normal View History

2012-02-12 21:42:25 -08:00
{% extends "registration/registration_base.html" %}
2012-02-12 17:17:17 -08:00
2012-02-16 09:29:30 -08:00
{% block page-title %}Change password - {{ block.super }}{% endblock %}
2012-02-12 17:17:17 -08:00
2012-02-12 21:42:25 -08:00
{% block body-class %}{{ block.super }} static{% endblock %}
2012-02-12 17:17:17 -08:00
{% block content %}
2013-05-14 10:18:39 -07:00
<form class="form-horizontal static-box" method="post" action=".">
2012-02-12 17:17:17 -08:00
{% if form.errors %}
2012-02-16 09:29:30 -08:00
{% 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 %}
2012-02-12 17:17:17 -08:00
{% endif %}
2012-02-16 09:29:30 -08:00
<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>
2012-02-12 17:17:17 -08:00
</div>
2012-02-16 09:29:30 -08:00
<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 %}
2012-02-12 17:17:17 -08:00
</div>
2012-02-16 09:29:30 -08:00
</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 %}
2012-02-12 17:17:17 -08:00
</div>
2012-02-16 09:29:30 -08:00
</div>
<div class="form-actions group">
<button class="btn btn-primary" type="submit">Change password</button>
</div>
</fieldset>
{% csrf_token %}
</form>
2012-02-12 17:17:17 -08:00
{% endblock %}