diff --git a/InvenTree/part/forms.py b/InvenTree/part/forms.py
index d72d29669b..a276d62c54 100644
--- a/InvenTree/part/forms.py
+++ b/InvenTree/part/forms.py
@@ -139,13 +139,11 @@ class EditPartForm(HelperForm):
'revision',
'keywords',
'variant_of',
- 'is_template',
'link',
'default_location',
'default_supplier',
'units',
'minimum_stock',
- 'active',
]
diff --git a/InvenTree/part/templates/part/detail.html b/InvenTree/part/templates/part/detail.html
index 6d7400d4da..e9e09959fb 100644
--- a/InvenTree/part/templates/part/detail.html
+++ b/InvenTree/part/templates/part/detail.html
@@ -128,6 +128,15 @@
{% trans "Part is not a virtual part" %} |
{% endif %}
+
+ {% trans "Template" %} |
+ {% include "slide.html" with state=part.is_template field='is_template' %} |
+ {% if part.is_template %}
+ {% trans "Part is a template part (variants can be made from this part)" %} |
+ {% else %}
+ {% trans "Part is not a template part" %} |
+ {% endif %}
+
{% trans "Assembly" %} |
{% include "slide.html" with state=part.assembly field='assembly' %} |
@@ -173,6 +182,15 @@
{% trans "Part cannot be sold to customers" %} |
{% endif %}
+
+ {% trans "Active" %} |
+ {% include "slide.html" with state=part.active field='active' %} |
+ {% if part.active %}
+ {% trans "Part is active" %} |
+ {% else %}
+ {% trans "Part is not active" %} |
+ {% endif %}
+
@@ -196,7 +214,7 @@
data[field] = checked;
// Update the particular field
- inventreePut("/api/part/{{ part.id }}/",
+ inventreePut("{% url 'api-part-detail' part.id %}",
data,
{
method: 'PATCH',