From 1ad4b8b131e0a3093f17879916ccee145d709d3b Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Fri, 12 Jun 2020 18:11:57 +1000 Subject: [PATCH 1/2] Reorganize buttons for "Part" view --- InvenTree/part/templates/part/part_base.html | 71 +++++++++---------- .../stock/templates/stock/item_base.html | 26 +++---- 2 files changed, 47 insertions(+), 50 deletions(-) diff --git a/InvenTree/part/templates/part/part_base.html b/InvenTree/part/templates/part/part_base.html index d9f80edf44..d7bfc71740 100644 --- a/InvenTree/part/templates/part/part_base.html +++ b/InvenTree/part/templates/part/part_base.html @@ -35,44 +35,41 @@ {% endif %}

{{ part.description }}

-

-

-
- - {% if part.is_template == False %} - {% include "qr_button.html" %} - {% if part.active %} - - {% if not part.virtual %} - - {% endif %} - {% if part.purchaseable %} - - {% endif %} - {% endif %} - {% endif %} - - - {% if not part.active %} - - {% endif %} -
+
+ + + -

+ {% if part.active %} + + + {% if part.purchaseable %} + + {% endif %} + {% endif %} + +
{% if part.IPN %} diff --git a/InvenTree/stock/templates/stock/item_base.html b/InvenTree/stock/templates/stock/item_base.html index 541789e39b..63804291ec 100644 --- a/InvenTree/stock/templates/stock/item_base.html +++ b/InvenTree/stock/templates/stock/item_base.html @@ -140,6 +140,19 @@ InvenTree | {% trans "Stock Item" %} - {{ item }} {{ item.part.full_name }} + {% if item.serialized %} + + + + + + {% else %} + + + + + + {% endif %} {% if item.customer %} @@ -183,19 +196,6 @@ InvenTree | {% trans "Stock Item" %} - {{ item }} {% endif %} - {% if item.serialized %} - - - - - - {% else %} - - - - - - {% endif %} {% if item.batch %} From 2e91f64a96dc33c69bd0999ea37946543b986858 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Fri, 12 Jun 2020 18:13:14 +1000 Subject: [PATCH 2/2] Add (disabled) print-label button for Part display --- InvenTree/part/templates/part/part_base.html | 1 + 1 file changed, 1 insertion(+) diff --git a/InvenTree/part/templates/part/part_base.html b/InvenTree/part/templates/part/part_base.html index d7bfc71740..5cdeccea13 100644 --- a/InvenTree/part/templates/part/part_base.html +++ b/InvenTree/part/templates/part/part_base.html @@ -44,6 +44,7 @@ {% if part.active %}
{% trans "Serial Number" %}{{ item.serial }}
{% trans "Quantity" %}{% decimal item.quantity %} {% if item.part.units %}{{ item.part.units }}{% endif %}
{{ item.uid }}
{% trans "Serial Number" %}{{ item.serial }}
{% trans "Quantity" %}{% decimal item.quantity %} {% if item.part.units %}{{ item.part.units }}{% endif %}