From ef8cfa794f6e74e27f35e22befd30cad1e55b15b Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sun, 26 Mar 2017 10:14:38 +1100 Subject: [PATCH] Added category link for part view --- InvenTree/part/templates/part/category.html | 19 +++++++++---------- InvenTree/part/templates/part/detail.html | 5 ++++- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/InvenTree/part/templates/part/category.html b/InvenTree/part/templates/part/category.html index db96243793..1497d3dc35 100644 --- a/InvenTree/part/templates/part/category.html +++ b/InvenTree/part/templates/part/category.html @@ -1,17 +1,16 @@ -

Category: {{ category.name }}

- -

Path: {{ category }}

- -
-Path
- {# Construct the category path #} {% for path_item in category.path %} -{{path_item.name}}/ +{{ path_item.name }}/ {% endfor %} -
Parts:
+{{ category.name }} +{% endfor %} + +
+
+Parts: +
{% for part in category.part_set.all %} -{{part.name}}
+{{ part.name }}
{% endfor %} diff --git a/InvenTree/part/templates/part/detail.html b/InvenTree/part/templates/part/detail.html index 8793e7ce13..8055f46023 100644 --- a/InvenTree/part/templates/part/detail.html +++ b/InvenTree/part/templates/part/detail.html @@ -1 +1,4 @@ -{{part}} \ No newline at end of file +{{part}} + +
+Category: {{ part.category }} \ No newline at end of file