diff --git a/InvenTree/part/templates/part/detail.html b/InvenTree/part/templates/part/detail.html index 2714347414..7e14184b30 100644 --- a/InvenTree/part/templates/part/detail.html +++ b/InvenTree/part/templates/part/detail.html @@ -15,7 +15,7 @@ - + @@ -28,7 +28,7 @@ {% endif %} {% if part.revision %} - + @@ -132,7 +132,9 @@
{% trans "Part name" %} {{ part.name }}
{% trans "Revision" %} {{ part.revision }}
+ + {% if part.virtual %} @@ -142,6 +144,7 @@ {% endif %} + {% if part.is_template %} @@ -151,6 +154,7 @@ {% endif %} + {% if part.assembly %} @@ -160,6 +164,7 @@ {% endif %} + {% if part.component %} @@ -169,6 +174,7 @@ {% endif %} + {% if part.trackable %} @@ -178,6 +184,7 @@ {% endif %} + {% if part.purchaseable %} @@ -187,6 +194,7 @@ {% endif %} + {% if part.salable %} @@ -196,6 +204,13 @@ {% endif %} + {% if part.active %} diff --git a/InvenTree/stock/templates/stock/item_base.html b/InvenTree/stock/templates/stock/item_base.html index d7eb987aab..e98ff37d93 100644 --- a/InvenTree/stock/templates/stock/item_base.html +++ b/InvenTree/stock/templates/stock/item_base.html @@ -234,7 +234,7 @@ InvenTree | {% trans "Stock Item" %} - {{ item }} {% endif %} {% if item.batch %} - + @@ -248,7 +248,7 @@ InvenTree | {% trans "Stock Item" %} - {{ item }} {% endif %} {% if item.purchase_order %} - +
{% trans "Virtual" %} {% include "slide.html" with state=part.virtual field='virtual' %}
{% trans "Template" %} {% include "slide.html" with state=part.is_template field='is_template' %}
{% trans "Assembly" %} {% include "slide.html" with state=part.assembly field='assembly' %}
{% trans "Component" %} {% include "slide.html" with state=part.component field='component' %}
{% trans "Trackable" %} {% include "slide.html" with state=part.trackable field='trackable' %}
{% trans "Purchaseable" %} {% include "slide.html" with state=part.purchaseable field='purchaseable' %}
{% trans "Salable" %} {% include "slide.html" with state=part.salable field='salable' %}
+ {% if part.active %} + + {% else %} + + {% endif %} + {% trans "Active" %} {% include "slide.html" with state=part.active field='active' disabled=False %}
{% trans "Batch" %} {{ item.batch }}
{% trans "Purchase Order" %} {{ item.purchase_order }}