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

My Assets

Asset Dashboard
{% if allocations %} {% for a in allocations %} {% set qty = a.quantity or 1 %} {% set total = a.asset.quantity_total or 1 %} {% set avail = a.asset.quantity_available if a.asset.quantity_available is not none else total %} {% endfor %} {% else %} {% endif %}
Asset Allocated On Qty Due Back Status Return Date Actions
{{ a.asset.asset_tag }} - {{ a.asset.name }}
Stock: {{ total }}/{{ avail }}
{{ a.allocated_on.strftime('%d-%m-%Y') if a.allocated_on else '-' }} {{ qty }} {{ 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 '-' }} {% if a.status == 'allocated' %} {% else %} {% endif %}
No assets allocated to you.
{% endblock %}