From 4f63d1283765caa36884df0ada16b753b3ab73ca Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 4 May 2018 18:53:39 +1000 Subject: [PATCH] Consolidated 'Part' app views - Improved templating - Part tree open/close status stored to session --- InvenTree/part/templates/part/cat_link.html | 1 + InvenTree/part/templates/part/category.html | 157 ++++++++++++++++++ .../part/templates/part/category_detail.html | 93 ----------- .../part/templates/part/category_parts.html | 63 ------- .../part/category_subcategories.html | 11 -- InvenTree/part/templates/part/index.html | 77 --------- .../part/templates/part/part_app_base.html | 24 ++- InvenTree/part/templates/part/part_base.html | 4 +- .../part/templates/part/subcategories.html | 27 +++ InvenTree/part/views.py | 4 +- InvenTree/static/css/inventree.css | 4 +- InvenTree/static/script/sidenav.js | 43 +++++ InvenTree/static/script/trees.js | 20 --- InvenTree/templates/base.html | 27 +-- 14 files changed, 262 insertions(+), 293 deletions(-) create mode 100644 InvenTree/part/templates/part/category.html delete mode 100644 InvenTree/part/templates/part/category_detail.html delete mode 100644 InvenTree/part/templates/part/category_parts.html delete mode 100644 InvenTree/part/templates/part/category_subcategories.html delete mode 100644 InvenTree/part/templates/part/index.html create mode 100644 InvenTree/part/templates/part/subcategories.html delete mode 100644 InvenTree/static/script/trees.js diff --git a/InvenTree/part/templates/part/cat_link.html b/InvenTree/part/templates/part/cat_link.html index 02ec88c45c..181f10ebb6 100644 --- a/InvenTree/part/templates/part/cat_link.html +++ b/InvenTree/part/templates/part/cat_link.html @@ -1,6 +1,7 @@