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.

63 lines
1.8 KiB

6 months ago
{% extends 'myadmin/base.html' %}
{% load static %}
{% block content %}
<div class="ui grid">
<div class="row">
<h3 class="ui header six wide column">反馈列表</h3>
<div class="v-title-extra ten wide column">
<div class="ui action input v-admin-search">
<input type="text" placeholder="Search..." value="{{q}}" id="v-search">
<button class="ui small button" id="search">搜索</button>
</div>
</div>
</div>
<div class="ui divider"></div>
<div class="row">
<table class="ui unstackable single line striped selectable table">
<thead>
<tr><th>内容</th><th>联系方式</th><th>时间</th><th>操作</th></tr>
</thead>
<tbody class="video-list">
{% for item in feedback_list %}
<tr feedback-id="{{item.id}}">
<td> {{item.content}}</td>
<td> {{item.contact}}</td>
<td> {{item.timestamp|date:'Y-m-d H:i'}}</td>
<td>
<a class="ui button feedback-delete">删除</a>
</td>
</tr>
{% empty %}
<h3>暂无数据</h3>
{% endfor %}
</tbody>
<tfoot>
<tr>
<th colspan="6">
{% include 'myadmin/page_nav.html' %}
</th>
</tr>
</tfoot>
</table>
</div>
</div>
{% endblock content %}
{% block modal %}
{% include "myadmin/feedback_list_modal.html" %}
{% endblock modal %}
{% block javascript %}
<script>
var search_url = "{% url 'myadmin:feedback_list' %}"
var api_feedback_delete = "{% url 'myadmin:feedback_delete' %}"
</script>
<script src="{% static 'js/myadmin/feedback_list.js' %}"></script>
{% endblock javascript %}