From fad9fd0dcd62f2fafadc983adbd2b993760fe4ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Kervella?= Date: Sat, 7 Oct 2017 21:48:23 +0000 Subject: [PATCH] Nouvel affichage pour les machines MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit L'ancien affichage commençait à prendre trop de place donc il fallait réarranger les infos --- machines/templates/machines/aff_machines.html | 88 ++++++++++--------- 1 file changed, 46 insertions(+), 42 deletions(-) diff --git a/machines/templates/machines/aff_machines.html b/machines/templates/machines/aff_machines.html index 3e26f64b..80e887d2 100644 --- a/machines/templates/machines/aff_machines.html +++ b/machines/templates/machines/aff_machines.html @@ -27,30 +27,36 @@ with this program; if not, write to the Free Software Foundation, Inc., {% endif %} + + + + + + + - - - - - - - - - - + + + + + + {% for machine in machines_list %} - {% for interface in machine.interface_set.all %} - - {% if forloop.first %} - + + - - {% endif %} + + {% for interface in machine.interface_set.all %} + - - - + + + {% endfor %} +
ActionsProprietaireNom dnsTypeMacIP
Nom DNSTypeMACIPActions
+
+ {{ machine.name }} + + {{ machine.user }} + + {% include 'buttons/add.html' with href='machines:new-interface' id=machine.id desc='Ajouter une interface' %} - {% include 'buttons/suppr.html' with href='machines:del-machine' id=machine.id %} {% include 'buttons/history.html' with href='machines:history' name='machine' id=machine.id %} + {% include 'buttons/suppr.html' with href='machines:del-machine' id=machine.id %} - {{ machine.user }} -
{% if interface.domain.related_domain.all %} {{ interface.type }}{{ interface.mac_address }}IPv4 {{ interface.ipv4 }} - {% if ipv6_enabled %} -
- IPv6 {{ interface.ipv6 }} - {% endif %} -
- + {{ interface.mac_address }} + + IPv4 {{ interface.ipv4 }} +
+ {% if ipv6_enabled and interface.ipv6 != 'None'%} + IPv6 {{ interface.ipv6 }} + {% endif %} +
+