Add "installed parts" tab for stock item

This commit is contained in:
Oliver Walters 2020-09-28 19:34:43 +10:00
parent 97b35d9269
commit 8dd8e69c05

View File

@ -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 %}
</ul>
{% 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>