mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Added category link for part view
This commit is contained in:
parent
ddd927c436
commit
ef8cfa794f
@ -1,16 +1,15 @@
|
||||
<h1>Category: {{ category.name }}</h1>
|
||||
|
||||
<h2>Path: {{ category }}</h2>
|
||||
|
||||
<br>
|
||||
Path<br>
|
||||
|
||||
{# Construct the category path #}
|
||||
{% for path_item in category.path %}
|
||||
<a href="../{{ path_item.pk }}">{{ path_item.name }}</a>/
|
||||
{% endfor %}
|
||||
|
||||
<br>Parts:<br>
|
||||
{{ category.name }}
|
||||
{% endfor %}
|
||||
|
||||
<br>
|
||||
<br>
|
||||
Parts:
|
||||
<br>
|
||||
|
||||
{% for part in category.part_set.all %}
|
||||
<a href="/part/{{ part.pk }}">{{ part.name }}</a><br>
|
||||
|
@ -1 +1,4 @@
|
||||
{{part}}
|
||||
|
||||
<br>
|
||||
Category: <a href="/part/category/{{ part.category.pk}}">{{ part.category }}</a>
|
Loading…
Reference in New Issue
Block a user