diff options
author | Frederick Yin <fkfd@fkfd.me> | 2021-10-20 17:10:19 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@fkfd.me> | 2021-10-20 17:10:19 +0800 |
commit | f53b65c14a92562309ced75a24371b577f9d8ef1 (patch) | |
tree | 083d00c7a36c40efc832035e7bf9d10454db713b /jimbrella/templates/admin/umbrellas.html | |
parent | a2c80e9a02430be73962f4ca83b49e5f80fd3594 (diff) |
Frontend updates
I forgot what I exactly did
Diffstat (limited to 'jimbrella/templates/admin/umbrellas.html')
-rw-r--r-- | jimbrella/templates/admin/umbrellas.html | 57 |
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> |