From 3fd8f96a97c40e293ce47ac5db6c58f36b40f256 Mon Sep 17 00:00:00 2001 From: LEVY-FALK Hugo Date: Tue, 17 Oct 2017 20:10:51 +0200 Subject: [PATCH 1/2] Fix #16 . --- topologie/templates/topologie/aff_switch.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/topologie/templates/topologie/aff_switch.html b/topologie/templates/topologie/aff_switch.html index 7096909b..bb5b274b 100644 --- a/topologie/templates/topologie/aff_switch.html +++ b/topologie/templates/topologie/aff_switch.html @@ -52,6 +52,8 @@ with this program; if not, write to the Free Software Foundation, Inc., + {% include 'buttons/edit.html' with href='topologie:edit-switch' id=switch.pk %} + {% endfor %} From 6386b8d29149be6b252940de2419e4e2d359498e Mon Sep 17 00:00:00 2001 From: LEVY-FALK Hugo Date: Tue, 17 Oct 2017 20:20:29 +0200 Subject: [PATCH 2/2] Ajout d'un bouton pour supprimer un switch. --- topologie/templates/topologie/aff_switch.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/topologie/templates/topologie/aff_switch.html b/topologie/templates/topologie/aff_switch.html index bb5b274b..611e6c39 100644 --- a/topologie/templates/topologie/aff_switch.html +++ b/topologie/templates/topologie/aff_switch.html @@ -51,8 +51,9 @@ with this program; if not, write to the Free Software Foundation, Inc., - - {% include 'buttons/edit.html' with href='topologie:edit-switch' id=switch.pk %} + + {% include 'buttons/edit.html' with href='topologie:edit-switch' id=switch.pk %} + {% include 'buttons/suppr.html' with href='machines:del-interface' id=switch.switch_interface.id %}