48 changed files with 397 additions and 355 deletions
-
14abonapp/models.py
-
141abonapp/views.py
-
19accounts_app/models.py
-
6accounts_app/urls.py
-
74accounts_app/views.py
-
3clientsideapp/urls.py
-
24clientsideapp/views.py
-
18devapp/views.py
-
16ip_pool/views.py
-
22tariff_app/views.py
-
9taskapp/views.py
-
6templates/abonapp/abonamount.html
-
4templates/abonapp/activate_service.html
-
4templates/abonapp/addAbon.html
-
4templates/abonapp/addGroup.html
-
1templates/abonapp/addInvoice.html
-
8templates/abonapp/buy_tariff.html
-
9templates/abonapp/complete_service.html
-
1templates/abonapp/debtors.html
-
7templates/abonapp/editAbon.html
-
7templates/abonapp/ext.htm
-
3templates/abonapp/group_list.html
-
1templates/abonapp/log.html
-
1templates/abonapp/peoples.html
-
18templates/abonapp/services.html
-
2templates/accounts/acc_list.html
-
5templates/accounts/create_acc.html
-
1templates/accounts/ext.htm
-
4templates/accounts/group.html
-
3templates/accounts/group_list.html
-
3templates/accounts/login.html
-
7templates/accounts/settings/ch_info.html
-
2templates/accounts/settings/ext.htm
-
7templates/accounts/settings/permissions.html
-
6templates/clientsideapp/debt_buy.html
-
12templates/clientsideapp/ext.html
-
8templates/clientsideapp/service_buy.html
-
74templates/clientsideapp/services.html
-
6templates/devapp/dev.html
-
1templates/devapp/devices.html
-
1templates/devapp/ext.htm
-
6templates/ip_pool/add_pool.html
-
4templates/tariff_app/editTarif.html
-
1templates/tariff_app/tarifs.html
-
7templates/taskapp/add_edit_task.html
-
7templates/taskapp/ext.htm
-
7templates/taskapp/tasklist_all.html
-
2templates/taskapp/view.html
@ -0,0 +1,74 @@ |
|||
{% extends 'clientsideapp/ext.html' %} |
|||
{% block client_main %} |
|||
|
|||
<div class="page-header"> |
|||
<h3>Управление услугами</h3> |
|||
{% if current_service %} |
|||
<p>Ваша текущая услуга <a href="#dv">{{ current_service.tariff.title }}</a> |
|||
за <b>{{ current_service.tariff.amount }}</b> руб.</p> |
|||
{% else %} |
|||
<p>У вас нет активной услуги, для использования ресурсов приобретите нужную услугу из представленных |
|||
ниже.<br> |
|||
А если уже заказали то просто активируйте услугу из списка заказанных.</p> |
|||
{% endif %} |
|||
</div> |
|||
<div class="container"> |
|||
<div class="row"> |
|||
<div class="col-lg-4"> |
|||
<h4>Ваши заказанные услуги</h4> |
|||
<ul class="list-group"> |
|||
{% for abon_tariff in own_abon_tariffs %} |
|||
<li class="list-group-item"> |
|||
<div class="btn-group"> |
|||
<a href="#sdf" class="btn btn-xs btn-success disabled" title="Активировать"> |
|||
<span class="glyphicon glyphicon-fire"></span> |
|||
</a> |
|||
<a href="#del" class="btn btn-xs btn-danger disabled" title="Удалить услугу из списка"> |
|||
<span class="glyphicon glyphicon-remove"></span> |
|||
</a> |
|||
</div> |
|||
<span class="badge">{{ abon_tariff.tariff.amount }}</span> |
|||
<a href="#sdv"> |
|||
{% if abon_tariff.is_started %}<b>{{ abon_tariff.tariff.title }}</b> |
|||
{% else %}{{ abon_tariff.tariff.title }}{% endif %} |
|||
</a> |
|||
</li> |
|||
{% empty %} |
|||
<li class="list-group-item">У вас нет заказанных услуг</li> |
|||
{% endfor %} |
|||
</ul> |
|||
</div> |
|||
<div class="col-lg-8"> |
|||
<h4>Выберите ещё услугу</h4> |
|||
|
|||
<div class="container-fluid"> |
|||
<div class="row"> |
|||
{% for tarif in tarifs %} |
|||
<div class="col-lg-4"> |
|||
<h3>{{ tarif.title }}</h3> |
|||
|
|||
<p>{{ tarif.descr }}</p> |
|||
|
|||
<p>Входящая скорость: {{ tarif.speedIn }} MBit/s<br> |
|||
Исходящая скорость: {{ tarif.speedOut }} MBit/s<br> |
|||
Стоимость: {{ tarif.amount }} руб.</p> |
|||
|
|||
<!-- { % url 'client_side:buy_service' tarif.id % } --> |
|||
<a href="#" class="btn btn-primary disabled"> |
|||
<span class="glyphicon glyphicon-shopping-cart"></span> Заказать |
|||
</a> |
|||
</div> |
|||
{% empty %} |
|||
<div class="col-lg-4"> |
|||
<h3 class="panel-title">Нет доступных услуг для заказа</h3> |
|||
</div> |
|||
{% endfor %} |
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
|||
|
|||
</div> |
|||
</div> |
|||
|
|||
{% endblock %} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue