From a181ad341994a59c9e17413af9643ca2717c7f0b Mon Sep 17 00:00:00 2001 From: Hugo LEVY-FALK 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 6e26d73e7dd248e2a608c6857d422a48e670c149 Mon Sep 17 00:00:00 2001 From: Hugo LEVY-FALK 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 %}