From 792cc1915f5a0fa8ab44279815ec695645df06b4 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 6 Oct 2022 14:29:40 +0200 Subject: [PATCH] move buttons transfer, remove direction transfer --- ereuse_devicehub/static/css/devicehub.css | 4 ++ .../templates/inventory/device_list.html | 41 ++++++------------- 2 files changed, 16 insertions(+), 29 deletions(-) diff --git a/ereuse_devicehub/static/css/devicehub.css b/ereuse_devicehub/static/css/devicehub.css index 169d7fd2..84771144 100644 --- a/ereuse_devicehub/static/css/devicehub.css +++ b/ereuse_devicehub/static/css/devicehub.css @@ -26,3 +26,7 @@ .help { color: #993365; } +.doTransfer { + margin-top: -8px; + margin-right: 15px;" +} \ No newline at end of file diff --git a/ereuse_devicehub/templates/inventory/device_list.html b/ereuse_devicehub/templates/inventory/device_list.html index 50468d72..93e64ef3 100644 --- a/ereuse_devicehub/templates/inventory/device_list.html +++ b/ereuse_devicehub/templates/inventory/device_list.html @@ -31,8 +31,8 @@
- {% if lot %}
+ {% if lot %}
@@ -41,25 +41,19 @@

{{ lot.name }}

- {% if lot.transfer.code and lot.transfer.user_to and not lot.transfer.user_to.phantom %} - {{ lot.transfer.code }} {{ lot.transfer.user_to.email }} - {% elif lot.transfer.code and lot.transfer.user_from and not lot.transfer.user_from.phantom %} - {{ lot.transfer.user_from.email }} {{ lot.transfer.code }} - {% endif %}
{% if lot.is_temporary or not lot.transfer.closed %} - {% if 1 == 2 %}{# #} - - Add supplier - - - Add receiver - - {% endif %}{# #} - + {% if lot and lot.is_temporary %} + + Create Outgoing Lot + + + Create Incoming Lot + + {% endif %} Delete Lot @@ -68,18 +62,17 @@
- {% endif %} -
- {% if lot and not lot.is_temporary %} + {% if lot %} {% endif %}
- {% if lot and lot.is_temporary %} - - {% endif %}