From b11bb163a04be7f6d277e3903907f9ba1d4b3346 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 26 Apr 2022 17:35:29 +0200 Subject: [PATCH 1/3] hide 2 trade buttons --- ereuse_devicehub/templates/inventory/device_list.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ereuse_devicehub/templates/inventory/device_list.html b/ereuse_devicehub/templates/inventory/device_list.html index 3a6874a9..9cc69a17 100644 --- a/ereuse_devicehub/templates/inventory/device_list.html +++ b/ereuse_devicehub/templates/inventory/device_list.html @@ -38,12 +38,14 @@
{% if lot.is_temporary %} + {% if 1 == 2 %} Add supplier Add receiver + {% endif %} Delete Lot From 8125279619b890b05bd9fb6c3eba7cc6eb322c77 Mon Sep 17 00:00:00 2001 From: Santiago Lamora Date: Thu, 28 Apr 2022 11:38:31 +0200 Subject: [PATCH 2/3] Add comment to not rendered code --- ereuse_devicehub/templates/inventory/device_list.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ereuse_devicehub/templates/inventory/device_list.html b/ereuse_devicehub/templates/inventory/device_list.html index 9cc69a17..f0bbfb8b 100644 --- a/ereuse_devicehub/templates/inventory/device_list.html +++ b/ereuse_devicehub/templates/inventory/device_list.html @@ -38,14 +38,16 @@
{% if lot.is_temporary %} - {% if 1 == 2 %} + + {% if 1 == 2 %}{# #} Add supplier Add receiver - {% endif %} + {% endif %}{# #} + Delete Lot From 6946a2584b6812651f8a5f175777f8a710e18eed Mon Sep 17 00:00:00 2001 From: Santiago Lamora Date: Thu, 28 Apr 2022 11:39:40 +0200 Subject: [PATCH 3/3] Refactor: group related code (delete button & modal status) --- ereuse_devicehub/templates/inventory/device_list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ereuse_devicehub/templates/inventory/device_list.html b/ereuse_devicehub/templates/inventory/device_list.html index f0bbfb8b..827c3b68 100644 --- a/ereuse_devicehub/templates/inventory/device_list.html +++ b/ereuse_devicehub/templates/inventory/device_list.html @@ -37,7 +37,6 @@
{% if lot.is_temporary %} - {% if 1 == 2 %}{# #} @@ -51,6 +50,7 @@ Delete Lot + {% endif %}