summaryrefslogtreecommitdiff
path: root/jimbrella
diff options
context:
space:
mode:
Diffstat (limited to 'jimbrella')
-rw-r--r--jimbrella/static/jimbrella.css4
-rw-r--r--jimbrella/templates/admin/logs.html40
2 files changed, 42 insertions, 2 deletions
diff --git a/jimbrella/static/jimbrella.css b/jimbrella/static/jimbrella.css
index 57d7c80..9a06502 100644
--- a/jimbrella/static/jimbrella.css
+++ b/jimbrella/static/jimbrella.css
@@ -72,11 +72,11 @@ input.db-edit {
background-color: #e99fd3;
}
-.lent, .takeaway, .blue {
+.lent, .takeaway, .borrow, .blue {
background-color: #9fd3e9;
}
-.available, .giveback, .green {
+.available, .giveback, .return, .green {
background-color: #d3e99f;
}
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>