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

用户

{% if perms.authentication.add_users %}
{% endif %}
{% if page_object %}
{% if request.user.is_superuser %} {% endif %}
{% endif %} {% if request.user.is_superuser %} {% endif %} {% if perms.authentication.delete_users or perms.authentication.view_users or perms.authentication.edit_users %} {% endif %} {% if page_object %} {% for user in page_object %} {% if request.user.is_superuser %} {% endif %} {% endfor %} {% else %} {% endif %}
序号 头像 姓名 邮箱 访问级别 最后登录 状态操作操作
{{page_object.start_index|add:forloop.counter0}}
{% if user.profile_pic %} {% else %} {% endif %}
{{user.full_name | title}} {{user.email}} {{user.role}} {% if user.access_level %} All {% else %} Only Assigned {% endif %} {{user.last_login}}
{% if perms.authentication.view_users %} {% endif %} {% if perms.authentication.edit_users %} {% endif %} {% if perms.authentication.delete_users %}
{% csrf_token %}
{% endif %}
{% include 'commons/pagination.html' %}
{% endblock content %}