1
|
{% extends "calebasse/base.html" %}
|
2
|
{% load i18n static %}
|
3
|
{% block extrastyles %}
|
4
|
<link rel="stylesheet" type="text/css" href="{% static "css/accounts.css" %}" />
|
5
|
{% endblock extrastyles %}
|
6
|
|
7
|
{% block title %}{% trans 'Password change' %}{% endblock %}
|
8
|
{% block appbar %}
|
9
|
<h2>{% trans 'Password change' %}</h2>
|
10
|
<a href="../..">Retourner à l'accueil</a>
|
11
|
{% endblock %}
|
12
|
|
13
|
{% block content %}
|
14
|
<div id="password_change">
|
15
|
|
16
|
<form method="post" autocomplete='off'>{% csrf_token %}
|
17
|
<div>
|
18
|
<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>
|
19
|
{% if form.errors %}
|
20
|
<p class="icon-warning errornote">
|
21
|
{% blocktrans count counter=form.errors.items|length %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
|
22
|
</p>
|
23
|
{% endif %}
|
24
|
<div class="form-row">
|
25
|
<label for="id_old_password" class="required">{% trans 'Old password' %}:</label>{{ form.old_password }} {{ form.old_password.errors }}
|
26
|
</div>
|
27
|
<div class="form-row">
|
28
|
<label for="id_new_password1" class="required">{% trans 'New password' %}:</label>{{ form.new_password1 }} {{ form.new_password1.errors }}
|
29
|
</div>
|
30
|
<div class="form-row">
|
31
|
<label for="id_new_password2" class="required">{% trans 'Password (again)' %}:</label>{{ form.new_password2 }} {{ form.new_password2.errors }}
|
32
|
</div>
|
33
|
<div class="submit-row">
|
34
|
<button>{% trans 'Change my password' %}</button>
|
35
|
</div>
|
36
|
</div>
|
37
|
</form>
|
38
|
</div>
|
39
|
{% endblock %}
|