From 3849ea8057b886f8a37f7f7ce8d15038daf73d14 Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 29 Oct 2021 23:20:09 +1100 Subject: [PATCH] Rearranging buttons --- InvenTree/build/templates/build/detail.html | 8 +- .../order/purchase_order_detail.html | 8 +- .../templates/order/sales_order_detail.html | 8 +- InvenTree/part/templates/part/detail.html | 77 +++++++++++++------ InvenTree/stock/templates/stock/item.html | 41 ++++++---- InvenTree/templates/attachment_button.html | 5 ++ InvenTree/templates/attachment_table.html | 6 +- 7 files changed, 110 insertions(+), 43 deletions(-) create mode 100644 InvenTree/templates/attachment_button.html diff --git a/InvenTree/build/templates/build/detail.html b/InvenTree/build/templates/build/detail.html index f2a16613b8..556c54f35c 100644 --- a/InvenTree/build/templates/build/detail.html +++ b/InvenTree/build/templates/build/detail.html @@ -275,7 +275,13 @@
-

{% trans "Attachments" %}

+
+

{% trans "Attachments" %}

+ {% include "spacer.html" %} +
+ {% include "attachment_button.html" %} +
+
{% include "attachment_table.html" %} diff --git a/InvenTree/order/templates/order/purchase_order_detail.html b/InvenTree/order/templates/order/purchase_order_detail.html index c57d88fe57..6a016d110a 100644 --- a/InvenTree/order/templates/order/purchase_order_detail.html +++ b/InvenTree/order/templates/order/purchase_order_detail.html @@ -58,7 +58,13 @@
-

{% trans "Purchase Order Attachments" %}

+
+

{% trans "Attachments" %}

+ {% include "spacer.html" %} +
+ {% include "attachment_button.html" %} +
+
{% include "attachment_table.html" %} diff --git a/InvenTree/order/templates/order/sales_order_detail.html b/InvenTree/order/templates/order/sales_order_detail.html index e5f047b520..5d4db70a34 100644 --- a/InvenTree/order/templates/order/sales_order_detail.html +++ b/InvenTree/order/templates/order/sales_order_detail.html @@ -49,7 +49,13 @@
-

{% trans "Attachments" %}

+
+

{% trans "Attachments" %}

+ {% include "spacer.html" %} +
+ {% include "attachment_button.html" %} +
+
{% include "attachment_table.html" %} diff --git a/InvenTree/part/templates/part/detail.html b/InvenTree/part/templates/part/detail.html index 638482f9e3..d26915a628 100644 --- a/InvenTree/part/templates/part/detail.html +++ b/InvenTree/part/templates/part/detail.html @@ -129,14 +129,19 @@
-

{% trans "Purchase Orders" %}

+
+

{% trans "Purchase Orders" %}

+ {% include "spacer.html" %} +
+ +
+
-
@@ -234,11 +239,10 @@
-

{% trans "Parameters" %}

-
-
-
-
+
+

{% trans "Parameters" %}

+ {% include "spacer.html" %} +
{% if roles.part.add %}
+
+
+
+
+
+
-

{% trans "Attachments" %}

+
+

{% trans "Attachments" %}

+ {% include "spacer.html" %} +
+ {% include "attachment_button.html" %} +
+
{% include "attachment_table.html" %} @@ -261,17 +277,24 @@