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

{% 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_place' %}"><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>&nbsp;</th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
{% for item in object_list %}
<tr>
<td>{{ item.get_event }}</td>
<td><a href="{% url 'expobanner-update_top_place' item.pk %}">Изменить</a> </td>
<td><a href="{% url 'expobanner_stat_top' item.pk %}">Статистика</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 %}