summaryrefslogtreecommitdiff
path: root/jimbrella/templates/admin/umbrellas.html
diff options
context:
space:
mode:
Diffstat (limited to 'jimbrella/templates/admin/umbrellas.html')
-rw-r--r--jimbrella/templates/admin/umbrellas.html57
1 files changed, 30 insertions, 27 deletions
diff --git a/jimbrella/templates/admin/umbrellas.html b/jimbrella/templates/admin/umbrellas.html
index c64111e..56a5dde 100644
--- a/jimbrella/templates/admin/umbrellas.html
+++ b/jimbrella/templates/admin/umbrellas.html
@@ -8,33 +8,36 @@
<body>
<h1>All Umbrellas</h1>
<div id="container">
- <table class="data">
- <thead>
- <tr>
- <th>#</th>
- <th>Status</th>
- <th>Tenant</th>
- <th>ID</th>
- <th>Phone</th>
- <th colspan=2>Lent at</th>
- </tr>
- </thead>
- <tbody>
- {% for umb in umbrellas %}
- <tr class="{{ umb.status }}">
- <td>{{ umb.serial }}</td>
- <td>{{ umb.status }}</td>
- <td>{{ umb.tenant_name }}</td>
- <td>{{ umb.tenant_id }}</td>
- <td>{{ umb.tenant_phone }}</td>
- <td>{{ umb.lent_at_str }}</td>
- <td>{{ umb.lent_time_ago_str }}
- {% if umb.status == "lent" %} ago {% endif %}
- </td>
- </tr>
- {% endfor %}
- </tbody>
- </table>
+ {% include "admin/tabs.html" %}
+ <div class="data-table-container">
+ <table class="data">
+ <thead>
+ <tr>
+ <th>#</th>
+ <th>Status</th>
+ <th>Tenant</th>
+ <th>ID</th>
+ <th>Phone</th>
+ <th colspan=2>Lent at</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for umb in umbrellas %}
+ <tr class="{{ umb.status }}">
+ <td>{{ umb.serial }}</td>
+ <td>{{ umb.status }}</td>
+ <td>{{ umb.tenant_name }}</td>
+ <td>{{ umb.tenant_id }}</td>
+ <td>{{ umb.tenant_phone }}</td>
+ <td>{{ umb.lent_at_str }}</td>
+ <td>{{ umb.lent_time_ago_str }}
+ {% if umb.status in ["lent", "overdue"] %} ago {% endif %}
+ </td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+ </div>
</div>
</body>
</html>