From 27f956bffab815f12d899bc221a064213f3da450 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Wed, 22 May 2019 23:27:43 +1000 Subject: [PATCH] Part detail rendering improvements --- InvenTree/part/templates/part/detail.html | 36 +++++++++++++---------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/InvenTree/part/templates/part/detail.html b/InvenTree/part/templates/part/detail.html index 787e071036..b561d08ae5 100644 --- a/InvenTree/part/templates/part/detail.html +++ b/InvenTree/part/templates/part/detail.html @@ -33,33 +33,39 @@
- + {% if part.IPN %} - + {% endif %} + {% if part.variant %} - + + + + {% endif %} + + {% if part.keywords %} - + {% endif %} {% if part.URL %} - + {% endif %} - + {% if part.default_location %} - + {% endif %} {% if part.default_supplier %} - + {% endif %} - +
Part namePart name {{ part.full_name }}
IPNIPN {{ part.IPN }}
DescriptionVariant{{ part.variant }}
Description {{ part.description }}
KeywordsKeywords {{ part.keywords }}
URLURL {{ part.URL }}
CategoryCategory {% if part.category %} {{ part.category.pathstring }} @@ -68,20 +74,20 @@
Default LocationDefault Location {{ part.default_location.pathstring }}
Default SupplierDefault Supplier {{ part.default_supplier.supplier.name }} | {{ part.default_supplier.SKU }}
UnitsUnits {{ part.units }}
@@ -89,28 +95,28 @@
- + - + - + - + - + {% if part.minimum_stock > 0 %} - + {% endif %}
BuildableBuildable {% include "yesnolabel.html" with value=part.buildable %}
ConsumableConsumable {% include "yesnolabel.html" with value=part.consumable %}
TrackableTrackable {% include "yesnolabel.html" with value=part.trackable %}
PurchaseablePurchaseable {% include "yesnolabel.html" with value=part.purchaseable %}
SalableSalable {% include "yesnolabel.html" with value=part.salable %}
Minimum StockMinimum Stock {{ part.minimum_stock }}