diff --git a/InvenTree/part/templates/part/detail.html b/InvenTree/part/templates/part/detail.html
index fe357a6bdc..f46a591616 100644
--- a/InvenTree/part/templates/part/detail.html
+++ b/InvenTree/part/templates/part/detail.html
@@ -6,7 +6,6 @@
-
Part Details
-
-
+
Part Details
Part name |
@@ -102,37 +100,33 @@
+
Part Type
- {% if part.assembly %}
- Assembly |
+ Assembly |
+ {% include "slide.html" with state=part.assembly %} |
This part can be assembled from other parts |
- {% endif %}
- {% if part.component %}
Component |
+ {% include "slide.html" with state=part.component %} |
This part can be used in assemblies |
- {% endif %}
- {% if part.trackable %}
Trackable |
+ {% include "slide.html" with state=part.trackable %} |
Stock for this part will be tracked by (serial or batch) |
- {% endif %}
- {% if part.purchaseable %}
Purchaseable |
+ {% include "slide.html" with state=part.purchaseable %} |
This part can be purchased from external suppliers |
- {% endif %}
- {% if part.salable %}
- Salable |
+ Sellable |
+ {% include "slide.html" with state=part.salable %} |
This part can be sold to customers |
- {% endif %}
diff --git a/InvenTree/templates/slide.html b/InvenTree/templates/slide.html
new file mode 100644
index 0000000000..7694e99016
--- /dev/null
+++ b/InvenTree/templates/slide.html
@@ -0,0 +1,8 @@
+
+
+ {% if state %}
+
+ {% else %}
+
+ {% endif %}
+
\ No newline at end of file