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.
83 lines
3.8 KiB
83 lines
3.8 KiB
{% extends request.is_ajax|yesno:'nullcont.htm,abonapp/ext.htm' %}
|
|
{% block content %}
|
|
|
|
<legend>Купленные абонентом услуги (назначенные тарифные планы)</legend>
|
|
<table class="table table-striped table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th width="50">Приоритет</th>
|
|
<th>Тариф</th>
|
|
<th>Стоимость</th>
|
|
<th>Входящая скорость</th>
|
|
<th>Исходящая скорость</th>
|
|
<th>Время действия</th>
|
|
<th>Ред.</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
{% for trf in abon_tarifs %}
|
|
<tr{% if trf.id == active_abontariff_id %} class="active"{% endif %}>
|
|
<td>{{ trf.tariff_priority }}</td>
|
|
<td><a href="{% url 'tarifs:edit' trf.tariff.id %}"
|
|
title="{{ trf.time_start|default:'' }}">{{ trf.tariff.title }}</a></td>
|
|
<td>{{ trf.tariff.amount }}</td>
|
|
<td>{{ trf.tariff.speedIn }}</td>
|
|
<td>{{ trf.tariff.speedOut }}</td>
|
|
<td>{{ trf.tariff.time_of_action }}</td>
|
|
{% if trf.id != active_abontariff_id %}
|
|
<td class="btn-group">
|
|
{% if not active_abontariff_id %}
|
|
<a href="{% url 'abonapp:activate_service' abon_group.id abon.id trf.id %}"
|
|
class="btn btn-success btn-sm" title="Активировать услугу">
|
|
<i class="glyphicon glyphicon-shopping-cart"></i>
|
|
</a>
|
|
{% endif %}
|
|
|
|
<!-- "{ % url 'abonapp:chpriority_tariff' abon_group.id abon.id % }?t={ { trf.id } }&a=up" -->
|
|
<a href="#"
|
|
class="btn btn-default btn-sm disabled" title="Повысить приоритет">
|
|
<i class="glyphicon glyphicon-hand-up"></i>
|
|
</a>
|
|
|
|
<!-- "{ % url 'abonapp:chpriority_tariff' abon_group.id abon.id % }?t={ { trf.id } }&a=down" -->
|
|
<a href="#"
|
|
class="btn btn-default btn-sm disabled" title="Понизить приоритет">
|
|
<i class="glyphicon glyphicon-hand-down"></i>
|
|
</a>
|
|
|
|
<a href="{% url 'abonapp:unsubscribe_service' abon_group.id abon.id trf.id %}"
|
|
class="btn btn-danger btn-sm" title="Удалить услугу">
|
|
<i class="glyphicon glyphicon-remove"></i>
|
|
</a>
|
|
</td>
|
|
{% else %}
|
|
<td> <!--{ % url 'abonapp:compl_srv' abon_group.id abon.id trf.id % }-->
|
|
<a href="#" title="Завершить услугу досрочно" class="btn btn-danger btn-sm disabled">
|
|
<i class="glyphicon glyphicon-remove"></i> Завершить
|
|
</a>
|
|
</td>
|
|
{% endif %}
|
|
</tr>
|
|
{% empty %}
|
|
<tr>
|
|
<td colspan="7">Нет подключённых абоненту услуг, <a
|
|
href="{% url 'abonapp:buy_tariff' abon_group.id abon.id %}" class="lgtbx">купить</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
|
|
<tfoot>
|
|
<tr>
|
|
<th colspan="7">
|
|
<a href="{% url 'abonapp:buy_tariff' abon_group.id abon.id %}" class="btn btn-sm btn-success">
|
|
<span class="glyphicon glyphicon-plus"></span> Купить услугу
|
|
</a>
|
|
</th>
|
|
</tr>
|
|
</tfoot>
|
|
|
|
</table>
|
|
|
|
|
|
{% endblock %}
|