From 85ba77928673358eb8115a6f42974a9ee323bf1f Mon Sep 17 00:00:00 2001 From: Seth Ladygo Date: Mon, 20 May 2019 05:42:07 -0700 Subject: [PATCH] style more account settings/password reset pages --- templates/account/password_reset.html | 64 +++++++++++++------ templates/account/password_reset_sent.html | 33 ++++++---- templates/account/password_reset_token.html | 55 ++++++++++++---- .../account/password_reset_token_fail.html | 6 +- templates/account/settings.html | 54 ++++++++++++---- templates/base.html | 13 ++-- 6 files changed, 163 insertions(+), 62 deletions(-) diff --git a/templates/account/password_reset.html b/templates/account/password_reset.html index 3b983b0..f1fbbd6 100644 --- a/templates/account/password_reset.html +++ b/templates/account/password_reset.html @@ -7,25 +7,53 @@ {% user_display request.user as user_display %} + +{% block pagecss %} + +{% endblock %} + {% block content %} -
-
-
- {% trans "Password reset" %} -

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

-
-
- {% csrf_token %} - {{ form }} - -
-
-
-
-
-

{% blocktrans %}If you have any trouble resetting your password, contact us at {{ THEME_CONTACT_EMAIL }}.{% endblocktrans %}

+
+ +
+
+ {% trans "Password reset" %} +

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

+ {% csrf_token %} + {{ form }} +
+ +
+
+ +

{% blocktrans %}If you have any trouble resetting your password, contact us at support@procatalog.io{% endblocktrans %}

+
+
{% endblock %} {% block extra_body %} diff --git a/templates/account/password_reset_sent.html b/templates/account/password_reset_sent.html index f6c75d4..32ae541 100644 --- a/templates/account/password_reset_sent.html +++ b/templates/account/password_reset_sent.html @@ -6,22 +6,27 @@ {% block title %}{% trans "Password reset sent" %}{% endblock %} {% block content %} -

{% trans "Password reset sent" %}

+
+ +
+

{% trans "Password reset sent" %}

{% if not resend %} -

{% blocktrans %}We have sent you an email. If you do not receive it within a few minutes, try resending or contact us at {{ THEME_CONTACT_EMAIL }}.{% endblocktrans %}

+

{% blocktrans %}We have sent you an email. If you do not receive it within a few minutes, try resending or contact us at {{ THEME_CONTACT_EMAIL }}.{% endblocktrans %}

-
-
-
- {% csrf_token %} - {% for field in form %} - {{ field.as_hidden }} - {% endfor %} - -
-
+
+
+
+ {% csrf_token %} + {% for field in form %} + {{ field.as_hidden }} + {% endfor %} + +
+
{% else %} -

{% blocktrans %}We have resent the password email. If you do not receive it within a few minutes, contact us at {{ THEME_CONTACT_EMAIL }}.{% endblocktrans %}

+

{% blocktrans %}We have resent the password email. If you do not receive it within a few minutes, contact us at support@procatalog.io{% endblocktrans %}

{% endif %} -{% endblock %} \ No newline at end of file +
+
+{% endblock %} diff --git a/templates/account/password_reset_token.html b/templates/account/password_reset_token.html index 3993ad6..3abecdf 100644 --- a/templates/account/password_reset_token.html +++ b/templates/account/password_reset_token.html @@ -4,17 +4,46 @@ {% block title %}{% trans "Set your new password" %}{% endblock %} -{% block content %} -
-
-
- {% trans "Set your new password" %} -
- {% csrf_token %} - {{ form }} - -
-
-
-
+{% block pagecss %} + +{% endblock %} + +{% block content %} +
+ +
+
+ {% trans "Set your new password" %} + + {% csrf_token %} + {{ form }} +
+ +
+
+
+
{% endblock %} diff --git a/templates/account/password_reset_token_fail.html b/templates/account/password_reset_token_fail.html index 942a08d..9d49c89 100644 --- a/templates/account/password_reset_token_fail.html +++ b/templates/account/password_reset_token_fail.html @@ -5,7 +5,11 @@ {% block title %}{% trans "Bad token" %}{% endblock %} {% block content %} +
+

{% trans "Bad token" %}

{% url "account_password_reset" as url %}

{% blocktrans %}The password reset link was invalid, possibly because it has already been used. Please request a new password reset.{% endblocktrans %}

-{% endblock %} \ No newline at end of file +
+
+{% endblock %} diff --git a/templates/account/settings.html b/templates/account/settings.html index 9a302e8..f16eb92 100644 --- a/templates/account/settings.html +++ b/templates/account/settings.html @@ -1,20 +1,52 @@ {% extends "base.html" %} +{% load account_tags %} {% load i18n %} {% block content_class %}account account-settings{% endblock %} {% block title %}{% trans "Account" %}{% endblock %} -{% block content %} -
-
-
- {% trans "Account" %} - {% csrf_token %} - {{ form }} - -
-
-
+{% block pagecss %} + +{% endblock %} + +{% block content %} +
+ +
+ {% trans "Account settings" %} +
+ {% csrf_token %} + {{ form }} +
+ +
+
+
+ +
{% endblock %} diff --git a/templates/base.html b/templates/base.html index 4a79297..7049172 100644 --- a/templates/base.html +++ b/templates/base.html @@ -18,11 +18,14 @@ {% include "nav.html" %} {% if messages %} - +
+ {% for message in messages %} +
+ +

{{ message }}

+
+ {% endfor %} +
{% endif %} {% block content %}