From 880503971b43ae9f13f3c1c47921479ca691c6d4 Mon Sep 17 00:00:00 2001 From: Dalahro Date: Wed, 6 Jul 2016 21:50:15 +0200 Subject: [PATCH] Affichage de la topologie Modification d'un port --- re2o/urls.py | 1 + templates/base.html | 2 +- topologie/forms.py | 11 ++++++ topologie/models.py | 3 +- topologie/templates/topologie/aff_port.html | 23 ++++++++++++ topologie/templates/topologie/aff_switch.html | 18 ++++++++++ topologie/templates/topologie/index.html | 11 ++++++ topologie/templates/topologie/index_p.html | 11 ++++++ topologie/templates/topologie/port.html | 17 +++++++++ topologie/templates/topologie/sidebar.html | 5 +++ topologie/urls.py | 10 ++++++ topologie/views.py | 36 +++++++++++++++++-- 12 files changed, 144 insertions(+), 4 deletions(-) create mode 100644 topologie/forms.py create mode 100644 topologie/templates/topologie/aff_port.html create mode 100644 topologie/templates/topologie/aff_switch.html create mode 100644 topologie/templates/topologie/index.html create mode 100644 topologie/templates/topologie/index_p.html create mode 100644 topologie/templates/topologie/port.html create mode 100644 topologie/templates/topologie/sidebar.html create mode 100644 topologie/urls.py diff --git a/re2o/urls.py b/re2o/urls.py index 96ae98be..fe6776d8 100644 --- a/re2o/urls.py +++ b/re2o/urls.py @@ -24,5 +24,6 @@ urlpatterns = [ url(r'^search/', include('search.urls', namespace='search')), url(r'^cotisations/', include('cotisations.urls', namespace='cotisations')), url(r'^machines/', include('machines.urls', namespace='machines')), + url(r'^topologie/', include('topologie.urls', namespace='topologie')), #url(r'^logs/', include('logs.urls', namespace='logs')), ] diff --git a/templates/base.html b/templates/base.html index 34079495..544c0952 100644 --- a/templates/base.html +++ b/templates/base.html @@ -30,7 +30,7 @@
  • Adhérents
  • Machines
  • Cotisations
  • -
  • Topologie
  • +
  • Topologie
  • Statistiques