{% extends 'layouts/main-layout.html' %} {% block content %}

资产

{% if perms.authentication.add_asset %}
添加资产
{% endif %}
{% if page_object %}
{% endif %} {% if perms.authentication.edit_asset or perms.authentication.view_asset or perms.authentication.delete_asset %} {% endif %} {% if page_object %} {% for asset in page_object %} {% endfor %} {% else %} {% endif %}
序号 资产名称 序列号 产品类型 产品 供应商 当前状态 状态操作
{{page_object.start_index|add:forloop.counter0}} {{asset.name}} {{asset.serial_no}} {{asset.product.product_type}} {{asset.product}} {% if asset.product.is_deleted %} {% endif %} {{asset.vendor}} {% if asset.vendor.is_deleted %} {% endif %} {% if asset.is_assigned %} In Use {% else %} In Store {% endif %} {% if request.user.is_superuser %}
{% else %} {% if products.status %} Active {% else %} Inactive {% endif %} {% endif %}
{% if perms.authentication.view_asset %} {% endif %} {% if perms.authentication.edit_asset %} {% endif %} {% if perms.authentication.delete_asset %}
{% csrf_token %}
{% endif %}
{% include 'commons/pagination.html' %}
{% endblock content%}