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.html | 114 +------------------------------ 1 file changed, 1 insertion(+), 113 deletions(-) (limited to 'jimbrella/templates/admin/umbrellas.html') diff --git a/jimbrella/templates/admin/umbrellas.html b/jimbrella/templates/admin/umbrellas.html index 3a1455e..09b329a 100644 --- a/jimbrella/templates/admin/umbrellas.html +++ b/jimbrella/templates/admin/umbrellas.html @@ -23,119 +23,7 @@

All Umbrellas

{% include "admin/tabs.html" %} - {% if mobile %} -
- - {% 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 -
-
- {% else %} - {# not mobile #} -
- - - - - - - - - - - - - {% for umb in umbrellas %} - - {% if umb.serial == edit %} - - - - - - - - - - - - {% else %} - - - - - - - - - {% endif %} - - {% endfor %} - -
#StatusTenantIDPhoneLent at
{{ umb.serial }}{{ status_dropdown(umb) }}{{ umb.lent_time_ago_str }} - {% if umb.status in ["lent", "overdue"] %} ago {% endif %} - - - {{ 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 %} - - Edit -
-
- {% endif %} + {% block table %}{% endblock %}
-- cgit v1.2.3