2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-14 07:31:10 +00:00

Added a categorylist page

Displays list of all top-level part categories
This commit is contained in:
Oliver Walters
2017-03-26 10:29:51 +11:00
parent 3f81046a26
commit b919418fb5
5 changed files with 23 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
{# Construct the category path #}
<a href="../">Category</a>/
{% for path_item in category.path %}
<a href="../{{ path_item.pk }}">{{ path_item.name }}</a>/
{% endfor %}

View File

@@ -0,0 +1,8 @@
Top Level Part Categories:
{% for category in categories %}
<br>
<a href="./{{ category.pk }}">{{ category.name }}<a/>
{% endfor %}