From 2a5c95261c71d9c30d53053e2d0cd1c1282f6b1c Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Wed, 2 Feb 2022 11:16:44 +0800 Subject: Adapt jinja templates --- jimbrella/templates/admin/umbrellas_mobile.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'jimbrella/templates/admin/umbrellas_mobile.html') diff --git a/jimbrella/templates/admin/umbrellas_mobile.html b/jimbrella/templates/admin/umbrellas_mobile.html index 3c63418..705722f 100644 --- a/jimbrella/templates/admin/umbrellas_mobile.html +++ b/jimbrella/templates/admin/umbrellas_mobile.html @@ -3,12 +3,12 @@
{% for umb in umbrellas %} - {% if umb.serial == edit %} + {% if umb.id == edit %} - - + + @@ -31,11 +31,11 @@ {% else %} {# not edit mode #} {% if umb.status in ["lent", "overdue"] %} - + @@ -47,11 +47,11 @@ {% if umb.status in ["lent", "overdue"] %} ago {% endif %} {% else %} - + {% endif %} -- cgit v1.2.3
- {{ umb.serial }}
+ {{ umb.id }}
{{ status_dropdown(umb) }}
- {{ umb.serial }}
+ {{ umb.id }}
{{ umb.status }}
- Edit + Edit
{{ umb.tenant_name }}
- {{ umb.serial }}
+ {{ umb.id }}
{{ umb.status }}
- Edit + Edit