From 820078dd3f3ecb43dc13cea91653976a9aecb75d Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 3 Feb 2022 11:44:51 +0100 Subject: [PATCH] UX: inform user about the type action thas is going to be created --> show type of action --- ereuse_devicehub/static/js/main_inventory.js | 2 ++ ereuse_devicehub/templates/inventory/actions.html | 2 +- ereuse_devicehub/templates/inventory/allocate.html | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ereuse_devicehub/static/js/main_inventory.js b/ereuse_devicehub/static/js/main_inventory.js index c2fa6f8f..32067cbc 100644 --- a/ereuse_devicehub/static/js/main_inventory.js +++ b/ereuse_devicehub/static/js/main_inventory.js @@ -52,10 +52,12 @@ function removeTag() { function newAction(action) { $("#actionModal #type").val(action); + $("#actionModal #title-action").html(action); $("#activeActionModal").click(); } function newAllocate(action) { $("#allocateModal #type").val(action); + $("#allocateModal #title-action").html(action); $("#activeAllocateModal").click(); } diff --git a/ereuse_devicehub/templates/inventory/actions.html b/ereuse_devicehub/templates/inventory/actions.html index 61a942c5..2e14f24d 100644 --- a/ereuse_devicehub/templates/inventory/actions.html +++ b/ereuse_devicehub/templates/inventory/actions.html @@ -3,7 +3,7 @@