{% extends 'layouts/main-layout.html' %} {% block content %}
| 序号 | 产品图片 | 产品名称 | 产品类型 | 产品类别 | 状态 | {% if perms.authentication.delete_product or perms.authentication.view_product or perms.authentication.edit_product %}操作 | {% endif %}
|---|---|---|---|---|---|---|
| {{page_object.start_index|add:forloop.counter0}} | {% if products.product_picture %} |
{{products.name}} | {{products.product_type}} {% if products.product_type.is_deleted %} {% endif %} | {{products.product_category}} {% if products.product_category.is_deleted %} {% endif %} |
{% if request.user.is_superuser %}
|