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_desktop.html | 12 ++++++------ jimbrella/templates/admin/umbrellas_mobile.html | 20 ++++++++++---------- 2 files changed, 16 insertions(+), 16 deletions(-) (limited to 'jimbrella') diff --git a/jimbrella/templates/admin/umbrellas_desktop.html b/jimbrella/templates/admin/umbrellas_desktop.html index c8b0044..8b78e64 100644 --- a/jimbrella/templates/admin/umbrellas_desktop.html +++ b/jimbrella/templates/admin/umbrellas_desktop.html @@ -14,11 +14,11 @@ {% for umb in umbrellas %} - - {% if umb.serial == edit %} + + {% if umb.id == edit %}
- - {{ umb.serial }} + + {{ umb.id }} {{ status_dropdown(umb) }} @@ -32,7 +32,7 @@
{% else %} - {{ umb.serial }} + {{ umb.id }} {{ umb.status }} {{ umb.tenant_name }} {{ umb.tenant_id }} @@ -42,7 +42,7 @@ {% if umb.status in ["lent", "overdue"] %} ago {% endif %} - Edit + Edit {% endif %} 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