From cd666fa1ff0046f0128ce52f02429a6d1cabea9a Mon Sep 17 00:00:00 2001 From: sergio_gimenez Date: Tue, 29 Oct 2024 08:29:13 +0100 Subject: [PATCH] Add consistent margin and add translations --- device/templates/details.html | 250 +++++++++++++--------------------- 1 file changed, 94 insertions(+), 156 deletions(-) diff --git a/device/templates/details.html b/device/templates/details.html index d51960f..5723477 100644 --- a/device/templates/details.html +++ b/device/templates/details.html @@ -2,189 +2,127 @@ {% load i18n %} {% block content %} -
-
-

{{ object.shortid }}

+
+
+

{{ object.shortid }}

+
-
-
-
-
- - {% if object.is_eraseserver %} -
-
{% trans "Is a erase server" %}
-
-
- {% endif %} - -
-
{% trans "Type" %}
-
{{ object.type }}
-
- - {% if object.is_websnapshot %} - {% for k, v in object.last_user_evidence %} -
-
{{ k }}
-
{{ v|default:"" }}
-
- {% endfor %} - {% else %} -
-
Manufacturer
-
{{ object.manufacturer|default:"" }}
-
- -
-
Model
-
{{ object.model|default:"" }}
-
- -
-
Serial Number
-
{{ object.last_evidence.doc.device.serialNumber|default:"" }}
-
- {% endif %} -
-
Identifiers
-
- {% for chid in object.hids %} -
-
{{ chid |default:"" }}
-
- {% endfor %}
-
- - -
{% trans "Annotations" %}
- - - - - - - - - - - - {% for a in object.get_user_annotations %} - - - - - - - - {% endfor %} - - -
KeyValueCreated on
{{ a.key }}{{ a.value }}{{ a.created }}
-
-
Details
+
{% trans 'Details' %}
-
Phid
+
Phid
{{ object.id }}
-
-
Type
+ {% if object.is_eraseserver %} +
+
+ {% trans 'Is a erase server' %} +
+
+
+ {% endif %} + +
+
Phid
+
{{ object.id }}
+
{{ object.type }}
{% if object.is_websnapshot %} {% for k, v in object.last_user_evidence %} -
+
{{ k }}
{{ v|default:'' }}
{% endfor %} {% else %} -
-
Manufacturer
+
+
+ {% trans 'Manufacturer' %} +
{{ object.manufacturer|default:'' }}
-
-
Model
+
+
+ {% trans 'Model' %} +
{{ object.model|default:'' }}
-
-
Serial Number
+
+
+ {% trans 'Serial Number' %} +
{{ object.last_evidence.doc.device.serialNumber|default:'' }}
{% endif %} -
-
Identifiers
+ +
+
+ {% trans 'Identifiers' %} +
{% for chid in object.hids %} -
+
{{ chid|default:'' }}
{% endfor %}
-
-