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.
51 lines
1.7 KiB
51 lines
1.7 KiB
{% extends 'base.html' %}
|
|
{% block main %}
|
|
|
|
<ol class="breadcrumb">
|
|
<li><span class="glyphicon glyphicon-home"></span></li>
|
|
<li><a href="{% url 'abongroup_list_link' %}">Группы абонентов</a></li>
|
|
<li class="active">История действий абонентов</li>
|
|
</ol>
|
|
|
|
|
|
<h3>История абонента</h3>
|
|
<div class="table-responsive">
|
|
<table class="table table-striped table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th>Сумма</th>
|
|
<th>Абонент</th>
|
|
<th>Комментарий</th>
|
|
<th width="250">Время</th>
|
|
<th width="150">Автор</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for l in logs %}
|
|
<tr>
|
|
<td>{% if l.amount >= 0 %}
|
|
<span class="glyphicon glyphicon-hand-up"></span>
|
|
{% else %}
|
|
<span class="glyphicon glyphicon-hand-down"></span>
|
|
{% endif %} {{ l.amount }}</td>
|
|
<td><a href="{% url 'abonhome_link' l.abon.group.id l.abon.id %}">{{ l.abon.username }}</a></td>
|
|
<td>{{ l.comment }}</td>
|
|
<td>{{ l.date|date:"D d E Y H:i:s" }}</td>
|
|
<td><a href="{% url 'other_profile' l.author.id %}">{{ l.author.username }}</a></td>
|
|
</tr>
|
|
{% empty %}
|
|
<tr>
|
|
<td colspan="5">Нет событий</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
|
|
|
|
</table>
|
|
</div>
|
|
|
|
{% include 'toolbar_page.html' with pag=logs %}
|
|
|
|
|
|
|
|
{% endblock %}
|