|
+ {% if perms.abonapp.add_abongroup %}
Создать группу
+ {% endif %}
Действия абонентов
diff --git a/templates/abonapp/invoiceForPayment.html b/templates/abonapp/invoiceForPayment.html
index 597cb3e..b097527 100644
--- a/templates/abonapp/invoiceForPayment.html
+++ b/templates/abonapp/invoiceForPayment.html
@@ -40,15 +40,17 @@
|
{% endfor %}
-
-
- |
-
- Добавить
-
- |
-
-
+ {% if perms.abonapp.add_invoiceforpayment %}
+
+
+ |
+
+ Добавить
+
+ |
+
+
+ {% endif %}
{% endblock %}
diff --git a/templates/abonapp/peoples.html b/templates/abonapp/peoples.html
index 08c61bd..145075e 100644
--- a/templates/abonapp/peoples.html
+++ b/templates/abonapp/peoples.html
@@ -71,19 +71,30 @@
{{ human.telephone }} |
{% if human.active_tariff %}
- {{ human.active_tariff.title }}
- {% else %}———
+ {% if perms.tariff_app.change_tariff %}
+ {{ human.active_tariff.title }}
+ {% else %}
+ {{ human.active_tariff.title }}
+ {% endif %}
+ {% else %}———
{% endif %}
|
{{ human.ballance }} |
-
-
- |
+
+ {% if perms.abonapp.delete_abon %}
+
+
+
+ {% endif %}
+ |
{% empty %}
|
- Ещё нет абонентов, добавить
+ Ещё нет абонентов.
+ {% if perms.abonapp.add_abon %}
+ Добавить
+ {% endif %}
|
{% endfor %}
diff --git a/templates/abonapp/services.html b/templates/abonapp/services.html
index ab7a8a7..91c3205 100644
--- a/templates/abonapp/services.html
+++ b/templates/abonapp/services.html
@@ -19,19 +19,31 @@
{% for trf in abon_tarifs %}
| {{ trf.tariff_priority }} |
- {{ trf.tariff.title }} |
+
+
+ {% if perms.tariff_app.change_tariff %}
+
+ {{ trf.tariff.title }}
+
+ {% else %}
+ {{ trf.tariff.title }}
+ {% endif %}
+
+ |
{{ trf.tariff.amount }} |
{{ trf.tariff.speedIn }} |
{{ trf.tariff.speedOut }} |
{{ trf.tariff.time_of_action }} |
{% if trf.id != active_abontariff_id %}
- {% if not active_abontariff_id %}
-
-
-
+
+ {% if perms.abonapp.can_activate_service %}
+ {% if not active_abontariff_id %}
+
+
+
+ {% endif %}
{% endif %}
@@ -46,10 +58,12 @@
-
-
-
+ {% if perms.abonapp.delete_abontariff %}
+
+
+
+ {% endif %}
|
{% else %}
@@ -61,22 +75,25 @@
|
{% empty %}
- | Нет подключённых абоненту услуг, купить |
+ Нет подключённых абоненту услуг.
+ {% if perms.abonapp.can_buy_tariff %}
+ Купить
+ {% endif %}
+ |
{% endfor %}
-
-
-
- |
-
- Купить услугу
-
- |
-
-
-
+ {% if perms.abonapp.can_buy_tariff %}
+
+
+ |
+
+ Купить услугу
+
+ |
+
+
+ {% endif %}
diff --git a/templates/accounts/acc_list.html b/templates/accounts/acc_list.html
index afe2da8..d6cc104 100644
--- a/templates/accounts/acc_list.html
+++ b/templates/accounts/acc_list.html
@@ -43,9 +43,17 @@
title="Отправить сообщение">
-
-
-
+
+ {% if usr.id == request.user.id or perms.acc_app.delete_userprofile %}
+
+
+
+ {% else %}
+
+
+
+ {% endif %}
+
{% empty %}
diff --git a/templates/devapp/devices.html b/templates/devapp/devices.html
index 5112cfc..6aee6f8 100644
--- a/templates/devapp/devices.html
+++ b/templates/devapp/devices.html
@@ -27,9 +27,13 @@
{{ dev.ip_address }} |
{{ dev.comment }} |
{{ dev.get_devtype_display }} |
-
-
- |
+
+ {% if perms.devapp.delete_device %}
+
+
+
+ {% endif %}
+ |
{% empty %}
diff --git a/templates/ip_pool/index.html b/templates/ip_pool/index.html
index 37076db..01e6a44 100644
--- a/templates/ip_pool/index.html
+++ b/templates/ip_pool/index.html
@@ -27,24 +27,33 @@
| {{ pl.0 }} |
{{ pl.1 }} |
{{ pl.2 }} |
-
+ |
+
+ class="btn btn-primary">
-
-
-
+
+ {% if perms.ip_pool.delete_ippoolitem %}
+
+
+
+ {% endif %}
+
|
{% empty %}
- | Нет ни одного пула зарезервированных ip адресов. Создать |
+ Нет ни одного пула зарезервированных ip адресов.
+ {% if perms.ip_pool.add_ippoolitem %}
+ Создать
+ {% endif %}
+ |
{% endfor %}
+
+ {% if perms.ip_pool.add_ippoolitem %}
|
@@ -54,6 +63,8 @@
|
+ {% endif %}
+
diff --git a/templates/ip_pool/ips.html b/templates/ip_pool/ips.html
index 85131ee..bc12475 100644
--- a/templates/ip_pool/ips.html
+++ b/templates/ip_pool/ips.html
@@ -34,7 +34,7 @@
- {% else %}
+ {% elif perms.ip_pool.delete_ippoolitem %}
@@ -43,8 +43,11 @@
{% empty %}
- | Нет ни одного пула зарезервированных ip адресов. Создать |
+ Нет ни одного пула зарезервированных ip адресов.
+ {% if perms.ip_pool.add_ippoolitem %}
+ Создать
+ {% endif %}
+ |
{% endfor %}
diff --git a/templates/tariff_app/tarifs.html b/templates/tariff_app/tarifs.html
index bc952cc..16006e4 100644
--- a/templates/tariff_app/tarifs.html
+++ b/templates/tariff_app/tarifs.html
@@ -51,24 +51,38 @@