Files
pt_blacklist/app/templates/admin/pending_users.html
DengDai aa516a8d71 init
2025-11-24 10:10:00 +08:00

50 lines
2.1 KiB
HTML

{% extends "base.html" %}
{% block title %}管理后台 - 用户审核{% endblock %}
{% block content %}
<div class="card shadow-sm">
<div class="card-header">
<h2 class="mb-0">待审核用户列表</h2>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-hover align-middle">
<thead class="table-light">
<tr>
<th>用户名</th>
<th>邮箱</th>
<th>所在站点</th>
<th>UID</th>
<th>申请时间</th>
<th>操作</th>
</tr>
</thead>
<tbody>
{% for user in users %}
<tr>
<td>{{ user.username }}</td>
<td>{{ user.email }}</td>
<td>{{ user.pt_site }}</td>
<td>{{ user.uid }}</td>
<td>{{ user.created_at.strftime('%Y-%m-%d %H:%M') }}</td>
<td>
<form action="{{ url_for('main.approve_user', user_id=user.id) }}" method="POST" class="d-inline">
<button type="submit" class="btn btn-sm btn-success">批准</button>
</form>
<form action="{{ url_for('main.reject_user', user_id=user.id) }}" method="POST" class="d-inline">
<button type="submit" class="btn btn-sm btn-danger" onclick="return confirm('确定要拒绝并删除该用户吗?');">拒绝</button>
</form>
</td>
</tr>
{% else %}
<tr>
<td colspan="6" class="text-center text-muted">目前没有待审核的用户。</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% endblock %}