mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add "installed parts" tab for stock item
This commit is contained in:
parent
97b35d9269
commit
8dd8e69c05
@ -38,4 +38,12 @@
|
||||
<a href="{% url 'stock-item-children' item.id %}">{% trans "Children" %}{% if item.child_count > 0 %}<span class='badge'>{{ item.child_count }}</span>{% endif %}</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if item.installedItemCount > 0 %}
|
||||
<li {% if tab == 'installed' %} class='active'{% endif %}>
|
||||
<a href="#">
|
||||
{% trans "Installed Parts" %}
|
||||
<span class='badge'>{{ item.installedItemCount }}</span>
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
Loading…
Reference in New Issue
Block a user