diff --git a/website/templates/account/login.html b/website/templates/account/login.html index 5c65587a4..991ced2f7 100644 --- a/website/templates/account/login.html +++ b/website/templates/account/login.html @@ -62,7 +62,7 @@

Login

{{ form.login.errors }} -
+
{{ form.password.errors }} diff --git a/website/templates/account/password_change.html b/website/templates/account/password_change.html new file mode 100644 index 000000000..a1950d27a --- /dev/null +++ b/website/templates/account/password_change.html @@ -0,0 +1,45 @@ +{% extends "account/base.html" %} + +{% load i18n %} + +{% block style %} +.inner-addon { + position: relative; +} +.inner-addon .glyphicon { + position: absolute; + padding: 10px; + pointer-events: none; +} +.left-addon .glyphicon { left: 0px;} +.right-addon .glyphicon { right: 0px;} +.left-addon input { padding-left: 30px; } +.right-addon input { padding-right: 30px; } +{% endblock %} + +{% block content %} +
+

{% trans "Change Password" %}

+
+
+ {% csrf_token %} +
+ + + {{ form.oldpassword.errors }} +
+
+ + + {{ form.password1.errors }} +
+
+ + + {{ form.password2.errors }} +
+ +
+
+
+{% endblock %} \ No newline at end of file diff --git a/website/templates/account/password_reset.html b/website/templates/account/password_reset.html new file mode 100644 index 000000000..7a5a5ea1a --- /dev/null +++ b/website/templates/account/password_reset.html @@ -0,0 +1,42 @@ +{% extends "account/base.html" %} + +{% load i18n %} +{% load account %} + +{% block style %} +.inner-addon { + position: relative; +} +.inner-addon .glyphicon { + position: absolute; + padding: 10px; + pointer-events: none; +} +.left-addon .glyphicon { left: 0px;} +.right-addon .glyphicon { right: 0px;} +.left-addon input { padding-left: 30px; } +.right-addon input { padding-right: 30px; } +{% endblock %} + +{% block content %} + {% if user.is_authenticated %} + {% include "account/snippets/already_logged_in.html" %} + {% endif %} + +
+

{% trans "Password Reset" %}

+
+

{% trans "Forgotten your password? Enter your e-mail address below, and we'll send you an e-mail allowing you to reset it." %}

+ +
+ {% csrf_token %} +
+ + + {{ form.email.errors }} +
+ +
+
+
+{% endblock %} \ No newline at end of file diff --git a/website/templates/account/password_reset_from_key.html b/website/templates/account/password_reset_from_key.html new file mode 100644 index 000000000..e412839fd --- /dev/null +++ b/website/templates/account/password_reset_from_key.html @@ -0,0 +1,60 @@ +{% extends "account/base.html" %} + +{% load i18n %} + +{% block style %} +.inner-addon { + position: relative; +} +.inner-addon .glyphicon { + position: absolute; + padding: 10px; + pointer-events: none; +} +.left-addon .glyphicon { left: 0px;} +.right-addon .glyphicon { right: 0px;} +.left-addon input { padding-left: 30px; } +.right-addon input { padding-right: 30px; } +{% endblock %} + +{% block content %} +
+

+ {% if token_fail %} + {% trans "Bad Token" %} + {% else %} + {% trans "Change Password" %} + {% endif %} +

+
+ {% if token_fail %} + {% url 'account_reset_password' as passwd_reset_url %} +

+ {% blocktrans %} + The password reset link was invalid, possibly because it has already been used. + Try again. + {% endblocktrans %} +

+ {% else %} + {% if form %} +
+ {% csrf_token %} +
+ + + {{ form.password1.errors }} +
+
+ + + {{ form.password2.errors }} +
+ +
+ {% else %} +

{% trans 'Your password is now changed!' %}

+ {% endif %} + {% endif %} +
+
+{% endblock %} \ No newline at end of file diff --git a/website/templates/base.html b/website/templates/base.html index 9b02774a8..ab8630b75 100644 --- a/website/templates/base.html +++ b/website/templates/base.html @@ -207,63 +207,48 @@
-
- - -
-
- + {% block after_js %} {% endblock %} {% if messages %} {% for message in messages %} - + {% endfor %} {% endif %} @@ -275,12 +260,11 @@