Première version en Python-Django.
[auf_paf.git] / paf0 / templates / registration / password_change_form_student.html
1 {% extends "base.html" %}
2 {% load i18n static %}
3 {% load url from future %}
4 {% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/forms.css" %}" />{% endblock %}
5 {% block userlinks %}{% url 'django-admindocs-docroot' as docsroot %}{% if docsroot %}<a href="{{ docsroot }}">{% trans 'Documentation' %}</a> / {% endif %} {% trans 'Change password' %} / <a href="{% url 'admin:logout' %}">{% trans 'Log out' %}</a>{% endblock %}
6 {% block breadcrumbs %}
7 <div class="breadcrumbs">
8 <a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
9 &rsaquo; {% trans 'Password change' %}
10 </div>
11 {% endblock %}
12
13 {% block edit_passwd %}{% endblock %}
14
15 {% block title %}{% trans 'Password change' %}{% endblock %}
16
17 {% block content %}<div id="content-main">
18
19 <form action="" method="post">{% csrf_token %}
20 <div>
21 {% if form.errors %}
22 <p class="errornote">
23 {% blocktrans count counter=form.errors.items|length %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
24 </p>
25 {% endif %}
26
27 <h1>{% trans 'Password change' %}</h1>
28
29 <p>{% trans "Please enter your old password, for security's sake, and then enter your new password twice so we can verify you typed it in correctly." %}</p>
30
31 <fieldset class="module aligned wide">
32
33 <div class="form-row">
34 {{ form.old_password.errors }}
35 <label for="id_old_password" class="required">{% trans 'Old password' %}:</label>{{ form.old_password }}
36 </div>
37
38 <div class="form-row">
39 {{ form.new_password1.errors }}
40 <label for="id_new_password1" class="required">{% trans 'New password' %}:</label>{{ form.new_password1 }}
41 </div>
42
43 <div class="form-row">
44 {{ form.new_password2.errors }}
45 <label for="id_new_password2" class="required">{% trans 'Password (again)' %}:</label>{{ form.new_password2 }}
46 </div>
47
48 </fieldset>
49
50 <div class="submit-row">
51 <input type="submit" value="{% trans 'Change my password' %}" class="default" />
52 </div>
53
54 <script type="text/javascript">document.getElementById("id_old_password").focus();</script>
55 </div>
56 </form></div>
57
58 {% endblock %}
59
60