From 7ed2368f02e8820d98d74b40b2b3bd31ea6e7b1b Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 11 Aug 2022 09:51:17 +0200 Subject: [PATCH] unic template for device details --- .../templates/inventory/device_detail.html | 105 +++++++----------- 1 file changed, 43 insertions(+), 62 deletions(-) diff --git a/ereuse_devicehub/templates/inventory/device_detail.html b/ereuse_devicehub/templates/inventory/device_detail.html index ccc90020..3a8ccdb0 100644 --- a/ereuse_devicehub/templates/inventory/device_detail.html +++ b/ereuse_devicehub/templates/inventory/device_detail.html @@ -18,25 +18,13 @@
-

{{ device.devicehub_id }}

+

{{ placeholder.device.devicehub_id }}

-
-
Details
- {% if device.placeholder %} +
+
Details Real parth
-
{{ device.is_abstract() }}
+
{{ placeholder.device.is_abstract() }}
- {% endif %} - {% if device.placeholder %}
Phid
-
{{ device.placeholder.phid }}
+
{{ placeholder.phid }}
- {% endif %}
Type
-
{{ device.type }}
+
{{ placeholder.device.type }}
Manufacturer
-
{{ device.manufacturer or ''}}
+
{{ placeholder.device.manufacturer or ''}}
Model
-
{{ device.model or ''}}
+
{{ placeholder.device.model or ''}}
Serial Number
-
{{ device.serial_number or ''}}
+
{{ placeholder.device.serial_number or ''}}
+
+ +
Details Abstract parth
+
+
Type
+
{{ placeholder.binding.type }}
+
+ +
+
Manufacturer
+
{{ placeholder.binding.manufacturer or ''}}
+
+ +
+
Model
+
{{ placeholder.binding.model or ''}}
+
+ +
+
Serial Number
+
{{ placeholder.binding.serial_number or ''}}
@@ -120,7 +121,7 @@
Incoming Lots