summaryrefslogtreecommitdiff
path: root/jimbrella
diff options
context:
space:
mode:
Diffstat (limited to 'jimbrella')
-rw-r--r--jimbrella/templates/admin/umbrellas.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/jimbrella/templates/admin/umbrellas.html b/jimbrella/templates/admin/umbrellas.html
index 8c92b4d..3a1455e 100644
--- a/jimbrella/templates/admin/umbrellas.html
+++ b/jimbrella/templates/admin/umbrellas.html
@@ -30,7 +30,7 @@
{% if umb.serial == edit %}
<form method="post" action="/admin/umbrellas/edit">
<input name="serial" type="number" value="{{ umb.serial }}" hidden />
- <tr class="{{ umb.status }}">
+ <tr id="{{ umb.serial }}" class="{{ umb.status }}">
<th rowspan=5>
{{ umb.serial }} <br />
{{ status_dropdown(umb) }} <br />
@@ -55,7 +55,7 @@
{% else %}
{# not edit mode #}
{% if umb.status in ["lent", "overdue"] %}
- <tr class="{{ umb.status }}">
+ <tr id="{{ umb.serial }}" class="{{ umb.status }}">
<th rowspan=5>
{{ umb.serial }} <br />
{{ umb.status }} <br />
@@ -71,11 +71,11 @@
{% if umb.status in ["lent", "overdue"] %} ago {% endif %}
</td></tr>
{% else %}
- <tr class="{{ umb.status }}">
+ <tr id="{{ umb.serial }}" class="{{ umb.status }}">
<th colspan=2>
{{ umb.serial }} <br />
{{ umb.status }} <br />
- <a href="/admin/umbrellas?edit={{ umb.serial }}">Edit</a>
+ <a href="/admin/umbrellas?edit={{ umb.serial }}#{{ umb.serial }}">Edit</a>
</th>
</tr>
{% endif %}
@@ -99,7 +99,7 @@
</thead>
<tbody>
{% for umb in umbrellas %}
- <tr class="{{ umb.status }}">
+ <tr id="{{ umb.serial }}" class="{{ umb.status }}">
{% if umb.serial == edit %}
<form method="post" action="/admin/umbrellas/edit">
<input name="serial" type="number" value="{{ umb.serial }}" hidden/>
@@ -127,7 +127,7 @@
{% if umb.status in ["lent", "overdue"] %} ago {% endif %}
</td>
<td>
- <a href="/admin/umbrellas?edit={{ umb.serial }}">Edit</a>
+ <a href="/admin/umbrellas?edit={{ umb.serial }}#{{ umb.serial }}">Edit</a>
</td>
{% endif %}
</tr>