|
|
|
@ -18,6 +18,7 @@ |
|
|
|
<table class="table table-striped table-bordered"> |
|
|
|
<thead> |
|
|
|
<tr> |
|
|
|
<th>#</th> |
|
|
|
<th> |
|
|
|
<a href="{% url 'abonapp:people_list' abon_group.pk %}?order_by=username&dir={{ dir|default:"down" }}"> |
|
|
|
{% trans 'Sub' %} |
|
|
|
@ -45,7 +46,7 @@ |
|
|
|
</th> |
|
|
|
<th width="100"> |
|
|
|
<a href="{% url 'abonapp:people_list' abon_group.pk %}?order_by=house&dir={{ dir|default:"down" }}"> |
|
|
|
{% trans 'House' %}/{% trans 'Apartment' %} |
|
|
|
{% trans 'Apartment' %} |
|
|
|
</a> |
|
|
|
{% if order_by == 'house' %}<span class="glyphicon glyphicon-filter"></span>{% endif %} |
|
|
|
</th> |
|
|
|
@ -67,11 +68,11 @@ |
|
|
|
{% else %} |
|
|
|
<tr class="danger"> |
|
|
|
{% endif %} |
|
|
|
<td>{% if human.stat_cache and human.stat_cache.is_online %} |
|
|
|
<span class="glyphicon glyphicon-ok text-success"></span> |
|
|
|
{% endif %}</td> |
|
|
|
<td> |
|
|
|
<a href="{% url 'abonapp:abon_home' human.group.pk human.pk %}">{{ human.username }}</a> |
|
|
|
{% if human.stat_cache and human.stat_cache.is_online %} |
|
|
|
<span class="glyphicon glyphicon-ok text-success"></span> |
|
|
|
{% endif %} |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
{% if human.stat_cache %} |
|
|
|
@ -85,7 +86,7 @@ |
|
|
|
<td>{{ human.ip_address|default:_('Not assigned') }}</td> |
|
|
|
<td>{{ human.fio }}</td> |
|
|
|
<td>{{ human.street|default:_('Not assigned') }}</td> |
|
|
|
<td>{{ human.house|default:_('Not assigned') }}</td> |
|
|
|
<td>{{ human.house|default:'-' }}</td> |
|
|
|
<td><a href="tel:{{ human.telephone }}">{{ human.telephone }}</a></td> |
|
|
|
<td> |
|
|
|
{% if human.active_tariff %} |
|
|
|
@ -108,7 +109,7 @@ |
|
|
|
</tr> |
|
|
|
{% empty %} |
|
|
|
<tr> |
|
|
|
<td colspan="11"> |
|
|
|
<td colspan="12"> |
|
|
|
{% trans 'Subscribers not found' %}. |
|
|
|
{% if perms.abonapp.add_abon %} |
|
|
|
<a href="{% url 'abonapp:add_abon' abon_group.pk %}">{% trans 'Add abon' %}</a> |
|
|
|
@ -119,7 +120,7 @@ |
|
|
|
</tbody> |
|
|
|
<tfoot> |
|
|
|
<tr> |
|
|
|
<td colspan="11" class="btn-group"> |
|
|
|
<td colspan="12" class="btn-group"> |
|
|
|
{% if perms.abonapp.add_abon %} |
|
|
|
<a href="{% url 'abonapp:add_abon' abon_group.pk %}" class="btn btn-sm btn-default" title="Добавить"> |
|
|
|
<span class="glyphicon glyphicon-plus"></span> {% trans 'Add abon' %} |
|
|
|
|