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.
 
 
 
 
 
 

74 lines
2.6 KiB

{% extends 'base.html' %}
{% block body %}
<div class="box span8">
<div class="box-header well">
<h2><i class="icon-arrow-down"></i>{{ verbose }}</h2>
</div>
<div class="box-content">
{% block list_table %}
<div class="row-fluid">
<div class="span9">
<form name="search" class="form-horizontal" method="get">
<div class="control-group">
<div>
<div class="input-append">
<input placeholder="Введите название баннера" id="id_search" size="16" type="text"
name="q">
<button class="btn" type="submit">Найти!</button>
</div>
</div>
</div>
</form>
</div>
<div class="span3">
<form method="get" id="form">
Показать неактивные <input id="public" type="checkbox" name="show_inactive" value="true">
</form>
</div>
</div>
<table class="table table-hover">
<colgroup>
<col width="45%">
<col width="15%">
<col width="10%">
<col width="10%">
</colgroup>
<thead>
<tr>
<th>Объект</th>
<th>Всего кликов</th>
<th>&nbsp;</th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
{% for item in object_list %}
<tr>
<td>{{ item }}</td>
<td>{{ item.clicks }}</td>
<td><a href="{{ item.get_admin_url }}">Изменить</a> </td>
<td><a href="{% url 'expobanner_stat_banner' item.id %}">Статистика</a> </td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}
</div>
{# pagination #}
{% include 'c_admin/includes/admin_pagination.html' with page_obj=page_obj %}
</div>
<a href="{% url 'expobanner-baneers_control' %}">Назад к управлению баннерами</a>
<script>
var cbox = $("#public");
var form = $("#form");
if(location.search.indexOf("show_inactive")>0)
cbox.attr('checked', true);
cbox.click(function(){
form.submit()
});
</script>
{% endblock %}