From 021943405a520e8639215a4a4cf07b458c8e0753 Mon Sep 17 00:00:00 2001 From: lhark Date: Sat, 19 Nov 2016 02:54:39 +0100 Subject: [PATCH] Link models in the UI --- .../templates/cotisations/aff_cotisations.html | 2 +- topologie/templates/topologie/aff_port.html | 18 +++++++++++++++--- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/cotisations/templates/cotisations/aff_cotisations.html b/cotisations/templates/cotisations/aff_cotisations.html index 73907e34..81872e07 100644 --- a/cotisations/templates/cotisations/aff_cotisations.html +++ b/cotisations/templates/cotisations/aff_cotisations.html @@ -17,7 +17,7 @@ {% for facture in facture_list %} - {{ facture.user }} + {{ facture.user }} {{ facture.name }} {{ facture.prix_total }} {{ facture.paiement }} diff --git a/topologie/templates/topologie/aff_port.html b/topologie/templates/topologie/aff_port.html index 53958f69..cfd59374 100644 --- a/topologie/templates/topologie/aff_port.html +++ b/topologie/templates/topologie/aff_port.html @@ -12,9 +12,21 @@ {% for port in port_list %} {{ port.port }} - {{ port.room }} - {{ port.machine_interface }} - {{ port.related }} + + {% if port.room %} + {{ port.room }} + {% endif %} + + + {% if port.machine_interface %} + {{ port.machine_interface }} + {% endif %} + + + {% if port.related %} + {{ port.related }} + {% endif %} + {{ port.details }}