From 9a95587cf3d1d126115968bddbe04fd96d2f3c7c Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 28 Feb 2022 13:05:36 +0100 Subject: [PATCH] remove lot in top --- .../templates/inventory/device_list.html | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/ereuse_devicehub/templates/inventory/device_list.html b/ereuse_devicehub/templates/inventory/device_list.html index 249d3d17..8b5f030f 100644 --- a/ereuse_devicehub/templates/inventory/device_list.html +++ b/ereuse_devicehub/templates/inventory/device_list.html @@ -33,8 +33,34 @@
-
-

{{ lot.name }}

+
+ +
+ {% if lot and lot.is_temporary and not lot.devices %} + + + Remove Lot + + {% endif %} +
+
+ {% if lot and lot.is_temporary %} + + + Add selected Devices to a lot + + {% endif %} +
+
+ {% if lot and lot.is_temporary %} + + + Remove selected devices from a lot + + {% endif %} +