password_reset_form.html 1.2 KB
Newer Older
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
{% extends "base.html" %}
{% load i18n %}

{% comment %}This page is automatically used by django.contrib.auth.views{% endcomment %}

{% block title %}{% trans "Forgot password" %}{% endblock %}

{% block body %}
<h1>{% trans "Forgot password" %}</h1>

{% for error in form.errors.items %}
        {% for message in error.1 %}
            <div class="alert alert-error">
                {{ message }}
                <button type="button" class="close"><span class="alert-icon-close"></span></button>
            </div>
    {% endfor %}
{% endfor %}

<p class="text-center">{% trans "Forgotten your password? Enter your email address below, and we'll email instructions for setting a new one." %}</p>

<div class="row">
    <form method="post" action="{% url 'password_reset' %}" class="span6 offset3 form-horizontal">
        {% csrf_token %}

        <div class="control-group">
            <input name="{{ form.email.name }}" autofocus class="form-control" placeholder="{% trans "Email address" %}">
        </div>

        <div class="control-group">
            <input type="submit" value="{% trans 'Reset my password' %}" class="btn btn-primary btn-style1 pull-right login" />
        </div>
    </form>
</div>
{% endblock %}