From cb5616c81f6c18c2f486bfcc074f1e547b7a66d0 Mon Sep 17 00:00:00 2001 From: Wes Holland Date: Fri, 31 Jan 2025 08:11:41 -0600 Subject: [PATCH] Cleanup audit page somewhat --- templates/history.html | 34 +++++++++---------- templates/history_item_fragment.html | 49 ++++++++++++++++------------ templates/main.html | 4 +-- 3 files changed, 48 insertions(+), 39 deletions(-) diff --git a/templates/history.html b/templates/history.html index 443a40e..1fac80e 100644 --- a/templates/history.html +++ b/templates/history.html @@ -1,63 +1,63 @@ {% extends "main.html" %} {% block title %} Audit Log {% endblock %} {% block content %} -

Audit Log (Coming soon)

+

Audit Log (Coming soon)

-
+
-
-
- +
+
+
-
- +
+ - Timezone {{ time_zone }} + Timezone {{ time_zone }}
-
- +
+
-
+
- Timezone {{ time_zone }} + Timezone {{ time_zone }}
-
+
{% include "history_item_fragment.html" %}
diff --git a/templates/history_item_fragment.html b/templates/history_item_fragment.html index d771160..4597f5c 100644 --- a/templates/history_item_fragment.html +++ b/templates/history_item_fragment.html @@ -1,20 +1,29 @@ -
-
    - {% for item in items %} -
  • -
    -

    {{ item.create_date }}

    -

    {{ item.item_name }}

    -

    {{ item.user_name }}

    -

    - {% match item.item_type %} {% when - HistoryItemEntry::PositiveAdjustment with (entry) %} {{ entry.amount - }} @ {{ entry.unit_value }} {% when - HistoryItemEntry::NegativeAdjustment with (entry) %} {{ entry.amount - }} {{ entry.reason }} {% endmatch %} -

    -
    -
  • - {% endfor %} -
-
+ + + + + + + + + + + {% for item in items %} + + + + + + + {% endfor %} + + +
DateItemUserDesc
{{ item.create_date }}{{ item.item_name }}{{ item.user_name }} + {% match item.item_type %} + {% when HistoryItemEntry::PositiveAdjustment with (entry) %} + {{ entry.amount }} @ {{ entry.unit_value }} + {% when HistoryItemEntry::NegativeAdjustment with (entry) %} + {{ entry.amount }} {{ entry.reason }} + {% endmatch %} +
+ diff --git a/templates/main.html b/templates/main.html index bf90441..0037871 100644 --- a/templates/main.html +++ b/templates/main.html @@ -18,7 +18,7 @@ -
+
{% block content %}

Content Missing