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.

84 lines
2.0 KiB

<!DOCTYPE html>
<html>
<head>
<title>用户管理</title>
<style>
.title1{
text-align: center;
}
table{
margin: auto;
}
.container{
text-align: center;
width: 100%;
}
.table{
border: red solid 1px;
border-collapse: collapse;
margin-top: 50px;
width: 60%;
}
.table td {
border:rgb(77, 123, 221) solid 1px;
height: 50px;
}
.table th {
border:rgb(77, 123, 221) solid 1px;
height: 50px;
background-color: rgb(117, 124, 228);
color: white;
}
.ID{
width: 100px;
}
.btn-success{
width: 120px;
height: 50px;
background-color: rgb(117, 124, 228);
border:rgb(77, 123, 221) solid 1px;
color: white;
margin-top: 50px;
}
.btn{
background-color: rgb(117, 124, 228);
border: none;
color: white;
}
.btn-primary,.btn-danger{
height: 40px;
width: 50px;
}
</style>
</head>
<body>
<div class="container">
<h2 class = "title1">用户管理</h2>
<table class="table">
<thead>
<tr>
<th class="ID">ID</th>
<th>用户名</th>
<th>邮箱</th>
<th>密码</th>
<th>操作</th>
</tr>
</thead>
<tbody>
{% for user in users %}
<tr>
<td>{{ user.id }}</td>
<td>{{ user.username }}</td>
<td>{{ user.email }}</td>
<td>**********</td>
<td>
<a href="{{ url_for('User_delete', id=user.id) }}">Delete</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<button type="button" class="btn btn-success" >add user</button>
</div>
</body>
</html>