Show which variants are inactive in the variant table

This commit is contained in:
Oliver Walters 2019-06-28 09:43:50 +10:00
parent 047d2f2f4c
commit ed2461adf1

View File

@ -35,6 +35,9 @@
<td>
{% include "hover_image.html" with image=variant.image hover=True %}
<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>{{ variant.description }}</td>
<td>{{ variant.total_stock }}</td>