{% macro status_dropdown(umb) -%} {# A dropdown for umbrella status #} {%- endmacro %} JI Umbrella

All Umbrellas

{% include "admin/tabs.html" %} {% if mobile %}
{% for umb in umbrellas %} {% if umb.serial == edit %} {% else %} {# not edit mode #} {% if umb.status in ["lent", "overdue"] %} {% else %} {% endif %} {% endif %} {% endfor %}
{{ umb.serial }}
{{ status_dropdown(umb) }}
{{ umb.lent_time_ago_str }} {% if umb.status in ["lent", "overdue"] %} ago {% endif %}
{{ umb.serial }}
{{ umb.status }}
Edit
{{ umb.tenant_name }}
{{ umb.tenant_id }}
{{ umb.tenant_phone }}
{{ umb.lent_at_str }}
{{ umb.lent_time_ago_str }} {% if umb.status in ["lent", "overdue"] %} ago {% endif %}
{{ umb.serial }}
{{ umb.status }}
Edit
{% else %} {# not mobile #}
{% for umb in umbrellas %} {% if umb.serial == edit %} {% else %} {% endif %} {% endfor %}
# Status Tenant ID Phone Lent at
{{ umb.serial }} {{ status_dropdown(umb) }} {{ umb.lent_time_ago_str }} {% if umb.status in ["lent", "overdue"] %} ago {% endif %} {{ umb.serial }} {{ umb.status }} {{ umb.tenant_name }} {{ umb.tenant_id }} {{ umb.tenant_phone }} {{ umb.lent_at_str }} {{ umb.lent_time_ago_str }} {% if umb.status in ["lent", "overdue"] %} ago {% endif %} Edit
{% endif %}