From 1acd3c4929d238af206f293d7d76976b33b533c8 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 3 Jan 2022 13:40:30 +0100 Subject: [PATCH] refactoring actions of javascript --- ereuse_devicehub/static/js/main_inventory.js | 4 +++ .../templates/inventory/actions.html | 33 +++++++++++++++++++ .../templates/inventory/device_list.html | 22 ++++++------- 3 files changed, 48 insertions(+), 11 deletions(-) create mode 100644 ereuse_devicehub/templates/inventory/actions.html diff --git a/ereuse_devicehub/static/js/main_inventory.js b/ereuse_devicehub/static/js/main_inventory.js index dd121e40..f9a3c0bf 100644 --- a/ereuse_devicehub/static/js/main_inventory.js +++ b/ereuse_devicehub/static/js/main_inventory.js @@ -23,3 +23,7 @@ function deviceSelect() { $(x).val(devices_id); }); } + +function newAction(action) { + return action; +} diff --git a/ereuse_devicehub/templates/inventory/actions.html b/ereuse_devicehub/templates/inventory/actions.html new file mode 100644 index 00000000..3216537a --- /dev/null +++ b/ereuse_devicehub/templates/inventory/actions.html @@ -0,0 +1,33 @@ + diff --git a/ereuse_devicehub/templates/inventory/device_list.html b/ereuse_devicehub/templates/inventory/device_list.html index 58a70aca..fa373c01 100644 --- a/ereuse_devicehub/templates/inventory/device_list.html +++ b/ereuse_devicehub/templates/inventory/device_list.html @@ -72,25 +72,25 @@ Status actions
  • - + Recycling
  • - + Use
  • - + Refurbish
  • - + Management @@ -99,13 +99,13 @@ Allocation
  • - + Allocate
  • - + Deallocate @@ -114,31 +114,31 @@ Physical actions
  • - + ToPrepare
  • - + Prepare
  • - + DataWipe
  • - + ToRepair
  • - + Ready