From 6ca37e348cc7210bb14931bc199bd60bb8878454 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 26 Jan 2021 13:52:23 +0100 Subject: [PATCH] change erasure.html template --- .../templates/documents/erasure.html | 29 +++++++++---------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/ereuse_devicehub/resources/documents/templates/documents/erasure.html b/ereuse_devicehub/resources/documents/templates/documents/erasure.html index b2556500..d8170767 100644 --- a/ereuse_devicehub/resources/documents/templates/documents/erasure.html +++ b/ereuse_devicehub/resources/documents/templates/documents/erasure.html @@ -5,8 +5,6 @@ - - @@ -16,16 +14,6 @@ {% for erasure in erasures %} - {% if erasure.parent.serial_number %} - - {% else %} - - {% endif %} - @@ -51,10 +39,19 @@
Data storage:
{{ erasure.device.__format__('ts') }}
-
Computer:
-
{{ erasure.parent.__format__('ts') }}
-
Tags:
-
{{ erasure.parent.tags }}
+ +
Computer where was erase:
+
Title: {{ erasure.parent.__format__('ts') }}
+
SystemId: {{ erasure.parent.id }}
+
Hid: {{ erasure.parent.hid }}
+
Tags: {{ erasure.parent.tags }}
+ +
Computer where it resides:
+
Title: {{ erasure.device.parent.__format__('ts') }}
+
SystemId: {{ erasure.device.parent.id }}
+
Hid: {{ erasure.device.parent.hid }}
+
Tags: {{ erasure.device.parent.tags }}
+
Erasure:
{{ erasure.__format__('ts') }}
{% if erasure.steps %}
S/NTags S/N Data Storage Type of erasure Result
- {{ erasure.parent.serial_number.upper() }} - - {{ erasure.parent.tags.__format__('') }} - {{ erasure.device.serial_number.upper() }}