From bad6b0a8d24392f1a8c4b45e2dd06ec84719f456 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Wed, 2 Feb 2022 23:23:45 +0800 Subject: Frontend lent_at UX enhancements --- jimbrella/templates/admin/umbrellas_desktop.html | 12 ++++-------- jimbrella/templates/admin/umbrellas_mobile.html | 13 ++++--------- 2 files changed, 8 insertions(+), 17 deletions(-) (limited to 'jimbrella') diff --git a/jimbrella/templates/admin/umbrellas_desktop.html b/jimbrella/templates/admin/umbrellas_desktop.html index 8b78e64..315f427 100644 --- a/jimbrella/templates/admin/umbrellas_desktop.html +++ b/jimbrella/templates/admin/umbrellas_desktop.html @@ -23,10 +23,8 @@ - - {{ umb.lent_time_ago_str }} - {% if umb.status in ["lent", "overdue"] %} ago {% endif %} - + + @@ -37,10 +35,8 @@ {{ 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.lent_at }} + {{ umb.lent_time_ago }} Edit diff --git a/jimbrella/templates/admin/umbrellas_mobile.html b/jimbrella/templates/admin/umbrellas_mobile.html index 705722f..441ce17 100644 --- a/jimbrella/templates/admin/umbrellas_mobile.html +++ b/jimbrella/templates/admin/umbrellas_mobile.html @@ -7,7 +7,7 @@
- + {{ umb.id }}
{{ status_dropdown(umb) }}
@@ -21,12 +21,8 @@ - + - - {{ umb.lent_time_ago_str }} - {% if umb.status in ["lent", "overdue"] %} ago {% endif %} -
{% else %} {# not edit mode #} @@ -41,10 +37,9 @@ {{ umb.tenant_id }} {{ umb.tenant_phone }} - {{ umb.lent_at_str }} + {{ umb.lent_at }} - {{ umb.lent_time_ago_str }} - {% if umb.status in ["lent", "overdue"] %} ago {% endif %} + {{ umb.lent_time_ago }} {% else %} -- cgit v1.2.3