From 892f6809891eb816e3c2be3036123b2837c9f402 Mon Sep 17 00:00:00 2001 From: Dmitry Novikov Date: Mon, 23 Oct 2017 15:07:40 +0300 Subject: [PATCH 1/2] fix --- abonapp/templates/abonapp/editAbon.html | 4 +- abonapp/templates/abonapp/group_list.html | 4 +- abonapp/templates/abonapp/peoples.html | 34 ++++----- accounts_app/templates/accounts/acc_list.html | 18 ++--- accounts_app/templates/accounts/login.html | 15 +++- agent/commands/dhcp.py | 4 +- agent/mod_mikrotik.py | 22 ++++-- .../templates/clientsideapp/ext.html | 2 +- devapp/models.py | 2 + .../templates/devapp/custom_dev_page/onu.html | 2 +- dhcp_lever.py | 44 +++++++++--- msg_app/admin.py | 5 +- msg_app/locale/ru/LC_MESSAGES/django.po | 2 +- mydefs.py | 9 +++ queue_mngr.py | 71 +++++++++++++------ systemd_units/djing_telebot.service | 2 +- telebot.py | 2 +- templates/all_base.html | 2 +- templates/base.html | 4 +- 19 files changed, 168 insertions(+), 80 deletions(-) diff --git a/abonapp/templates/abonapp/editAbon.html b/abonapp/templates/abonapp/editAbon.html index 5e93ebd..b06a456 100644 --- a/abonapp/templates/abonapp/editAbon.html +++ b/abonapp/templates/abonapp/editAbon.html @@ -4,7 +4,7 @@ {% block content %}
-
+

{% trans 'Change subscriber' %}

@@ -131,7 +131,7 @@
-
+
{% if perms.abonapp.change_abon %}
diff --git a/abonapp/templates/abonapp/group_list.html b/abonapp/templates/abonapp/group_list.html index 00362e7..6a22bb8 100644 --- a/abonapp/templates/abonapp/group_list.html +++ b/abonapp/templates/abonapp/group_list.html @@ -23,7 +23,7 @@ {% if order_by == 'title' %}{% endif %} - + {% trans 'Number of subscribers' %} # @@ -34,7 +34,7 @@ {{ gr.pk }} {{ gr.title }} - {{ gr.usercount }} + {{ gr.usercount }} {% if perms.abonapp.delete_abongroup %} {% if gr.usercount == 0 %} diff --git a/abonapp/templates/abonapp/peoples.html b/abonapp/templates/abonapp/peoples.html index eeadaae..07fee09 100644 --- a/abonapp/templates/abonapp/peoples.html +++ b/abonapp/templates/abonapp/peoples.html @@ -14,52 +14,52 @@

{% trans 'The people in the selected group' %}

-
+
- - + - - + - - - - - - + + - + @@ -70,7 +70,7 @@ {% else %} {% endif %} - - - + @@ -102,7 +102,7 @@ {% else %}——— {% endif %} - +
# + {% trans 'Sub' %} {% if order_by == 'username' %}{% endif %} {% trans 'Last traffic' %} + {% trans 'Ip address' %} {% if order_by == 'ip_address' %}{% endif %} + {% trans 'fio' %} {% if order_by == 'fio' %}{% endif %} + {% trans 'Street' %} {% if order_by == 'street' %}{% endif %} + {% trans 'Apartment' %} {% if order_by == 'house' %}{% endif %} {% trans 'Telephone' %}{% trans 'Service' %} + {% trans 'Telephone' %}{% trans 'Service' %}##
{% if human.stat_cache and human.stat_cache.is_online %} + {{ human.username }} + {{ human.ip_address|default:_('Not assigned') }}{{ human.ip_address|default:_('Not assigned') }} {{ human.fio }} {{ human.street|default:_('Not assigned') }} {{ human.house|default:'-' }}{{ human.ballance }} {% if can_del_trf %} @@ -140,7 +140,7 @@
-