经理审核 - 待审核用户列表
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>经理审核</title>
<link rel="stylesheet" href="{% static 'css/audit.css' %}">
</head>
<body>
<span style="position: relative;top: 70px;left: 0px;">{{ request.session.username }},欢迎您!</span>
<div class="lay-out">
<a href="/exper_6/pendingReview" class="nav-link managerIndex">待审核用户</a>
<a href="/exper_6/audited" class="nav-link managerIndex">已审核用户</a>
<a href="/exper_6/signOut" class="nav-link managerIndex">退出登录</a><br>
</div>
<table>
<colgroup>
<col style="width: 100px;">
<col>
<col>
</colgroup>
<tr>
<th>{{ forloop.counter }}</th>
<th>审核项目</th>
<th>是否审核</th>
<th>操作</th>
</tr>
{% if toBeReviewed %}
{% for review in toBeReviewed %}
<tr>
<th>{{ forloop.counter }}</th>
<th>{{ review.0 }}</th>
<th>{{ review.1 }}</th>
<th><a href="/exper_6/mangerAudit/{{ review.2 }}">{{ review.3 }}</a></th>
</tr>
{% endfor %}
{% endif %}
{% if not toBeReviewed %}
<tr>
<th>1</th>
<td colspan="3" style="text-align: center;">{{ notUser }}</td>
</tr>
{% endif %}
</table>
</body>
</html>
<pre><code class="language-css">/* audit.css */
.lay-out {
display: flex;
flex-direction: column;
align-items: flex-start;
}
.lay-out .nav-link {
margin-bottom: 10px;
}
table {
margin-top: 20px;
border-collapse: collapse;
width: 100%;
}
table th,
table td {
border: 1px solid black;
padding: 8px;
text-align: left;
}
table th {
background-color: #f2f2f2;
}
table tr:nth-child(even) {
background-color: #f2f2f2;
}
table tr:hover {
background-color: #ddd;
}
</code></pre>
原文地址: https://www.cveoy.top/t/topic/o4NW 著作权归作者所有。请勿转载和采集!