From 85e03d630f2489ca0329b0b1a32ef09a19b51808 Mon Sep 17 00:00:00 2001 From: Serghei MIHAI Date: Thu, 18 Sep 2014 00:38:58 +0200 Subject: [PATCH] password change related pages adapted to site design Closes #5449 --- calebasse/static/css/accounts.css | 17 ++++++++++ .../registration/password_change_done.html | 20 +++++++++++ .../registration/password_change_form.html | 39 ++++++++++++++++++++++ 3 files changed, 76 insertions(+) create mode 100644 calebasse/static/css/accounts.css create mode 100644 calebasse/templates/registration/password_change_done.html create mode 100644 calebasse/templates/registration/password_change_form.html diff --git a/calebasse/static/css/accounts.css b/calebasse/static/css/accounts.css new file mode 100644 index 0000000..f8e4a58 --- /dev/null +++ b/calebasse/static/css/accounts.css @@ -0,0 +1,17 @@ +#password_change label { + float: left; + width: 15em; +} + +#password_change div.form-row { + margin: 1em 0; +} + +.icon-warning:before { + content: "\f071"; + color: orange; +} + +ul.errorlist, ul.errorlist li { + display: inline; +} \ No newline at end of file diff --git a/calebasse/templates/registration/password_change_done.html b/calebasse/templates/registration/password_change_done.html new file mode 100644 index 0000000..552de15 --- /dev/null +++ b/calebasse/templates/registration/password_change_done.html @@ -0,0 +1,20 @@ +{% extends "calebasse/base.html" %} +{% load i18n %} + +{% load i18n static %} +{% block extrastyles %} + +{% endblock extrastyles %} + +{% block appbar %} +

{% trans 'Password change' %}

+ Retourner à l'accueil +{% endblock %} + +{% block title %}{% trans 'Password change successful' %}{% endblock %} + +{% block content %} + +

{% trans 'Your password was changed.' %}

+ +{% endblock %} diff --git a/calebasse/templates/registration/password_change_form.html b/calebasse/templates/registration/password_change_form.html new file mode 100644 index 0000000..5483467 --- /dev/null +++ b/calebasse/templates/registration/password_change_form.html @@ -0,0 +1,39 @@ +{% extends "calebasse/base.html" %} +{% load i18n static %} +{% block extrastyles %} + +{% endblock extrastyles %} + +{% block title %}{% trans 'Password change' %}{% endblock %} +{% block appbar %} +

{% trans 'Password change' %}

+ Retourner à l'accueil +{% endblock %} + +{% block content %} +
+ +
{% csrf_token %} +
+

{% 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." %}

+ {% if form.errors %} +

+ {% blocktrans count counter=form.errors.items|length %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %} +

+ {% endif %} +
+ {{ form.old_password }} {{ form.old_password.errors }} +
+
+ {{ form.new_password1 }} {{ form.new_password1.errors }} +
+
+ {{ form.new_password2 }} {{ form.new_password2.errors }} +
+
+ +
+
+
+
+{% endblock %} -- 2.1.0