From f78c58931ec4e8c10e6f085ee5bea9ff8d4ad58a Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Fri, 22 Oct 2021 00:03:24 +0800 Subject: Mobile view for overdue table This prevents banner and tile containers from overflowing to the left. --- jimbrella/templates/admin/index.html | 55 +++++++++++++++++++++++++----------- 1 file changed, 39 insertions(+), 16 deletions(-) (limited to 'jimbrella/templates/admin') diff --git a/jimbrella/templates/admin/index.html b/jimbrella/templates/admin/index.html index 1330e4b..940f2c2 100644 --- a/jimbrella/templates/admin/index.html +++ b/jimbrella/templates/admin/index.html @@ -17,22 +17,45 @@ {{ overdue|length }} / {{ umbrellas|length }} - - - - - - - - {% for umb in overdue %} - - - - - - - {% endfor %} -
#TenantPhoneLent
{{ umb.serial }}{{ umb.tenant_name }}{{ umb.tenant_phone }}{{ umb.lent_time_ago_str }} ago
+
+ {% if mobile %} + + {% for umb in overdue %} + + + + + + + + {% endfor %} +
#{{ umb.serial }}{{ umb.tenant_name }}
{{ umb.tenant_phone }}
{{ umb.lent_at_str }}
+ {{ umb.lent_time_ago_str }} + {% if umb.status in ["lent", "overdue"] %} ago {% endif %} +
+ {% else %} + + + + + + + + + + + {% for umb in overdue %} + + + + + + + {% endfor %} + +
#TenantPhoneLent
{{ umb.serial }}{{ umb.tenant_name }}{{ umb.tenant_phone }}{{ umb.lent_time_ago_str }} ago
+ {% endif %} +
{% endif %} -- cgit v1.2.3