From e676a8caadda6c9a9f6a615b11d29b8d01fe4eb1 Mon Sep 17 00:00:00 2001 From: jh-RLI Date: Wed, 20 Nov 2024 20:13:44 +0100 Subject: [PATCH] add login and logout templates to override allauth default templates #1895 --- login/templates/account/login.html | 4 ++-- login/templates/account/logout.html | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 login/templates/account/logout.html diff --git a/login/templates/account/login.html b/login/templates/account/login.html index 27dfae997..d6a1b2feb 100644 --- a/login/templates/account/login.html +++ b/login/templates/account/login.html @@ -1,4 +1,4 @@ -{% extends "base/base-full.html" %} +{% extends "account/base.html" %} {% load base_tags %} {% load socialaccount %} @@ -11,7 +11,7 @@ {% translate "Sign In" %} {% endblock head_title %} -{% block main-content-body %} +{% block content %} {% block inner %}

{% translate "Sign In" %}

diff --git a/login/templates/account/logout.html b/login/templates/account/logout.html new file mode 100644 index 000000000..e31402067 --- /dev/null +++ b/login/templates/account/logout.html @@ -0,0 +1,20 @@ +{% extends "account/base.html" %} + +{% load i18n %} + +{% block head_title %} + {% translate "Sign Out" %} +{% endblock head_title %} +{% block inner %} +

{% translate "Sign Out" %}

+

{% translate "Are you sure you want to sign out?" %}

+
+ {% csrf_token %} + {% if redirect_field_value %} + + {% endif %} + +
+{% endblock inner %}