{% extends "base.html" %} {% block content %}

My Assets

Asset Dashboard
{% if allocations %} {% for a in allocations %} {% endfor %} {% else %} {% endif %}
Asset Allocated On Due Back Status Return Date Actions
{{ a.asset.asset_tag }} - {{ a.asset.name }} {{ a.allocated_on.strftime('%d-%m-%Y') if a.allocated_on else '-' }} {{ a.expected_return_date.strftime('%d-%m-%Y') if a.expected_return_date else '-' }} {{ a.status.replace('_',' ')|title }} {{ a.actual_return_date.strftime('%d-%m-%Y') if a.actual_return_date else '-' }} {# Return allowed only when allocated #} {% if a.status == 'allocated' %} {% else %} {% endif %} {# Loss / damage can be reported as long as asset exists #}
No assets allocated to you.
{% endblock %}