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

Asset Allocations

{% if allocations %} {% for a in allocations %} {% endfor %} {% else %} {% endif %}
Asset Employee Allocated On Due Back Returned On Status Actions
{{ a.asset.asset_tag }} - {{ a.asset.name }} {{ a.employee.employee_code }} - {{ a.employee.full_name }} {{ a.allocated_on.strftime('%d-%m-%Y') if a.allocated_on else '-' }} {{ a.due_back_on.strftime('%d-%m-%Y') if a.due_back_on else '-' }} {% if a.actual_return_date %} {{ a.actual_return_date.strftime('%d-%m-%Y') }} {% else %} - {% endif %} {% if a.status == 'allocated' %} Allocated {% else %} Returned {% endif %} {% if a.status == 'allocated' %}
{% else %} - {% endif %}
No allocations found.
{% endblock %}