diff options
Diffstat (limited to 'jimbrella/templates/admin/umbrellas_desktop.html')
-rw-r--r-- | jimbrella/templates/admin/umbrellas_desktop.html | 12 |
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> |