From 49f9df9b774b48ceef6f3a99f7a6f4912730dc5f Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Tue, 13 Feb 2018 21:40:48 -0500 Subject: Add logging for Invoices, User Invoice Number, and Identity. Added template to show audit logs as well as a view --- app/dispatch/templates/dispatch/log/summary.html | 74 ++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 app/dispatch/templates/dispatch/log/summary.html (limited to 'app/dispatch/templates') diff --git a/app/dispatch/templates/dispatch/log/summary.html b/app/dispatch/templates/dispatch/log/summary.html new file mode 100644 index 0000000..37e7d13 --- /dev/null +++ b/app/dispatch/templates/dispatch/log/summary.html @@ -0,0 +1,74 @@ +{% extends 'dispatch/base.html' %} + +{% block title %}Recent User Activities{% endblock %} + +{% block content %} +
+
+

Recent User Activities

+
+
+ +{% load dynamic_key %} + + + + +
+
+ +
    + {% for h in object_list %} + {% if h.actor is not None %} +
  • +
    + +
    + Change By: {{h.actor}} +
    + +
    + Date: {{h.timestamp}} +
    + +
    + Model: {{h.content_type.model}} +
    + +
    + Action: + {% if h.action == h.Action.CREATE %} + Create + {% elif h.action == h.Action.UPDATE %} + Update + {% elif h.action == h.Action.DELETE %} + Delete + {% endif %} +
    +
    +
    + + + + + + + + {% for field, changes in h.changes_dict.items %} + + + + + + {% endfor %} + +
    FieldFromTo
    {{field}}{{changes|getindex:0}}{{changes|getindex:1}}
    +
    +
  • + {% endif %} + {% endfor %} +
+
+
+ +{% endblock %} -- cgit v1.2.3