From 1dcebc0112f3c7f9ae9e2662796c8283550fd102 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Fri, 13 May 2022 13:11:00 +0200 Subject: [PATCH] #3401 change the values of the status in the page of device details --- .../templates/inventory/device_detail.html | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/ereuse_devicehub/templates/inventory/device_detail.html b/ereuse_devicehub/templates/inventory/device_detail.html index 9bab1528..461a6e2a 100644 --- a/ereuse_devicehub/templates/inventory/device_detail.html +++ b/ereuse_devicehub/templates/inventory/device_detail.html @@ -125,15 +125,27 @@
Status Details
Physical State
-
{{ device.physical or '' }}
+
+ {% if device.physical_status %} + {{ device.physical_status.type }} + {% endif %} +
Lifecycle States
-
{{ device.last_action_trading or ''}}
+
+ {% if device.status %} + {{ device.status.type }} + {% endif %} +
Allocated States
-
{{ device.usage or '' }}
+
+ {% if device.allocated_status %} + {{ device.allocated_status.type }} + {% endif %} +