From 1ffb481aef728f396cab61f3028c3331ac384ba9 Mon Sep 17 00:00:00 2001 From: Antoine Vintache Date: Thu, 20 Sep 2018 21:25:33 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20de=20l'affichage=20des=20switchs=20dans?= =?UTF-8?q?=20la=20liste=20des=20mod=C3=A8les=20de=20switchs.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- topologie/templates/topologie/aff_model_switch.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/topologie/templates/topologie/aff_model_switch.html b/topologie/templates/topologie/aff_model_switch.html index 7fd1b37c..fc49331f 100644 --- a/topologie/templates/topologie/aff_model_switch.html +++ b/topologie/templates/topologie/aff_model_switch.html @@ -38,7 +38,8 @@ with this program; if not, write to the Free Software Foundation, Inc., Firmware {% trans "Switch constructor" as tr_constructor %} {% include "buttons/sort.html" with prefix='model-switch' col='constructor' text=tr_constructor %} - + {% trans "Switches" %} + {% for model_switch in model_switch_list %} @@ -46,6 +47,13 @@ with this program; if not, write to the Free Software Foundation, Inc., {{ model_switch.reference }} {{model_switch.firmware}} {{ model_switch.constructor }} + + {% for switch in model_switch.switch_set.all %} + + {{ switch }} + + {% endfor %} + {% can_edit model_switch %}