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

部门

{% if perms.authentication.add_department %}
{% endif %}
{% if page_object %}
{% endif %} {% if perms.authentication.edit_department or perms.authentication.delete_department %} {% endif %} {% if page_object %} {% for department in page_object %} {% endfor %} {% else %} {% endif %}
序号 部门名称 联系人姓名 联系人邮箱 联系人电话 状态操作
{{page_object.start_index|add:forloop.counter0}} {{department.name}} {{department.contact_person_name}} {{department.contact_person_email}} {{department.contact_person_phone}} {% if request.user.is_superuser %}
{% else %} {% if department.status %} Active {% else %} Inactive {% endif %} {% endif %}
{% if request.user.is_superuser %} {% endif %} {% if perms.authentication.edit_department %} {% endif %} {% if perms.authentication.delete_department %}
{% csrf_token %}
{% endif %}
{% include 'commons/pagination.html' %}
{% endblock content%}