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

产品类型

{% if perms.authentication.add_product_type %}
{% endif %}
{% if page_object %}
{% endif %}
{% if perms.authentication.edit_product_type or perms.authentication.delete_product_type %} {% 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_type %} {% endif %} {% if perms.authentication.delete_product_type %}
{% csrf_token %}
{% endif %}
{% include 'commons/pagination.html' %}
{% endblock content%}