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.
49 lines
1.6 KiB
49 lines
1.6 KiB
{% extends 'base.html' %}
|
|
|
|
{% block body %}
|
|
|
|
<div class="box span8">
|
|
<div class="box-header well">
|
|
<h2><i class="icon-arrow-down"></i>Список событий в топе</h2>
|
|
</div>
|
|
<div class="box-content">
|
|
{% block list_table %}
|
|
<a class="btn btn-success" href="{% url 'expobanner-create_top' %}"><i class="icon-plus-sign icon-white"></i> Добавить событие</a>
|
|
<div style="float:right;">
|
|
<form method="get" id="form">
|
|
Показать неактивные <input id="public" type="checkbox" name="show_inactive" value="false">
|
|
</form>
|
|
</div>
|
|
<table class="table table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th>Событие</th>
|
|
<th> </th>
|
|
<th> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for item in object_list %}
|
|
<tr>
|
|
<td>{{ item }}</td>
|
|
<td><a href="{% url 'expobanner-update_top' item.top_id %}">Изменить</a> </td>
|
|
<td><a href="{% url 'expobanner_stat_top' item.top_id %}">Статистика</a> </td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% endblock %}
|
|
</div>
|
|
{# pagination #}
|
|
{% include 'c_admin/includes/admin_pagination.html' with page_obj=page_obj %}
|
|
</div>
|
|
<script>
|
|
var cbox = $("#public");
|
|
var form = $("#form");
|
|
if(location.search != "")
|
|
cbox.attr('checked', true);
|
|
cbox.click(function(){
|
|
form.submit()
|
|
});
|
|
</script>
|
|
{% endblock %}
|
|
|