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.3 KiB

{% extends 'base.html' %}
{% load i18n %}
{% block body %}
<div class="box span8">
<div class="box-header well">
<h2><i class="icon-arrow-down"></i>Список заказов</h2>
</div>
<div class="box-content">
<table class="table table-hover">
<thead>
<tr>
<th>id</th>
<th>Контактное лицо</th>
<th>Телефон</th>
<th>Время создания</th>
</tr>
</thead>
<tbody>
{% for item in object_list %}
<tr>
<td>{{ item.id }}</td>
<td>{{ item.person_inf }}</td>
<td>{{ item.phone }}</td>
<td>{{ item.created }}</td>
</tr>
<tr style="display: none" class="addition">
<td>
{% trans "Первый переход" %}
<br>{% trans "Последний переход" %}
<br>{% trans "utm_source1" %}
<br>{% trans "utm_medium1" %}
<br>{% trans "utm_campaign1" %}
<br>{% trans "utm_source2" %}
<br>{% trans "utm_medium2" %}
<br>{% trans "utm_campaign2" %}
<br>{% trans "search1" %}
<br>{% trans "search2" %}
<br>{% trans "search3" %}
</td>
<td colspan="3">
{{ item.referer1 }}
<br>{{ item.referer2 }}
<br>{{ item.utm_source1 }}
<br>{{ item.utm_medium1 }}
<br>{{ item.utm_campaign1 }}
<br>{{ item.utm_source2 }}
<br>{{ item.utm_medium2 }}
<br>{{ item.utm_campaign2 }}
<br>{{ item.search1 }}
<br>{{ item.search2 }}
<br>{{ item.search3 }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<script type="application/javascript">
$(document).ready(function () {
$('div.box-content table tr:not(.addition)').click(function () {
$(this).next().toggle();
})
});
</script>
{% include 'c_admin/includes/admin_pagination.html' with page_obj=page_obj %}
</div>
{# pagination #}
{% endblock %}