summaryrefslogtreecommitdiff
path: root/jimbrella/templates
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2022-02-23 21:32:29 +0800
committerFrederick Yin <fkfd@fkfd.me>2022-02-23 21:32:29 +0800
commita8fd0531d4f795374373e13e63245ec4c58075e7 (patch)
tree6d0cbc855a681c456d5ba4979ade7f035a05cafc /jimbrella/templates
parent91efa7b65f6806963aac39eb3e6d7fd5f2b8feac (diff)
Template for /admin/logs
Diffstat (limited to 'jimbrella/templates')
-rw-r--r--jimbrella/templates/admin/logs.html40
1 files changed, 40 insertions, 0 deletions
diff --git a/jimbrella/templates/admin/logs.html b/jimbrella/templates/admin/logs.html
new file mode 100644
index 0000000..1081552
--- /dev/null
+++ b/jimbrella/templates/admin/logs.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Logs - JI Umbrella</title>
+ <link rel="stylesheet" href="/static/jimbrella.css" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ </head>
+ <body>
+ <h1>Logs</h1>
+ <div id="container">
+ {% include "admin/tabs.html" %}
+ <div class="data-table-container">
+ <table class="data">
+ <thead>
+ <tr>
+ <td>Date</td>
+ <td>Umbrella #</td>
+ <td>Action</td>
+ <td>Tenant</td>
+ <td>ID</td>
+ <td>Phone</td>
+ </tr>
+ </thead>
+ <tbody>
+ {% for log in logs %}
+ <tr class="{{ log.action }}">
+ <td>{{ log.date }}</td>
+ <td>{{ log.id }}</td>
+ <td>{{ log.action }}</td>
+ <td>{{ log.tenant_name }}</td>
+ <td>{{ log.tenant_id }}</td>
+ <td>{{ log.tenant_phone }}</td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+ </div>
+ </div>
+ </body>
+</html>