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

@@ -30,10 +29,9 @@
-
-
+

Part Details

@@ -102,37 +100,33 @@
Part name
+

Part Type

- {% if part.assembly %} - + + - {% endif %} - {% if part.component %} + - {% endif %} - {% if part.trackable %} + - {% endif %} - {% if part.purchaseable %} + - {% endif %} - {% if part.salable %} - + + - {% endif %}
AssemblyAssembly{% include "slide.html" with state=part.assembly %} This part can be assembled from other parts
Component{% include "slide.html" with state=part.component %} This part can be used in assemblies
Trackable{% include "slide.html" with state=part.trackable %} Stock for this part will be tracked by (serial or batch)
Purchaseable{% include "slide.html" with state=part.purchaseable %} This part can be purchased from external suppliers
SalableSellable{% include "slide.html" with state=part.salable %} This part can be sold to customers
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