You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
790 B
33 lines
790 B
1 year ago
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<title>UserIndex</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
欢迎{{ request.user }}来到商场系统!
|
||
|
<a href="{% url 'user_manager_logout' %}">退出登录</a>
|
||
|
<br>
|
||
|
用户信息列表
|
||
|
<table border="1px">
|
||
|
<tr>
|
||
|
<td>账号</td>
|
||
|
<td>用户名</td>
|
||
|
<td>email</td>
|
||
|
<td>操作</td>
|
||
|
</tr>
|
||
|
{% for user in users %}
|
||
|
<tr>
|
||
|
<td>{{ user.username }}</td>
|
||
|
<td>{{ user.first_name }} {{ user.last_name }}</td>
|
||
|
<td>{{ user.email }}</td>
|
||
|
|
||
|
<td><a href="{% url 'user_manager_edit' %}">修改</a></td>
|
||
|
{% if perms.myuser.delete_myuser %}
|
||
|
<td>删除</td>
|
||
|
{% endif %}
|
||
|
</tr>
|
||
|
{% endfor %}
|
||
|
</table>
|
||
|
</body>
|
||
|
</html>
|