summaryrefslogtreecommitdiff
path: root/jimbrella/templates/admin/umbrellas_desktop.html
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2022-02-02 11:16:44 +0800
committerFrederick Yin <fkfd@fkfd.me>2022-02-02 11:16:44 +0800
commit2a5c95261c71d9c30d53053e2d0cd1c1282f6b1c (patch)
tree6f267175715b980f77ba18aa5c741d6478fc2e9a /jimbrella/templates/admin/umbrellas_desktop.html
parent357cc3d8d9f2b02e60f0763f4701bd614b876436 (diff)
Adapt jinja templates
Diffstat (limited to 'jimbrella/templates/admin/umbrellas_desktop.html')
-rw-r--r--jimbrella/templates/admin/umbrellas_desktop.html12
1 files changed, 6 insertions, 6 deletions
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 @@
</thead>
<tbody>
{% for umb in umbrellas %}
- <tr id="{{ umb.serial }}" class="{{ umb.status }}">
- {% if umb.serial == edit %}
+ <tr id="{{ umb.id }}" class="{{ umb.status }}">
+ {% if umb.id == edit %}
<form method="post" action="/admin/umbrellas/edit">
- <input name="serial" type="number" value="{{ umb.serial }}" hidden/>
- <td>{{ umb.serial }}</td>
+ <input name="id" type="number" value="{{ umb.id }}" hidden/>
+ <td>{{ umb.id }}</td>
<td>{{ status_dropdown(umb) }}</td>
<td><input name="tenant_name" value="{{ umb.tenant_name }}" class="db-edit" /></td>
<td><input name="tenant_id" type="number" value="{{ umb.tenant_id }}" class="db-edit" /></td>
@@ -32,7 +32,7 @@
</td>
</form>
{% else %}
- <td>{{ umb.serial }}</td>
+ <td>{{ umb.id }}</td>
<td>{{ umb.status }}</td>
<td>{{ umb.tenant_name }}</td>
<td>{{ umb.tenant_id }}</td>
@@ -42,7 +42,7 @@
{% if umb.status in ["lent", "overdue"] %} ago {% endif %}
</td>
<td>
- <a href="/admin/umbrellas?edit={{ umb.serial }}#{{ umb.serial }}">Edit</a>
+ <a href="/admin/umbrellas?edit={{ umb.id }}#{{ umb.id }}">Edit</a>
</td>
{% endif %}
</tr>