summaryrefslogtreecommitdiff
path: root/jimbrella/templates/admin/umbrellas_mobile.html
diff options
context:
space:
mode:
Diffstat (limited to 'jimbrella/templates/admin/umbrellas_mobile.html')
-rw-r--r--jimbrella/templates/admin/umbrellas_mobile.html13
1 files changed, 4 insertions, 9 deletions
diff --git a/jimbrella/templates/admin/umbrellas_mobile.html b/jimbrella/templates/admin/umbrellas_mobile.html
index 705722f..441ce17 100644
--- a/jimbrella/templates/admin/umbrellas_mobile.html
+++ b/jimbrella/templates/admin/umbrellas_mobile.html
@@ -7,7 +7,7 @@
<form method="post" action="/admin/umbrellas/edit">
<input name="id" type="number" value="{{ umb.id }}" hidden />
<tr id="{{ umb.id }}" class="{{ umb.status }}">
- <th rowspan=5>
+ <th rowspan=4>
{{ umb.id }} <br />
{{ status_dropdown(umb) }} <br />
<input type="submit" value="Submit" />
@@ -21,12 +21,8 @@
<td><input name="tenant_phone" type="tel" value="{{ umb.tenant_phone }}" /></td>
</tr>
<tr class="{{ umb.status }}">
- <td><input name="lent_at" type="datetime-local" value="{{ umb.lent_at_str }}" /></td>
+ <td><input name="lent_at" type="datetime-local" value="{{ umb.lent_at }}" /></td>
</tr>
- <tr class="{{ umb.status }}"><td>
- {{ umb.lent_time_ago_str }}
- {% if umb.status in ["lent", "overdue"] %} ago {% endif %}
- </td></tr>
</form>
{% else %}
{# not edit mode #}
@@ -41,10 +37,9 @@
</tr>
<tr class="{{ umb.status }}"><td>{{ umb.tenant_id }}</td></tr>
<tr class="{{ umb.status }}"><td>{{ umb.tenant_phone }}</td></tr>
- <tr class="{{ umb.status }}"><td>{{ umb.lent_at_str }}</td></tr>
+ <tr class="{{ umb.status }}"><td>{{ umb.lent_at }}</td></tr>
<tr class="{{ umb.status }}"><td>
- {{ umb.lent_time_ago_str }}
- {% if umb.status in ["lent", "overdue"] %} ago {% endif %}
+ {{ umb.lent_time_ago }}
</td></tr>
{% else %}
<tr id="{{ umb.id }}" class="{{ umb.status }}">