From 403002812e42042af12853e764b476303ec3fb97 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Mon, 11 Oct 2021 12:56:30 +0200 Subject: [PATCH] Update AllAuth templates --- accounts/templates/accounts/registration.html | 20 --------- photo21/templates/account/base.html | 13 ++++++ photo21/templates/account/login.html | 45 +++++++++++++++++++ photo21/templates/account/signup.html | 26 +++++++++++ photo21/templates/base.html | 16 +++++-- .../templates/registration/logged_out.html | 17 ------- photo21/templates/registration/login.html | 40 ----------------- .../registration/password_change_done.html | 16 ------- .../registration/password_change_form.html | 20 --------- .../registration/password_reset_complete.html | 19 -------- .../registration/password_reset_confirm.html | 26 ----------- .../registration/password_reset_done.html | 17 ------- .../registration/password_reset_form.html | 22 --------- 13 files changed, 97 insertions(+), 200 deletions(-) delete mode 100644 accounts/templates/accounts/registration.html create mode 100644 photo21/templates/account/base.html create mode 100644 photo21/templates/account/login.html create mode 100644 photo21/templates/account/signup.html delete mode 100644 photo21/templates/registration/logged_out.html delete mode 100644 photo21/templates/registration/login.html delete mode 100644 photo21/templates/registration/password_change_done.html delete mode 100644 photo21/templates/registration/password_change_form.html delete mode 100644 photo21/templates/registration/password_reset_complete.html delete mode 100644 photo21/templates/registration/password_reset_confirm.html delete mode 100644 photo21/templates/registration/password_reset_done.html delete mode 100644 photo21/templates/registration/password_reset_form.html diff --git a/accounts/templates/accounts/registration.html b/accounts/templates/accounts/registration.html deleted file mode 100644 index ba48e03..0000000 --- a/accounts/templates/accounts/registration.html +++ /dev/null @@ -1,20 +0,0 @@ -{% extends "base.html" %} -{% comment %} -SPDX-License-Identifier: GPL-2.0-or-later -{% endcomment %} -{% load i18n crispy_forms_tags %} -{% block title %}{% trans "Sign up" %}{% endblock %} - -{% block content %} -
-

- {% trans "Sign up" %} -

-
-
{% csrf_token %} - {{ form|crispy }} - -
-
-
-{% endblock %} \ No newline at end of file diff --git a/photo21/templates/account/base.html b/photo21/templates/account/base.html new file mode 100644 index 0000000..b166325 --- /dev/null +++ b/photo21/templates/account/base.html @@ -0,0 +1,13 @@ +{% extends "base.html" %} +{% comment %} +SPDX-License-Identifier: GPL-2.0-or-later +{% endcomment %} + +{% block title %}{% block head_title %}{% endblock %}{% endblock title %} + +{% block extracss %} + +{% endblock %} \ No newline at end of file diff --git a/photo21/templates/account/login.html b/photo21/templates/account/login.html new file mode 100644 index 0000000..c170ee5 --- /dev/null +++ b/photo21/templates/account/login.html @@ -0,0 +1,45 @@ +{% extends "account/base.html" %} +{% comment %} +SPDX-License-Identifier: GPL-2.0-or-later +{% endcomment %} +{% load i18n crispy_forms_tags account socialaccount %} +{% 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 %}

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

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

+ {% endif %} + +
{% csrf_token %} + {{ form|crispy }} + {% if redirect_field_value %} + + {% endif %} + + {% trans "Forgot Password?" %} +
+
+
+

{% trans "If any problem, please contact the server owners at" %} photos[at]crans.org.

+{% endblock %} diff --git a/photo21/templates/account/signup.html b/photo21/templates/account/signup.html new file mode 100644 index 0000000..16df347 --- /dev/null +++ b/photo21/templates/account/signup.html @@ -0,0 +1,26 @@ +{% extends "account/base.html" %} +{% comment %} +SPDX-License-Identifier: GPL-2.0-or-later +{% endcomment %} +{% load i18n crispy_forms_tags %} +{% block head_title %}{% trans "Signup" %}{% endblock %} + +{% block content %} +
+

+ {% trans "Sign Up" %} +

+
+

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

+ + +
+
+{% endblock %} diff --git a/photo21/templates/base.html b/photo21/templates/base.html index d863a89..c01eac0 100644 --- a/photo21/templates/base.html +++ b/photo21/templates/base.html @@ -43,7 +43,17 @@ SPDX-License-Identifier: GPL-3.0-or-later