feat: 初始版本,圆角主题与首次管理员引导
This commit is contained in:
24
app/templates/admin/reviews_submissions.html
Normal file
24
app/templates/admin/reviews_submissions.html
Normal file
@@ -0,0 +1,24 @@
|
||||
{% extends 'base.html' %}
|
||||
{% block title %}投稿审核{% endblock %}
|
||||
{% block content %}
|
||||
<h3>投稿审核</h3>
|
||||
<table class="table">
|
||||
<tr><th>活动</th><th>用户</th><th>操作</th></tr>
|
||||
{% for s in submissions %}
|
||||
<tr>
|
||||
<td>{{ s.activity.title }}</td>
|
||||
<td>{{ s.user_id }}</td>
|
||||
<td>
|
||||
<form method="post" action="{{ url_for('admin.approve_submission', sub_id=s.id) }}" style="display:inline">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token }}">
|
||||
<button class="btn btn-success">通过</button>
|
||||
</form>
|
||||
<form method="post" action="{{ url_for('admin.reject_submission', sub_id=s.id) }}" style="display:inline">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token }}">
|
||||
<button class="btn btn-danger">拒绝</button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user