From ccef2ce14d14da2ccfcfa74778b8ec1e2a3839f3 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Sun, 6 Feb 2022 16:44:45 +0800 Subject: Adapt frontend to new AdminLog --- jimbrella/static/jimbrella.css | 2 +- jimbrella/templates/admin/admin_logs.html | 52 +++++++++++++++++++++++++++++++ jimbrella/templates/admin/logs.html | 34 -------------------- 3 files changed, 53 insertions(+), 35 deletions(-) create mode 100644 jimbrella/templates/admin/admin_logs.html delete mode 100644 jimbrella/templates/admin/logs.html (limited to 'jimbrella') diff --git a/jimbrella/static/jimbrella.css b/jimbrella/static/jimbrella.css index 056e0b4..2c6987b 100644 --- a/jimbrella/static/jimbrella.css +++ b/jimbrella/static/jimbrella.css @@ -76,7 +76,7 @@ input.db-edit { background-color: #d3e99f; } -.admin_modify_db, .yellow { +.yellow { background-color: #e8e89d; } diff --git a/jimbrella/templates/admin/admin_logs.html b/jimbrella/templates/admin/admin_logs.html new file mode 100644 index 0000000..8d31e88 --- /dev/null +++ b/jimbrella/templates/admin/admin_logs.html @@ -0,0 +1,52 @@ + + + + JI Umbrella + + + + +

JI Umbrella Logs

+
+ {% include "admin/tabs.html" %} +
+ + + + + + + + + + + + + + + {% for log in logs %} + + + + + + + + + + + + + + + + + + + {% endfor %} + +
DateAdminUmbrella #StatusTenantIDPhoneLent atNote
{{ log.date }}{{ log.actor }}{{ log.id }}{{ log.status_a }}{{ log.tenant_name_a }}{{ log.tenant_id_a }}{{ log.tenant_phone_a }}{{ log.lent_at_a }}{{ log.note }}
{{ log.status_b }}{{ log.tenant_name_b }}{{ log.tenant_id_b }}{{ log.tenant_phone_b }}{{ log.lent_at_b }}
+
+
+ + diff --git a/jimbrella/templates/admin/logs.html b/jimbrella/templates/admin/logs.html deleted file mode 100644 index f4f57c0..0000000 --- a/jimbrella/templates/admin/logs.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - JI Umbrella - - - - -

JI Umbrella Logs

-
- {% include "admin/tabs.html" %} -
- - - - - - - - - - {% for log in logs|reverse %} - - - - - - {% endfor %} - -
DateEventNote
{{ log.date_str }}{{ log.description }}{{ log.note }}
-
-
- - -- cgit v1.2.3