From 389908c67a9304831788342449786bf8aa111e18 Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 4 May 2018 17:51:55 +1000 Subject: [PATCH] Moved sidenav into block --- InvenTree/part/templates/part/part_app_base.html | 6 ++++++ InvenTree/part/templates/part/part_base.html | 2 +- InvenTree/templates/base.html | 5 ++++- InvenTree/templates/sidebar.html | 9 --------- 4 files changed, 11 insertions(+), 11 deletions(-) create mode 100644 InvenTree/part/templates/part/part_app_base.html delete mode 100644 InvenTree/templates/sidebar.html diff --git a/InvenTree/part/templates/part/part_app_base.html b/InvenTree/part/templates/part/part_app_base.html new file mode 100644 index 0000000000..00f42b84a6 --- /dev/null +++ b/InvenTree/part/templates/part/part_app_base.html @@ -0,0 +1,6 @@ +{% extends "base.html" %} + +{% block sidenav %} +

Parts

+
+{% endblock %} \ No newline at end of file diff --git a/InvenTree/part/templates/part/part_base.html b/InvenTree/part/templates/part/part_base.html index 4b3f9ae6f4..b6736ed45b 100644 --- a/InvenTree/part/templates/part/part_base.html +++ b/InvenTree/part/templates/part/part_base.html @@ -1,4 +1,4 @@ -{% extends "base.html" %} +{% extends "part/part_app_base.html" %} {% load static %} diff --git a/InvenTree/templates/base.html b/InvenTree/templates/base.html index 0aa57dd85d..b06b0ad37d 100644 --- a/InvenTree/templates/base.html +++ b/InvenTree/templates/base.html @@ -32,7 +32,10 @@ InvenTree
-{% include "sidebar.html" %} +
+{% block sidenav %} +{% endblock %} +
{% block content %} diff --git a/InvenTree/templates/sidebar.html b/InvenTree/templates/sidebar.html deleted file mode 100644 index 6428e3d238..0000000000 --- a/InvenTree/templates/sidebar.html +++ /dev/null @@ -1,9 +0,0 @@ -
- -
- -
- -
- -
\ No newline at end of file