{% extends "dashboard_base.html" %} {% block dashboard_content %}

用户管理

添加新用户
{% for user in users %} {% else %} {% endfor %}
ID 用户名 邮箱 角色 状态 操作
{{ user.id }}
{{ user.username }}
{{ user.email }}
{{ user.email }} {% if user.role == 'admin' %} 管理员 (旧) {% else %} 普通用户 (旧) {% endif %}
{% for role in user.roles %} {{ role.name }} {% endfor %}
{% if user.is_active_account %} 启用 {% else %} 禁用 {% endif %}
暂无用户数据
{% endblock %}