From b8946dfbde4548b3ec8e0a9191531363e26d6d19 Mon Sep 17 00:00:00 2001 From: sergio_gimenez Date: Tue, 8 Oct 2024 08:00:35 +0200 Subject: [PATCH] 90: Playing with CSS to make it look good --- device/templates/device_web.html | 238 +++++++++++++++++++++---------- 1 file changed, 165 insertions(+), 73 deletions(-) diff --git a/device/templates/device_web.html b/device/templates/device_web.html index 90aa5dd..85d6f04 100644 --- a/device/templates/device_web.html +++ b/device/templates/device_web.html @@ -1,81 +1,173 @@ -{% extends 'base.html' %} - -{% block content %} - -

{{ title }}

- -
Details
-
-
Phid
-
{{ object.id }}
-
- -
-
Type
-
{{ object.type }}
-
- - {% if object.is_websnapshot %} - {% for k, v in object.last_user_evidence %} -
-
{{ k }}
-
{{ v|default:'' }}
-
- {% endfor %} - {% else %} -
-
Manufacturer
-
{{ object.manufacturer|default:'' }}
-
+ + + + + + {{ title }} + + + + + +
+

{{ title }}

-
Model
-
{{ object.model|default:'' }}
-
+
+

Details

+
+
Phid
+
+
{{ object.id }}
+
+
+
+
Type
+
{{ object.type }}
+
-
-
Serial Number
-
{{ object.last_evidence.doc.device.serialNumber|default:'' }}
-
- {% endif %} -
-
Identifiers
-
- {% for chid in object.hids %} -
-
{{ chid|default:'' }}
-
- {% endfor %} - - - {% comment %}

User Anotations

{% endcomment %} - -

Components

-
    - {% for c in object.last_evidence.doc.components %} -
    -
    -
    {{ c.type }}
    - {{ evidence.created }} + {% 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 %}
    -

    - {{ c.manufacturer }}
    - {{ c.model }}
    - {{ c.serialNumber }}
    -

    - -
    - {% endfor %} +
    +

    Identifiers

    + {% for chid in object.hids %} +
    +
    {{ chid|default:'' }}
    +
    + {% endfor %} +
    +
+

Components

+
+ {% for c in object.last_evidence.doc.components %} +
+
+
+
{{ c.type }}
+

+ Manufacturer: {{ c.manufacturer }}
+ Model: {{ c.model }}
+ Serial Number: {{ c.serialNumber }} +

+ {{ evidence.created }} +
+
+
+ {% endfor %} +
-

Last Evidence Snapshot

-

{{ snapshot }}

+

Last Evidence Snapshot

+
+
+

{{ snapshot }}

+
+
+
- {% comment %}

Lot Tags

- {% endcomment %} -{% endblock %} + + + + + \ No newline at end of file