From 12e31758b3733ddbd1ddd1dfa401dc32d6da7c27 Mon Sep 17 00:00:00 2001 From: sergio_gimenez Date: Tue, 8 Oct 2024 07:26:48 +0200 Subject: [PATCH] 90-initial-ugly-view --- device/templates/details.html | 381 +++++++++++++++---------------- device/templates/device_web.html | 81 +++++++ device/urls.py | 2 + device/views.py | 23 ++ 4 files changed, 293 insertions(+), 194 deletions(-) create mode 100644 device/templates/device_web.html diff --git a/device/templates/details.html b/device/templates/details.html index 3881c1a..586cc0f 100644 --- a/device/templates/details.html +++ b/device/templates/details.html @@ -1,213 +1,206 @@ -{% extends "base.html" %} +{% extends 'base.html' %} {% load i18n %} {% block content %} -
-
-

{{ object.id }}

-
-
- -
-
- -
-
-
- -
-
Details
-
-
Phid
-
{{ object.id }}
+
+
+

{{ 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:"" }}
-
- -
-
Model
-
{{ object.model|default:"" }}
-
- -
-
Serial Number
-
{{ object.last_evidence.doc.device.serialNumber|default:"" }}
-
- {% endif %} -
-
Identifiers
-
- {% for chid in object.hids %} -
-
{{ chid |default:"" }}
-
- {% endfor %}
-
-