2012-02-12 21:42:25 -08:00
|
|
|
{% extends "registration/registration_base.html" %}
|
2012-02-12 17:17:17 -08:00
|
|
|
|
|
|
|
{% block page-title %}Reset password - {{ block.super }}{% endblock %}
|
|
|
|
|
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 21:42:25 -08:00
|
|
|
{% if form.errors %}
|
|
|
|
{% 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.
|
2012-02-12 17:17:17 -08:00
|
|
|
</div>
|
2012-02-12 21:42:25 -08:00
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
<fieldset>
|
|
|
|
<legend>Reset password</legend>
|
|
|
|
<div class="control-group {% if form.email.errors %}error{% endif %}">
|
|
|
|
<label class="control-label" for="id_email">Email</label>
|
|
|
|
<div class="controls">
|
|
|
|
{{ form.email }}
|
|
|
|
{% if form.errors.email %}
|
|
|
|
<span class="help-inline">
|
|
|
|
{% for error in form.errors.email %}
|
|
|
|
{{ error }}
|
|
|
|
{% endfor %}
|
|
|
|
</span>
|
2012-02-12 17:17:17 -08:00
|
|
|
{% endif %}
|
2012-02-12 21:42:25 -08:00
|
|
|
</div>
|
2012-02-12 17:17:17 -08:00
|
|
|
</div>
|
2012-02-12 22:46:59 -08:00
|
|
|
<div class="form-actions group">
|
|
|
|
<a class="btn pull-right" href="/login/">Log in</a>
|
|
|
|
<button class="btn btn-primary" type="submit">Reset password</button>
|
|
|
|
</div>
|
2012-02-12 21:42:25 -08:00
|
|
|
</fieldset>
|
|
|
|
{% csrf_token %}
|
|
|
|
</form>
|
2012-02-12 17:17:17 -08:00
|
|
|
{% endblock %}
|