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.
 
 
 
 
 
 

68 lines
2.8 KiB

{% extends 'base.html' %}
{% block body %}
<div class="box span8">
<div class="box-header well">
<h2><i class="icon-arrow-down"></i>Список проплаченых {{ object_name_plural }}</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>
<a class="btn btn-success" href="{{ create_link }}"><i class="icon-plus-sign icon-white"></i> Добавить {{ object_name_dative }}</a>
<table class="table table-hover">
<thead>
<tr>
<th>{{ object_name|capfirst }}</th>
<th>Кликов</th>
<th>&nbsp;</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_paid_change_url }}">Изменить</a> </td>
<td>{% if item.paid_new.public %}<a href="{% url 'expobanner-paid-turn' item.paid_new.id 'off' %}">отключить</a>{% else %}<a href="{% url 'expobanner-paid-turn' item.paid_new.id 'on' %}">включить</a>{% endif %} </td>
<td><a href="{% url 'expobanner_stat_paid' item.paid_new.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.indexOf('show_inactive')>0)
cbox.attr('checked', true);
cbox.click(function(){
form.submit()
});
</script>
{% endblock %}