From a27dc0914c80b0d1148bab8e16f305625305a8e8 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 15 Mar 2023 17:19:31 +0100 Subject: [PATCH] fix hide hid of erasure certificate --- ereuse_devicehub/static/css/devicehub.css | 10 ++++++++++ ereuse_devicehub/templates/inventory/erasure.html | 14 ++++++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/ereuse_devicehub/static/css/devicehub.css b/ereuse_devicehub/static/css/devicehub.css index 46fae783..e82af14c 100644 --- a/ereuse_devicehub/static/css/devicehub.css +++ b/ereuse_devicehub/static/css/devicehub.css @@ -23,6 +23,16 @@ padding-top: 0px; padding-bottom: 5px; } +#ApplyDeviceLots { + color: #993365; + font-weight: bold; +} +#ApplyDeviceLots.disabled { + color: #adb5bd; + font-weight: normal; + pointer-events: none; + background-color: #fff; +} .help { color: #993365; } diff --git a/ereuse_devicehub/templates/inventory/erasure.html b/ereuse_devicehub/templates/inventory/erasure.html index 06ad6943..130ca3c1 100644 --- a/ereuse_devicehub/templates/inventory/erasure.html +++ b/ereuse_devicehub/templates/inventory/erasure.html @@ -320,14 +320,14 @@
Computer where was erase:
Title: {{ erasure.parent.__format__('ts') }}
DevicehubID: {{ erasure.parent.dhid }}
-
Hid: {{ erasure.parent.hid }}
+
Hid: {{ erasure.parent.chid }}
Tags: {{ erasure.parent.tags }}
{% if erasure.device.parent %}
Computer where it resides:
Title: {{ erasure.device.parent.__format__('ts') }}
DevicehubID: {{ erasure.device.parent.dhid }}
-
Hid: {{ erasure.device.parent.hid }}
+
Hid: {{ erasure.device.parent.chid }}
Tags: {{ erasure.device.parent.tags }}
{% endif %} {% endif %} @@ -344,6 +344,16 @@ {% endif %} + {% if erasure.device.proofs %} +
DLT Proofs:
+
+
    + {% for proof in erasure.device.proofs %} +
  1. {{ proof.type }}: {{ proof.timestamp }}
  2. + {% endfor %} +
+
+ {% endif %} {% endfor %}