mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Show which variants are inactive in the variant table
This commit is contained in:
parent
047d2f2f4c
commit
ed2461adf1
@ -35,6 +35,9 @@
|
|||||||
<td>
|
<td>
|
||||||
{% include "hover_image.html" with image=variant.image hover=True %}
|
{% include "hover_image.html" with image=variant.image hover=True %}
|
||||||
<a href="{% url 'part-detail' variant.id %}">{{ variant.full_name }}</a>
|
<a href="{% url 'part-detail' variant.id %}">{{ variant.full_name }}</a>
|
||||||
|
{% if not variant.active %}
|
||||||
|
<span class='label label-warning' style='float: right;'>Inactive</span>
|
||||||
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td>{{ variant.description }}</td>
|
<td>{{ variant.description }}</td>
|
||||||
<td>{{ variant.total_stock }}</td>
|
<td>{{ variant.total_stock }}</td>
|
||||||
|
Loading…
Reference in New Issue
Block a user