From abcde5044ee86b4232b30736634db2368564d5a0 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Thu, 21 Oct 2021 00:21:12 +0800 Subject: Mobile view for /admin/umbrellas --- jimbrella/templates/admin/umbrellas.html | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'jimbrella/templates') diff --git a/jimbrella/templates/admin/umbrellas.html b/jimbrella/templates/admin/umbrellas.html index 56a5dde..6bb4af5 100644 --- a/jimbrella/templates/admin/umbrellas.html +++ b/jimbrella/templates/admin/umbrellas.html @@ -9,6 +9,31 @@

All Umbrellas

{% include "admin/tabs.html" %} + {% if mobile %} +
+ + {% for umb in umbrellas %} + {% if umb.status in ["lent", "overdue"] %} + + + + + + + + + {% else %} + + + + {% endif %} + {% endfor %} +
{{ umb.serial }}
{{ umb.status }}
{{ umb.tenant_name }}
{{ umb.tenant_id }}
{{ umb.tenant_phone }}
{{ umb.lent_at_str }}
+ {{ umb.lent_time_ago_str }} + {% if umb.status in ["lent", "overdue"] %} ago {% endif %} +
{{ umb.serial }}
{{ umb.status }}
+
+ {% else %}
@@ -38,6 +63,7 @@
+ {% endif %}
-- cgit v1.2.3