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

Asset Master

{% if assets %} {% for a in assets %} {% endfor %} {% else %} {% endif %}
Tag Name Category Vendor Serial Status Holder Purchase Actions
{{ a.asset_tag }} {{ a.name }} {{ a.category.name if a.category else '-' }} {{ a.vendor.name if a.vendor else '-' }} {{ a.serial_number or '-' }} {{ a.status.replace('_',' ')|title }} {% if a.current_holder %} {{ a.current_holder.employee_code }} - {{ a.current_holder.full_name }} {% else %} - {% endif %} {% if a.purchase_date %} {{ a.purchase_date.strftime('%d-%m-%Y') }} {% else %}-{% endif %} {% set hard_block_status = ['lost', 'damaged', 'retired'] %} {% set soft_block = a.id in blocked_for_allocation %} {% if a.status not in hard_block_status and not soft_block %} {% else %} {% endif %}
No assets found.
{% endblock %}