From 18c48e9191df61414d2240a250d6ddbb88e2423b Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Thu, 18 Apr 2019 08:33:25 +1000 Subject: [PATCH] Split part details display into two columns --- InvenTree/part/templates/part/detail.html | 144 ++++++++++++---------- 1 file changed, 76 insertions(+), 68 deletions(-) diff --git a/InvenTree/part/templates/part/detail.html b/InvenTree/part/templates/part/detail.html index b340ec35c5..7524874a28 100644 --- a/InvenTree/part/templates/part/detail.html +++ b/InvenTree/part/templates/part/detail.html @@ -25,74 +25,82 @@
- - - - - - - - - -{% if part.IPN %} - - - - -{% endif %} - - - - -{% if part.default_location %} - - - - -{% endif %} -{% if part.default_supplier %} - - - - -{% endif %} - - - - - - - - - - - - - - - - - - - - - - - - -{% if part.minimum_stock > 0 %} - - - - -{% endif %} -
Part name{{ part.name }}
Description{{ part.description }}
IPN{{ part.IPN }}
Category - {% if part.category %} - {{ part.category.pathstring }} - {% endif %} -
Default Location{{ part.default_location.pathstring }}
Default Supplier - {{ part.default_supplier.supplier.name }} | {{ part.default_supplier.SKU }} -
Units{{ part.units }}
Buildable{% include "yesnolabel.html" with value=part.buildable %}
Consumable{% include "yesnolabel.html" with value=part.consumable %}
Trackable{% include "yesnolabel.html" with value=part.trackable %}
Purchaseable{% include "yesnolabel.html" with value=part.purchaseable %}
Salable{% include "yesnolabel.html" with value=part.salable %}
Minimum Stock{{ part.minimum_stock }}
+
+
+ + + + + + + + + + {% if part.IPN %} + + + + + {% endif %} + + + + + {% if part.default_location %} + + + + + {% endif %} + {% if part.default_supplier %} + + + + + {% endif %} + + + + +
Part name{{ part.name }}
Description{{ part.description }}
IPN{{ part.IPN }}
Category + {% if part.category %} + {{ part.category.pathstring }} + {% endif %} +
Default Location{{ part.default_location.pathstring }}
Default Supplier + {{ part.default_supplier.supplier.name }} | {{ part.default_supplier.SKU }} +
Units{{ part.units }}
+
+
+ + + + + + + + + + + + + + + + + + + + + + {% if part.minimum_stock > 0 %} + + + + + {% endif %} +
Buildable{% include "yesnolabel.html" with value=part.buildable %}
Consumable{% include "yesnolabel.html" with value=part.consumable %}
Trackable{% include "yesnolabel.html" with value=part.trackable %}
Purchaseable{% include "yesnolabel.html" with value=part.purchaseable %}
Salable{% include "yesnolabel.html" with value=part.salable %}
Minimum Stock{{ part.minimum_stock }}
+
+
{% if part.notes %}