From f902b79d79cb43838ac31594dece0618a3ab88aa Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Mon, 12 Apr 2021 20:07:38 +1000 Subject: [PATCH] And more templates --- InvenTree/InvenTree/urls.py | 2 +- .../templates/registration/logged_out.html | 59 +++++++++++++++++++ InvenTree/templates/registration/logout.html | 8 --- 3 files changed, 60 insertions(+), 9 deletions(-) create mode 100644 InvenTree/templates/registration/logged_out.html delete mode 100644 InvenTree/templates/registration/logout.html diff --git a/InvenTree/InvenTree/urls.py b/InvenTree/InvenTree/urls.py index 28854e311d..88160e76c1 100644 --- a/InvenTree/InvenTree/urls.py +++ b/InvenTree/InvenTree/urls.py @@ -133,7 +133,7 @@ urlpatterns = [ url(r'^auth/', include('rest_framework.urls', namespace='rest_framework')), url(r'^login/?', auth_views.LoginView.as_view(), name='login'), - url(r'^logout/', auth_views.LogoutView.as_view(template_name='registration/logout.html'), name='logout'), + url(r'^logout/', auth_views.LogoutView.as_view(template_name='registration/logged_out.html'), name='logout'), url(r'^settings/', include(settings_urls)), diff --git a/InvenTree/templates/registration/logged_out.html b/InvenTree/templates/registration/logged_out.html new file mode 100644 index 0000000000..b23ba001e2 --- /dev/null +++ b/InvenTree/templates/registration/logged_out.html @@ -0,0 +1,59 @@ +{% load static %} +{% load i18n %} +{% load crispy_forms_tags %} + + + + + + + + + + + + + + + + + + + + + + + + + InvenTree + + + + + +
+ + + +
+ + \ No newline at end of file diff --git a/InvenTree/templates/registration/logout.html b/InvenTree/templates/registration/logout.html deleted file mode 100644 index 1ce04b6472..0000000000 --- a/InvenTree/templates/registration/logout.html +++ /dev/null @@ -1,8 +0,0 @@ -{% extends "base.html" %} -{% load i18n %} - -{% block content %} -

{% trans "Logout" %}

-

{% trans "You have been logged out" %}

-

{% trans 'Click' %} {% trans 'here to log in

' %} -{% endblock %} \ No newline at end of file