From 473ee0760edb77b19a1729e97e5f1b5f1ac6300a Mon Sep 17 00:00:00 2001 From: kappataumu Date: Thu, 16 Jun 2016 11:28:23 +0000 Subject: [PATCH] Sync with upstream --- .../templates/account/account_inactive.html | 12 +++ .../templates/account/base.html | 5 +- .../templates/account/email.html | 94 +++++++++---------- .../templates/account/email_confirm.html | 33 +++---- .../templates/account/email_confirmed.html | 22 ----- .../templates/account/login.html | 62 ++++++------ .../templates/account/logout.html | 26 ++--- .../templates/account/password_change.html | 21 ++--- .../templates/account/password_reset.html | 37 +++----- .../account/password_reset_done.html | 24 ++--- .../account/password_reset_from_key.html | 15 +-- .../account/password_reset_from_key_done.html | 12 +-- .../templates/account/password_set.html | 26 ++--- .../templates/account/signup.html | 36 +++---- .../templates/account/signup_closed.html | 12 +-- .../templates/account/verification_sent.html | 16 +--- .../account/verified_email_required.html | 28 +++--- 17 files changed, 193 insertions(+), 288 deletions(-) create mode 100644 {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/account_inactive.html delete mode 100644 {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/email_confirmed.html diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/account_inactive.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/account_inactive.html new file mode 100644 index 000000000..fe9b68078 --- /dev/null +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/account_inactive.html @@ -0,0 +1,12 @@ +{% raw %}{% extends "account/base.html" %} + +{% load i18n %} + +{% block head_title %}{% trans "Account Inactive" %}{% endblock %} + +{% block inner %} +

{% trans "Account Inactive" %}

+ +

{% trans "This account is inactive." %}

+{% endblock %} +{% endraw %} diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/base.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/base.html index 6703bb8b0..7338c5e14 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/base.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/base.html @@ -1,3 +1,4 @@ {% raw %}{% extends "base.html" %} -{% block title %}{% block head_title %}{% endblock head_title %}{% endblock title %} -{% endraw %} \ No newline at end of file + + +{% endraw %} diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/email.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/email.html index e757f21f3..db4e6deb1 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/email.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/email.html @@ -1,64 +1,58 @@ {% raw %}{% extends "account/base.html" %} {% load i18n %} -{% load crispy_forms_tags %} {% block head_title %}{% trans "Account" %}{% endblock %} -{% block content %} -
-
-
-

{% trans "E-mail Addresses" %}

- {% if user.emailaddress_set.all %} -

{% trans 'The following e-mail addresses are associated with your account:' %}

+{% block inner %} +

{% trans "E-mail Addresses" %}

+{% if user.emailaddress_set.all %} +

{% trans 'The following e-mail addresses are associated with your account:' %}

-
-
+{{ emailaddress.email }} + {% if emailaddress.verified %} + {% trans "Verified" %} + {% else %} + {% trans "Unverified" %} + {% endif %} + {% if emailaddress.primary %}{% trans "Primary" %}{% endif %} +
+ {% endfor %} + +
+ + + +
+ + + + +{% else %} +

{% trans 'Warning:'%} {% trans "You currently do not have any e-mail address set up. You should really add an e-mail address so you can receive notifications, reset your password, etc." %}

+ +{% endif %} + + +

{% trans "Add E-mail Address" %}

+ +
+ {% csrf_token %} + {{ form.as_p}} + +
+ {% endblock %} diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/email_confirm.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/email_confirm.html index d7886239a..950a76933 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/email_confirm.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/email_confirm.html @@ -6,32 +6,27 @@ {% block head_title %}{% trans "Confirm E-mail Address" %}{% endblock %} -{% block content %} -
-
-
-

{% trans "Confirm E-mail Address" %}

+{% block inner %} +

{% trans "Confirm E-mail Address" %}

- {% if confirmation %} +{% if confirmation %} - {% user_display confirmation.email_address.user as user_display %} +{% user_display confirmation.email_address.user as user_display %} -

{% blocktrans with confirmation.email_address.email as email %}Please confirm that {{ email }} is an e-mail address for user {{ user_display }}.{% endblocktrans %}

+

{% blocktrans with confirmation.email_address.email as email %}Please confirm that {{ email }} is an e-mail address for user {{ user_display }}.{% endblocktrans %}

-
- {% csrf_token %} - -
+
+{% csrf_token %} + +
- {% else %} +{% else %} - {% url 'account_email' as email_url %} +{% url 'account_email' as email_url %} -

{% blocktrans %}This e-mail confirmation link expired or is invalid. Please issue a new e-mail confirmation request.{% endblocktrans %}

+

{% blocktrans %}This e-mail confirmation link expired or is invalid. Please issue a new e-mail confirmation request.{% endblocktrans %}

+ +{% endif %} - {% endif %} -
-
-
{% endblock %} {% endraw %} diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/email_confirmed.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/email_confirmed.html deleted file mode 100644 index 97f2a82c0..000000000 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/email_confirmed.html +++ /dev/null @@ -1,22 +0,0 @@ -{% raw %}{% extends "account/base.html" %} - -{% load i18n %} -{% load account %} - -{% block head_title %}{% trans "Confirm E-mail Address" %}{% endblock %} - - -{% block content %} -
-
-
-

{% trans "Confirm E-mail Address" %}

- - {% user_display email_address.user as user_display %} - -

{% blocktrans with email_address.email as email %}You have confirmed that {{ email }} is an e-mail address for user {{ user_display }}.{% endblocktrans %}

-
-
-
-{% endblock %} -{% endraw %} \ No newline at end of file diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/login.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/login.html index acbc50c21..21dea62fe 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/login.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/login.html @@ -1,48 +1,48 @@ {% raw %}{% extends "account/base.html" %} {% load i18n %} -{% load account %} -{% load socialaccount %} +{% load account socialaccount %} {% load crispy_forms_tags %} {% block head_title %}{% trans "Sign In" %}{% endblock %} -{% block content %} -
-
-
-

{% trans "Sign In" %}

- {% get_providers as socialaccount_providers %} - {% if socialaccount_providers %} -

{% blocktrans with site.name as site_name %}Please sign in with one - of your existing third party accounts. Or, sign up - for a {{ site_name }} account and sign in below:{% endblocktrans %}

+{% block inner %} -
+

{% trans "Sign In" %}

-
    - {% include "socialaccount/snippets/provider_list.html" with process="login" %} -
+{% get_providers as socialaccount_providers %} - +{% if socialaccount_providers %} +

{% blocktrans with site.name as site_name %}Please sign in with one +of your existing third party accounts. Or, sign up +for a {{ site_name }} account and sign in below:{% endblocktrans %}

-
+
- {% include "socialaccount/snippets/login_extra.html" %} +
    + {% include "socialaccount/snippets/provider_list.html" with process="login" %} +
- {% endif %} + - -
-
+ +{% include "socialaccount/snippets/login_extra.html" %} + +{% else %} +

{% blocktrans %}If you have not created an account yet, then please +sign up first.{% endblocktrans %}

+{% endif %} + + + {% endblock %} {% endraw %} diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/logout.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/logout.html index 039dc7be9..c08261440 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/logout.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/logout.html @@ -4,25 +4,19 @@ {% block head_title %}{% trans "Sign Out" %}{% endblock %} -{% block content %} -
-
-
+{% block inner %} +

{% trans "Sign Out" %}

-

{% trans "Sign Out" %}

+

{% trans 'Are you sure you want to sign out?' %}

-

{% trans 'Are you sure you want to sign out?' %}

+
+ {% csrf_token %} + {% if redirect_field_value %} + + {% endif %} + +
-
- {% csrf_token %} - {% if redirect_field_value %} - - {% endif %} - -
-
-
-
{% endblock %} {% endraw %} diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_change.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_change.html index 9855c0f5a..1a336daff 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_change.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_change.html @@ -2,21 +2,16 @@ {% load i18n %} {% load crispy_forms_tags %} + {% block head_title %}{% trans "Change Password" %}{% endblock %} -{% block content %} -
-
-
-

{% trans "Change Password" %}

+{% block inner %} +

{% trans "Change Password" %}

-
- {% csrf_token %} - {{ form|crispy }} - -
-
-
-
+
+ {% csrf_token %} + {{ form|crispy }} + +
{% endblock %} {% endraw %} diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_reset.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_reset.html index 2e6c5a6fc..7478c419b 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_reset.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_reset.html @@ -6,34 +6,21 @@ {% block head_title %}{% trans "Password Reset" %}{% endblock %} -{% block content %} -
-
-
+{% block inner %} -

{% trans "Password Reset" %}

- {% if user.is_authenticated %} - {% include "account/snippets/already_logged_in.html" %} - {% endif %} +

{% trans "Password Reset" %}

+ {% if user.is_authenticated %} + {% include "account/snippets/already_logged_in.html" %} + {% endif %} -

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

+

{% 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|crispy }} - -
+
+ {% csrf_token %} + {{ form|crispy }} + +
-

{% blocktrans %}Please contact us if you have any trouble resetting your password.{% endblocktrans %}

-
-
-
+

{% blocktrans %}Please contact us if you have any trouble resetting your password.{% endblocktrans %}

{% endblock %} - -{% block javascript %} - {{ block.super }} - -{% endblock javascript %} {% endraw %} diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_reset_done.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_reset_done.html index e954abc61..cf2129b1e 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_reset_done.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_reset_done.html @@ -5,19 +5,13 @@ {% block head_title %}{% trans "Password Reset" %}{% endblock %} -{% block content %} -
-
-
-

{% trans "Password Reset" %}

- - {% if user.is_authenticated %} - {% include "account/snippets/already_logged_in.html" %} - {% endif %} - -

{% blocktrans %}We have sent you an e-mail. Please contact us if you do not receive it within a few minutes.{% endblocktrans %}

-
-
-
+{% block inner %} +

{% trans "Password Reset" %}

+ + {% if user.is_authenticated %} + {% include "account/snippets/already_logged_in.html" %} + {% endif %} + +

{% blocktrans %}We have sent you an e-mail. Please contact us if you do not receive it within a few minutes.{% endblocktrans %}

{% endblock %} -{% endraw %} \ No newline at end of file +{% endraw %} diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_reset_from_key.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_reset_from_key.html index 8e1b39e26..2171144d8 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_reset_from_key.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_reset_from_key.html @@ -2,31 +2,24 @@ {% load i18n %} {% load crispy_forms_tags %} - {% block head_title %}{% trans "Change Password" %}{% endblock %} -{% block content %} -
-
-
-

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

+{% block inner %} +

{% 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. Please request a new password reset.{% endblocktrans %}

{% else %} {% if form %} -
+ {% csrf_token %} {{ form|crispy }} - +
{% else %}

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

{% endif %} {% endif %} -
-
-
{% endblock %} {% endraw %} diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_reset_from_key_done.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_reset_from_key_done.html index 015028e4a..925b7aa23 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_reset_from_key_done.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_reset_from_key_done.html @@ -3,14 +3,8 @@ {% load i18n %} {% block head_title %}{% trans "Change Password" %}{% endblock %} -{% block content %} -
-
-
-

{% trans "Change Password" %}

-

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

-
-
-
+{% block inner %} +

{% trans "Change Password" %}

+

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

{% endblock %} {% endraw %} diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_set.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_set.html index 7e2967e37..c98277157 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_set.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/password_set.html @@ -1,23 +1,17 @@ -{% raw %} -{% extends "account/base.html" %} +{% raw %}{% extends "account/base.html" %} -{% load i18n crispy_forms_tags %} +{% load i18n %} +{% load crispy_forms_tags %} {% block head_title %}{% trans "Set Password" %}{% endblock %} -{% block content %} -
-
-
-

{% trans "Set Password" %}

+{% block inner %} +

{% trans "Set Password" %}

-
- {% csrf_token %} - {{ form|crispy }} - -
-
-
-
+
+ {% csrf_token %} + {{ form|crispy }} + +
{% endblock %} {% endraw %} diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/signup.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/signup.html index 63e57a5fc..30091ad79 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/signup.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/signup.html @@ -3,31 +3,21 @@ {% load i18n %} {% load crispy_forms_tags %} -{% block title %}{% trans "Signup" %}{% endblock title %} +{% block head_title %}{% trans "Signup" %}{% endblock %} -{% block content %} +{% block inner %} +

{% trans "Sign Up" %}

-
-
-
-

{% trans "Sign Up" %}

- -

{% blocktrans %}Already have an account? Then please sign in.{% endblocktrans %}

- - -
-
-
- - -{% endblock content %} +

{% blocktrans %}Already have an account? Then please sign in.{% endblocktrans %}

+ +{% endblock %} {% endraw %} diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/signup_closed.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/signup_closed.html index f5976dad5..eca9b1568 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/signup_closed.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/signup_closed.html @@ -4,15 +4,9 @@ {% block head_title %}{% trans "Sign Up Closed" %}{% endblock %} -{% block content %} -
-
-
-

{% trans "Sign Up Closed" %}

+{% block inner %} +

{% trans "Sign Up Closed" %}

-

{% trans "We are sorry, but the sign up is currently closed." %}

-
-
-
+

{% trans "We are sorry, but the sign up is currently closed." %}

{% endblock %} {% endraw %} diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/verification_sent.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/verification_sent.html index 0c082288c..ccc8d9a1f 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/verification_sent.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/verification_sent.html @@ -4,16 +4,10 @@ {% block head_title %}{% trans "Verify Your E-mail Address" %}{% endblock %} -{% block content %} -
-
-
-

{% trans "Verify Your E-mail Address" %}

- -

{% blocktrans %}We have sent an e-mail to {{ email }} for verification. Follow the link provided to finalize the signup process. Please contact us if you do not receive it within a few minutes.{% endblocktrans %}

-
-
-
+{% block inner %} +

{% trans "Verify Your E-mail Address" %}

+ +

{% blocktrans %}We have sent an e-mail to you for verification. Follow the link provided to finalize the signup process. Please contact us if you do not receive it within a few minutes.{% endblocktrans %}

{% endblock %} -{% endraw %} \ No newline at end of file +{% endraw %} diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/verified_email_required.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/verified_email_required.html index 7d071c6a6..f3078b68e 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/verified_email_required.html +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/account/verified_email_required.html @@ -4,25 +4,21 @@ {% block head_title %}{% trans "Verify Your E-mail Address" %}{% endblock %} -{% block content %} -
-
-
-

{% trans "Verify Your E-mail Address" %}

+{% block inner %} +

{% trans "Verify Your E-mail Address" %}

- {% url 'account_email' as email_url %} +{% url 'account_email' as email_url %} -

{% blocktrans %}This part of the site requires us to verify that - you are who you claim to be. For this purpose, we require that you - verify ownership of your e-mail address. {% endblocktrans %}

+

{% blocktrans %}This part of the site requires us to verify that +you are who you claim to be. For this purpose, we require that you +verify ownership of your e-mail address. {% endblocktrans %}

+ +

{% blocktrans %}We have sent an e-mail to you for +verification. Please click on the link inside this e-mail. Please +contact us if you do not receive it within a few minutes.{% endblocktrans %}

+ +

{% blocktrans %}Note: you can still change your e-mail address.{% endblocktrans %}

-

{% blocktrans %}We have sent an e-mail to you for - verification. Please click on the link inside this e-mail. Please - contact us if you do not receive it within a few minutes.{% endblocktrans %}

-

{% blocktrans %}Note: you can still change your e-mail address.{% endblocktrans %}

-
-
-
{% endblock %} {% endraw %}