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.
76 lines
3.1 KiB
76 lines
3.1 KiB
{% extends 'base.html' %}
|
|
{% load i18n %}
|
|
{% block main %}
|
|
|
|
<ol class="breadcrumb">
|
|
<li><span class="glyphicon glyphicon-home"></span></li>
|
|
<li class="active">{% trans 'User groups' %}</li>
|
|
</ol>
|
|
|
|
<h3>{% trans 'User groups' %}</h3>
|
|
|
|
{% include 'message_block.html' %}
|
|
|
|
<div class="table-responsive">
|
|
<table class="table table-striped table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th width="50">#</th>
|
|
<th>
|
|
<a href="{% url 'abonapp:group_list' %}?order_by=title&dir={{ dir|default:'down' }}">
|
|
{% trans 'Group title' %}
|
|
</a>
|
|
{% if order_by == 'title' %}<span class="glyphicon glyphicon-filter"></span>{% endif %}
|
|
</th>
|
|
<th width="100" class="hidden-xs">
|
|
{% trans 'Number of subscribers' %}
|
|
</th>
|
|
<th width="100">#</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for gr in groups %}
|
|
<tr>
|
|
<td>{{ gr.pk }}</td>
|
|
<td><a href="{% url 'abonapp:people_list' gr.pk %}">{{ gr.title }}</a></td>
|
|
<td class="hidden-xs">{{ gr.usercount }}</td>
|
|
<td class="btn-group">
|
|
<a href="{% url 'abonapp:ch_group_tariff' gr.pk %}" class="btn btn-sm btn-default"
|
|
title="{% trans 'User groups' %}">
|
|
<span class="glyphicon glyphicon-cog"></span>
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
{% empty %}
|
|
<tr>
|
|
<td colspan="4"><a href="#">{% trans 'Groups was not found' %}</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="4" class="btn-group btn-group-sm">
|
|
{% if perms.abonapp.can_view_abonlog %}
|
|
<a href="{% url 'abonapp:log' %}" class="btn btn-default">
|
|
<span class="glyphicon glyphicon-record"></span> <span class="hidden-xs">{% trans 'Subscribers actions' %}</span>
|
|
</a>
|
|
{% endif %}
|
|
{% if perms.abonapp.can_view_invoiceforpayment %}
|
|
<a href="{% url 'abonapp:debtors' %}" class="btn btn-default">
|
|
<span class="glyphicon glyphicon-exclamation-sign"></span> <span class="hidden-xs">{% trans 'List of debtors' %}</span>
|
|
</a>
|
|
{% endif %}
|
|
{% if request.user.is_superuser %}
|
|
<a href="{% url 'abonapp:fin_report' %}" class="btn btn-default">
|
|
<span class="glyphicon glyphicon-usd"></span> <span class="hidden-xs">{% trans 'Fin report' %}</span>
|
|
</a>
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
</div>
|
|
|
|
{% include 'pagination.html' %}
|
|
|
|
{% endblock %}
|