diff options
author | Frederick Yin <fkfd@fkfd.me> | 2022-02-23 21:32:29 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@fkfd.me> | 2022-02-23 21:32:29 +0800 |
commit | a8fd0531d4f795374373e13e63245ec4c58075e7 (patch) | |
tree | 6d0cbc855a681c456d5ba4979ade7f035a05cafc | |
parent | 91efa7b65f6806963aac39eb3e6d7fd5f2b8feac (diff) |
Template for /admin/logs
-rw-r--r-- | jimbrella/static/jimbrella.css | 4 | ||||
-rw-r--r-- | jimbrella/templates/admin/logs.html | 40 |
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> |