From 2acfcb29e92502a0c70ba5809e3bde40a3515a9e Mon Sep 17 00:00:00 2001 From: Benjamin Date: Wed, 21 Dec 2022 20:57:45 +0100 Subject: [PATCH] Introduce base_main.html for
--- templates/base_main.html | 24 ++++++++++++++++++++++++ templates/registration/login.html | 4 ++-- templates/registration/new-user.html | 4 ++-- 3 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 templates/base_main.html diff --git a/templates/base_main.html b/templates/base_main.html new file mode 100644 index 0000000..b3c99b4 --- /dev/null +++ b/templates/base_main.html @@ -0,0 +1,24 @@ +{% extends "base.html" %} + +{% block head %} +{% load static %} + +{% endblock %} + +{% block body %} + +
+{% block main %} +{% endblock %} +
+ +{% endblock %} diff --git a/templates/registration/login.html b/templates/registration/login.html index 3cd4056..367ef50 100644 --- a/templates/registration/login.html +++ b/templates/registration/login.html @@ -1,6 +1,6 @@ -{% extends "base.html" %} +{% extends "base_main.html" %} -{% block body %} +{% block main %} {% if form.errors %}
diff --git a/templates/registration/new-user.html b/templates/registration/new-user.html index 0f8d670..e17b7b8 100644 --- a/templates/registration/new-user.html +++ b/templates/registration/new-user.html @@ -1,6 +1,6 @@ -{% extends "base.html" %} +{% extends "base_main.html" %} -{% block body %} +{% block main %} {% if form.errors %}

Error: