From 0581885ad5983622fb0aaf8f7e71c60d21bb07df Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 14 Oct 2021 00:26:34 +1100 Subject: [PATCH] Simplify BOM table buttons --- InvenTree/part/templates/part/bom.html | 55 ++++++++++--------- .../stock/templates/stock/item_base.html | 4 +- 2 files changed, 33 insertions(+), 26 deletions(-) diff --git a/InvenTree/part/templates/part/bom.html b/InvenTree/part/templates/part/bom.html index 6808630ed1..988f65cfdb 100644 --- a/InvenTree/part/templates/part/bom.html +++ b/InvenTree/part/templates/part/bom.html @@ -5,7 +5,8 @@
{% trans "You do not have permission to edit the BOM." %}
-{% else %} +{% endif %} + {% if part.bom_checked_date %} {% if part.is_bom_valid %}
@@ -23,34 +24,38 @@
+ + {% if roles.part.change %} - - - {% if part.variant_of %} - - {% endif %} + +
+ + +
- {% if part.is_bom_valid == False %} - {% endif %} - {% endif %} - {% endif %} - - +
diff --git a/InvenTree/stock/templates/stock/item_base.html b/InvenTree/stock/templates/stock/item_base.html index 798802ab81..00891d7b6a 100644 --- a/InvenTree/stock/templates/stock/item_base.html +++ b/InvenTree/stock/templates/stock/item_base.html @@ -72,7 +72,9 @@ {% if barcodes %}
- +