mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Slight adjustment to page tabs for StockItem view
This commit is contained in:
parent
ea0d32fd3d
commit
003b384abd
@ -1,12 +1,15 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
<ul class='nav nav-tabs'>
|
<ul class='nav nav-tabs'>
|
||||||
<li{% ifequal tab 'tracking' %} class='active'{% endifequal %}>
|
|
||||||
<a href="{% url 'stock-item-detail' item.id %}">{% trans "Tracking" %}</a>
|
|
||||||
</li>
|
|
||||||
<li{% ifequal tab 'children' %} class='active'{% endifequal %}>
|
<li{% ifequal tab 'children' %} class='active'{% endifequal %}>
|
||||||
<a href="{% url 'stock-item-children' item.id %}">{% trans "Children" %}{% if item.child_count > 0 %}<span class='badge'>{{ item.child_count }}</span>{% endif %}</a>
|
<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>
|
</li>
|
||||||
|
<li{% ifequal tab 'tracking' %} class='active'{% endifequal %}>
|
||||||
|
<a href="{% url 'stock-item-detail' item.id %}">
|
||||||
|
{% trans "Tracking" %}
|
||||||
|
{% if item.tracking_info.count > 0 %}<span class='badge'>{{ item.tracking_info.count }}</span>{% endif %}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
{% if 0 %}
|
{% if 0 %}
|
||||||
<!-- These tabs are to be implemented in the future -->
|
<!-- These tabs are to be implemented in the future -->
|
||||||
<li{% ifequal tab 'builds' %} class='active'{% endifequal %}>
|
<li{% ifequal tab 'builds' %} class='active'{% endifequal %}>
|
||||||
@ -14,9 +17,15 @@
|
|||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<li{% ifequal tab 'notes' %} class='active'{% endifequal %}>
|
<li{% ifequal tab 'notes' %} class='active'{% endifequal %}>
|
||||||
<a href="{% url 'stock-item-notes' item.id %}">{% trans "Notes" %}{% if item.notes %} <span class='fas fa-info-circle'></span>{% endif %}</a>
|
<a href="{% url 'stock-item-notes' item.id %}">
|
||||||
|
{% trans "Notes" %}
|
||||||
|
{% if item.notes %} <span class='fas fa-info-circle'></span>{% endif %}
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li{% if tab == 'attachments' %} class='active'{% endif %}>
|
<li{% if tab == 'attachments' %} class='active'{% endif %}>
|
||||||
<a href="{% url 'stock-item-attachments' item.id %}">{% trans "Attachments" %}{% if item.attachments.count > 0 %}<span class='badge'>{{ item.attachments.count }}</span>{% endif %}</a>
|
<a href="{% url 'stock-item-attachments' item.id %}">
|
||||||
|
{% trans "Attachments" %}
|
||||||
|
{% if item.attachments.count > 0 %}<span class='badge'>{{ item.attachments.count }}</span>{% endif %}
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
Loading…
Reference in New Issue
Block a user