From 5e4a803f78dbf486123651ec4c9f81e87252759b Mon Sep 17 00:00:00 2001 From: fournier_bap Date: Tue, 30 Jan 2018 16:14:02 +0100 Subject: [PATCH] created Details table with separate sections --- machines/templates/machines/aff_machines.html | 37 +++++++++---------- 1 file changed, 17 insertions(+), 20 deletions(-) diff --git a/machines/templates/machines/aff_machines.html b/machines/templates/machines/aff_machines.html index dbb3e40d..3499d7f4 100644 --- a/machines/templates/machines/aff_machines.html +++ b/machines/templates/machines/aff_machines.html @@ -64,14 +64,10 @@ with this program; if not, write to the Free Software Foundation, Inc., {% for interface in machine.interface_set.all %} - {% if interface.domain.related_domain.all %} {{ interface.domain }} - - {% else %} - {{ interface.domain }} - {% endif %} {{ interface.type }} @@ -81,13 +77,6 @@ with this program; if not, write to the Free Software Foundation, Inc., IPv4 {{ interface.ipv4 }} -
- {% if ipv6_enabled and interface.ipv6 != 'None'%} - IPv6 - - {% endif %} - - {% if ipv6_enabled and interface.ipv6 != 'None'%} + + {% if ipv6_enabled and interface.ipv6 != 'None'%} + + IPV6 + -
+
+
IPV6
    {% for ipv6 in interface.ipv6.all %}
  • @@ -146,13 +139,16 @@ with this program; if not, write to the Free Software Foundation, Inc.,
- {% endif %} + {% endif %} {% if interface.domain.related_domain.all %} + + Aliases + -
+
    {% for al in interface.domain.related_domain.all %}
  • @@ -166,8 +162,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
- {% endif %} - {% endfor %} + {% endif %} + + {% endfor %}