From a8d260a0ef20e92f5ddf8bcb945cdbd0de6c501a Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Wed, 27 Oct 2021 10:07:45 +0800 Subject: Split umbrellas.html into desktop and mobile view Because the difference is friggin massive --- jimbrella/templates/admin/umbrellas_mobile.html | 62 +++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 jimbrella/templates/admin/umbrellas_mobile.html (limited to 'jimbrella/templates/admin/umbrellas_mobile.html') diff --git a/jimbrella/templates/admin/umbrellas_mobile.html b/jimbrella/templates/admin/umbrellas_mobile.html new file mode 100644 index 0000000..3c63418 --- /dev/null +++ b/jimbrella/templates/admin/umbrellas_mobile.html @@ -0,0 +1,62 @@ +{% extends "admin/umbrellas.html" %} +{% block table %} +
+ + {% for umb in umbrellas %} + {% if umb.serial == edit %} + + + + + + + + + + + + + + + + + + {% else %} + {# not edit mode #} + {% if umb.status in ["lent", "overdue"] %} + + + + + + + + + {% else %} + + + + {% endif %} + {% endif %} + {% endfor %} +
+ {{ umb.serial }}
+ {{ status_dropdown(umb) }}
+ +
+ {{ umb.lent_time_ago_str }} + {% if umb.status in ["lent", "overdue"] %} ago {% endif %} +
+ {{ umb.serial }}
+ {{ umb.status }}
+ Edit +
{{ 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 }}
+ Edit +
+
+{% endblock %} -- cgit v1.2.3