{% load i18n %} {% include 'filter_tags.html' %}{% load horillafilters %}
{% trans "Asset" %}
{% trans "Status" %}
{% for asset in assets %}
{{asset.asset_id.asset_name}}
{% trans "In use" %}
{% endfor %}
{% if request_field %}
{% for request_list in asset_requests %}
{{request_list.list.paginator.count}} {{request_list.grouper}}
{% trans "Request User" %}
{% trans "Asset Category" %}
{% trans "Request Date" %}
{% trans "Status" %}
{% if perms.asset.add_assetassignment %}
{% trans "Confirmation" %}
{% endif %}
{% for asset_request in request_list.list %}
{{asset_request.requested_employee_id}}
{{asset_request.asset_category_id}}
{{ asset_request.asset_request_date }}
{% trans asset_request.asset_request_status %}
{% if perms.asset.add_assetassignment %} {% if asset_request.asset_request_status == 'Requested' %}
{% csrf_token %}
{% else %} {% endif %} {% endif %}
{% endfor %}
{% if request_list.list.has_previous or request_list.list.has_next %}
{% trans "Page" %} {{ request_list.list.number }} {%trans "of" %} {{request_list.list.paginator.num_pages }}.
{% endif %}
{% endfor %} {% else %}
{% trans "Request User" %}
{% trans "Asset Category" %}
{% trans "Request Date" %}
{% trans "Status" %}
{% if perms.asset.add_assetassignment %}
{% trans "Confirmation" %}
{% endif %}
{% for asset_request in asset_requests %}
Mary Magdalene
{{asset_request.requested_employee_id}}
{{asset_request.asset_category_id}}
{{ asset_request.asset_request_date }}
{% trans asset_request.asset_request_status %}
{% if perms.asset.add_assetassignment %} {% if asset_request.asset_request_status == 'Requested' %}
{% csrf_token %}
{% else %} {% endif %} {% endif %}
{% endfor %}
{% endif %}
{% if allocation_field %}
{% for allocation_list in asset_allocations %}
{{allocation_list.list.paginator.count}} {{allocation_list.grouper}}
{% trans "Allocated User" %}
{% trans "Asset" %}
{% trans "Assigned Date" %}
{% trans "Return Date" %}
{% for asset_allocation in allocation_list.list %}
{{asset_allocation.assigned_to_employee_id}}
{{asset_allocation.asset_id}}
{{asset_allocation.assigned_date}}
{% if asset_allocation.return_date %}
{{asset_allocation.return_date}}
{% else %}
{% trans "In use" %}
{% endif %} {% if not asset_allocation.return_status %}
{% else %}
{% trans "Returned" %}
{% endif %}
{% endfor %}
{% if allocation_list.list.has_previous or allocation_list.list.has_next %}
{% trans "Page" %} {{ allocation_list.list.number }} {%trans "of" %} {{allocation_list.list.paginator.num_pages }}.
{% endif %}
{% endfor %} {% else %}
{% trans "Allocated User" %}
{% trans "Asset" %}
{% trans "Assigned Date" %}
{% trans "Return Date" %}
{% for asset_allocation in asset_allocations %}
{{asset_allocation.assigned_to_employee_id}}
{{asset_allocation.asset_id}}
{{asset_allocation.assigned_date}}
{% if asset_allocation.return_date %}
{{asset_allocation.return_date}}
{% else %}
In use
{% endif %} {% if not asset_allocation.return_status %}
{% else %}
{% trans "Returned" %}
{% endif %}
{% endfor %}
{% endif %}