diff --git a/logs/views.py b/logs/views.py index 6ab48706..5dd87eaa 100644 --- a/logs/views.py +++ b/logs/views.py @@ -90,7 +90,8 @@ from topologie.models import ( Room, Stack, ModelSwitch, - ConstructorSwitch + ConstructorSwitch, + AccessPoint ) from preferences.models import GeneralOption from re2o.views import form @@ -360,6 +361,7 @@ def stats_models(request): }, 'Topologie': { 'switch': [Switch.PRETTY_NAME, Switch.objects.count()], + 'bornes': [AccessPoint.PRETTY_NAME, AccessPoint.objects.count()], 'port': [Port.PRETTY_NAME, Port.objects.count()], 'chambre': [Room.PRETTY_NAME, Room.objects.count()], 'stack': [Stack.PRETTY_NAME, Stack.objects.count()], diff --git a/machines/templates/machines/aff_extension.html b/machines/templates/machines/aff_extension.html index 0da5a08e..1feec748 100644 --- a/machines/templates/machines/aff_extension.html +++ b/machines/templates/machines/aff_extension.html @@ -24,6 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc., {% load acl %} +
@@ -38,7 +39,7 @@ with this program; if not, write to the Free Software Foundation, Inc., {% for extension in extension_list %} - + @@ -55,4 +56,4 @@ with this program; if not, write to the Free Software Foundation, Inc., {% endfor %}
{{ extension.name }} {{ extension.need_infra }} {{ extension.soa}}
- +
diff --git a/machines/templates/machines/aff_iptype.html b/machines/templates/machines/aff_iptype.html index c5ed4c10..1a76e303 100644 --- a/machines/templates/machines/aff_iptype.html +++ b/machines/templates/machines/aff_iptype.html @@ -23,15 +23,14 @@ with this program; if not, write to the Free Software Foundation, Inc., {% endcomment %} {% load acl %} - +
- - + @@ -44,8 +43,7 @@ with this program; if not, write to the Free Software Foundation, Inc., - - + @@ -58,4 +56,4 @@ with this program; if not, write to the Free Software Foundation, Inc., {% endfor %}
Type d'ip Extension Nécessite l'autorisation infraDébutFinPlage ipv4 Préfixe v6 Sur vlan Ouverture ports par défault{{ type.type }} {{ type.extension }} {{ type.need_infra }}{{ type.domaine_ip_start }}{{ type.domaine_ip_stop }}{{ type.domaine_ip_start }}-{{ type.domaine_ip_stop }} {{ type.prefix_v6 }} {{ type.vlan }} {{ type.ouverture_ports }}
- +
diff --git a/machines/templates/machines/aff_vlan.html b/machines/templates/machines/aff_vlan.html index deb8cb11..2e3d99b4 100644 --- a/machines/templates/machines/aff_vlan.html +++ b/machines/templates/machines/aff_vlan.html @@ -24,6 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc., {% load acl %} +
@@ -49,4 +50,4 @@ with this program; if not, write to the Free Software Foundation, Inc., {% endfor %}
- +
diff --git a/re2o/utils.py b/re2o/utils.py index 32be2432..aaefca8d 100644 --- a/re2o/utils.py +++ b/re2o/utils.py @@ -190,6 +190,10 @@ class SortTable: 'white_end': ['date_end'], 'default': ['-date_end'] } + USERS_INDEX_SCHOOL = { + 'school_name': ['name'], + 'default': ['name'] + } MACHINES_INDEX = { 'machine_name': ['name'], 'default': ['pk'] diff --git a/templates/base.html b/templates/base.html index 740881bf..6961e583 100644 --- a/templates/base.html +++ b/templates/base.html @@ -83,9 +83,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,