parent
b2ffd74286
commit
65d0e96e3e
@ -0,0 +1,53 @@
|
|||||||
|
{% extends 'layout/settings.html' %}
|
||||||
|
{% from '_includes.html' import render_pagination with context %}
|
||||||
|
{% from "_formhelpers.html" import errors %}
|
||||||
|
|
||||||
|
{% block setting_content %}
|
||||||
|
<section class="management_table manage_posts">
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>ID</th>
|
||||||
|
<th>MD5</th>
|
||||||
|
<th>Rating</th>
|
||||||
|
<th>Status</th>
|
||||||
|
<th>Source</th>
|
||||||
|
<th>Original Filename</th>
|
||||||
|
<th>Manage</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{% for post in posts %}
|
||||||
|
<tr>
|
||||||
|
<form action="{{ url_for('user.modify_post') }}" method="post">
|
||||||
|
{{ post.editform.csrf_token }}
|
||||||
|
{{ post.editform.post_id() }}
|
||||||
|
<td>{{ post.id }}</td>
|
||||||
|
<td><pre style="margin: 0;">{{ post.md5[:7] }}</pre></td>
|
||||||
|
<td>
|
||||||
|
<span class="show">{{ post.rating.name.capitalize() }}</span>
|
||||||
|
<span class="edit">{{ post.editform.rating() }}{{ errors(post.editform.rating) }}</span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span class="show">{{ post.status.name.capitalize() }}</span>
|
||||||
|
<span class="edit">{{ post.editform.status() }}{{ errors(post.editform.status) }}</span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span class="show">{{ post.source }}</span>
|
||||||
|
<span class="edit">{{ post.editform.source() }}{{ errors(post.editform.source) }}</span>
|
||||||
|
</td>
|
||||||
|
<td>{{ post.origin_filename }}</td>
|
||||||
|
<td>
|
||||||
|
<label class="show to-edit"><span class="fa fa-edit"></span></label>
|
||||||
|
<label class="edit to-close"><span class="fa fa-close"></span></label>
|
||||||
|
<label class="edit"><span class="fa fa-check"></span>{{ post.editform.edit() }}</label>
|
||||||
|
<label><span class="fa fa-trash-o"></span>{{ post.editform.delete() }}</label>
|
||||||
|
</td>
|
||||||
|
</form>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
{{ render_pagination('user.manage_posts') }}
|
||||||
|
</section>
|
||||||
|
{% endblock %}
|
Loading…
Reference in New Issue