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

产品类别

{% if perms.authentication.add_product_category %}
{% endif %}
{% if page_object %}
{% endif %}
{% if perms.authentication.edit_product_category or perms.authentication.delete_product_category %} {% endif %} {% if page_object %} {% for products in page_object %} {% endfor %} {% else %} {% endif %}
序号 类别名称 状态操作
{{page_object.start_index|add:forloop.counter0}} {{products.name}} {% if request.user.is_superuser %}
{% else %} {% if products.status %} Active {% else %} Inactive {% endif %} {% endif %}
{% if request.user.is_superuser %} {% endif %} {% if perms.authentication.edit_product_category %} {% endif%} {% if perms.authentication.delete_product_category %}
{% csrf_token %}
{% endif %}
{% include 'commons/pagination.html' %}
{% endblock content%}