diff --git a/machines/templates/machines/aff_iptype.html b/machines/templates/machines/aff_iptype.html index 8aaa37f5..4fe373ab 100644 --- a/machines/templates/machines/aff_iptype.html +++ b/machines/templates/machines/aff_iptype.html @@ -28,10 +28,15 @@ with this program; if not, write to the Free Software Foundation, Inc., {% load logs_extra %} {% load i18n %} +{% if iptype_list.paginator %} +{% include 'pagination.html' with list=iptype_list %} +{% endif %} + + {% for type in iptype_list %}
{% include 'buttons/sort.html' with prefix='switch' col='dns' text=tr_dns %} | - {% trans "IPv4 address" as tr_ip %} -{% include 'buttons/sort.html' with prefix='switch' col='ip' text=tr_ip %} | - {% trans "Switch bay" as tr_bay %} -{% include 'buttons/sort.html' with prefix='switch' col='loc' text=tr_bay %} | - {% trans "Ports" as tr_ports %} -{% include 'buttons/sort.html' with prefix='switch' col='ports' text=tr_ports %} | - {% trans "Stack" as tr_stack %} -{% include 'buttons/sort.html' with prefix='switch' col='stack' text=tr_stack %} | -{% trans "Stack member ID" %} | -{% trans "Switch model" %} | -{% trans "Details" %} | -- |
---|---|---|---|---|---|---|---|---|
-
- {{ switch }}
+{% for switch in switch_list %}
+
+
+
+
+
+
+ {{ switch }}
- |
- {{ switch.interface_set.first.ipv4 }} | -{{ switch.switchbay }} | -{{ switch.number }} | -{{ switch.stack.name }} | -{{ switch.stack_member_id }} | -{{ switch.model }} | -{{ switch.interface_set.first.details }} | -
+
+
+ {% trans "Switch bay" as tr_bay %} {{switch.switchbay}}
+
+
{% can_edit switch %}
{% include 'buttons/edit.html' with href='topologie:edit-switch' id=switch.id %}
{% acl_end %}
@@ -75,14 +50,38 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% can_create Port %}
{% trans "Creation of ports" as tr_creation %}
{% include 'buttons/add.html' with href='topologie:create-ports' id=switch.id desc=tr_creation %}
- {% acl_end %}
- |
-
{% trans "IPv4 address"%} | +{% trans "Ports"%} | +{% trans "Stack"%} | +{% trans "Stack member ID" %} | +{% trans "Switch model" %} | +
---|---|---|---|---|
{{ switch.interface_set.first.ipv4 }} | +{{ switch.number }} | +{{ switch.stack.name }} | +{{ switch.stack_member_id }} | +{{ switch.model }} | +