From 63b8815d1bdae0cba6ebe3e717584c5d89caa0c2 Mon Sep 17 00:00:00 2001 From: Thomas Rusiecki Date: Wed, 18 Dec 2024 13:15:09 -0300 Subject: [PATCH] current state table erased and spacing fix --- admin/templates/states_panel.html | 2 +- device/templates/tabs/general_details.html | 97 ---------------------- evidence/views.py | 2 - 3 files changed, 1 insertion(+), 100 deletions(-) diff --git a/admin/templates/states_panel.html b/admin/templates/states_panel.html index 1305e03..705d470 100644 --- a/admin/templates/states_panel.html +++ b/admin/templates/states_panel.html @@ -27,7 +27,7 @@ # - {% trans "State" %} + {% trans "State Definition" %} {% trans "Actions" %} diff --git a/device/templates/tabs/general_details.html b/device/templates/tabs/general_details.html index 2cd506b..26e6fec 100644 --- a/device/templates/tabs/general_details.html +++ b/device/templates/tabs/general_details.html @@ -3,9 +3,6 @@
-
- -
{% trans 'Details' %}

@@ -73,99 +70,5 @@
{% endfor %}
-
- - - - -
-
{% trans 'Current State' %} -
-
-
- - - - - - - - - - {% if device_states %} - - - - - - - {% else %} - - - - {% endif %} - -
{% trans 'State' %} - {% trans 'User' %} - {% trans 'Since' %} -
{{ device_states.0.state }} - {{ device_states.0.user.responsable_person|default:device_states.0.user.username }} - {{ device_states.0.date|timesince }} - - - {% trans 'undo' %} - - -
{% trans 'No state recorded.' %} -
-
- - - {% if last_note %} -
-
{% trans 'Note' %} -
-
{{ object.last_state.note }} -
-
- {% endif %}
- - - -{% if device_states %} - -{% endif %} diff --git a/evidence/views.py b/evidence/views.py index 56333b8..3f09428 100644 --- a/evidence/views.py +++ b/evidence/views.py @@ -141,8 +141,6 @@ class DownloadEvidenceView(DashboardView, TemplateView): return response - - class EraseServerView(DashboardView, FormView): template_name = "ev_eraseserver.html" section = "evidences"