diff --git a/machines/templates/machines/aff_iptype.html b/machines/templates/machines/aff_iptype.html index 4fe373ab..c6123f58 100644 --- a/machines/templates/machines/aff_iptype.html +++ b/machines/templates/machines/aff_iptype.html @@ -29,10 +29,9 @@ with this program; if not, write to the Free Software Foundation, Inc., {% load i18n %} {% if iptype_list.paginator %} -{% include 'pagination.html' with list=iptype_list %} + {% include 'pagination.html' with list=iptype_list %} {% endif %} - {% for type in iptype_list %}
{% include 'buttons/sort.html' with prefix='machine' col='name' text=tr_dns_name %} | -{% trans "Type" %} | -{% trans "MAC address" %} | -{% trans "IP address" %} | -{% trans "Actions" %} | - - {% for machine in machines_list %} -|||
---|---|---|---|---|---|---|---|
- {% trans "No name" as tr_no_name %} - {% trans "View the profile" as tr_view_the_profile %} - {% if machine.active %} - - {% else %} - {% trans "Deactivated" %}: - {% endif %} - {{ machine.get_name|default:tr_no_name }} - - {{ machine.user }} - - | -
+{% for machine in machines_list %}
+
+
+
+
+
+ {% trans "No name" as tr_no_name %}
+ {{ machine.user }}
+
+ {{ machine.get_name|default:tr_no_name }}
+
+
{% can_create Interface machine.id %}
{% trans "Create an interface" as tr_create_an_interface %}
{% include 'buttons/add.html' with href='machines:new-interface' id=machine.id desc=tr_create_an_interface %}
@@ -64,8 +50,22 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% can_delete machine %}
{% include 'buttons/suppr.html' with href='machines:del-machine' id=machine.id %}
{% acl_end %}
- |
-
{% trans "DNS name"%} | +{% trans "Type" %} | +{% trans "MAC address" %} | +{% trans "IP address" %} | +{% trans "Actions" %} | +|||
---|---|---|---|---|---|---|---|
@@ -74,7 +74,7 @@ with this program; if not, write to the Free Software Foundation, Inc., {% else %} {{ interface.domain }} @@ -159,59 +159,64 @@ with this program; if not, write to the Free Software Foundation, Inc., {% acl_end %} | |||||||
-
-
-
|
- |||||||
-
-
-
|
- |||||||
-
-
-
|
- |||||||
- | |||||||
+
+
+
|
+ |||||||
+
+
+
|
+ |||||||
+
+
+
|
+
{% trans "TCP (input)" %} | +{% trans "TCP (output)" %} | +{% trans "UDP (input)" %} | +{% trans "UDP (output)" %} | +
---|---|---|---|
{% for p in ports.tcp_ports_in %}{{ p.show_port }}, {% endfor %} | +{% for p in ports.tcp_ports_out %}{{ p.show_port }}, {% endfor %} | +{% for p in ports.udp_ports_in %}{{ p.show_port }}, {% endfor %} | +{% for p in ports.udp_ports_out %}{{ p.show_port }}, {% endfor %} | +
{% trans "Name" %} | -{% trans "TCP (input)" %} | -{% trans "TCP (output)" %} | -{% trans "UDP (input)" %} | -{% trans "UDP (output)" %} | -{% trans "Machines" %} | -- |
---|---|---|---|---|---|---|
{{ pl.name }} | -{% for p in pl.tcp_ports_in %}{{ p.show_port }}, {% endfor %} | -{% for p in pl.tcp_ports_out %}{{ p.show_port }}, {% endfor %} | -{% for p in pl.udp_ports_in %}{{ p.show_port }}, {% endfor %} | -{% for p in pl.udp_ports_out %}{{ p.show_port }}, {% endfor %} | -
- {% if pl.interface_set.all %}
-
-
-
- {% endif %}
-
- | - {% can_edit pl %} - {% include 'buttons/edit.html' with href='machines:edit-portlist' id=pl.id %} - {% acl_end %} - {% can_delete pl %} - {% include 'buttons/suppr.html' with href='machines:del-portlist' id=pl.id %} - {% acl_end %} - | -
{% include 'buttons/sort.html' with prefix='building' col='name' text=tr_building %} | -{% include 'buttons/sort.html' with prefix='room' col='name' text=tr_room %} | -{% trans "Connnected to" %} | -{% trans "User" %} | -{% trans "Details" %} | -{% trans "End of subscription on" %} | -{% trans "Internet access" %} | -{% trans "Action" %} | -
---|---|---|---|---|---|---|---|
{{ room.building }} | -{{ room.name }} | -{% if room.port_set.all %}{{ asso_name }}{% else %}{% trans "Other operator" %}{% endif %} | -{% if room.adherent %}{{ room.adherent }}{% else %} {% trans "None" %}{% endif %} | -{{ room.details }} | -{% if room.adherent.is_adherent %}{% else %}{% endif %}{% if room.adherent.end_adhesion %}{{ room.adherent.end_adhesion}}{% else %}{% trans "Non member" %}{% endif %} | -- {% if room.adherent.has_access == True %} - {% trans "Active" %} - {% else %} - {% trans "Disabled" %} - {% endif %} - | -- {% if room.port_set.all %} - - {% endif %} - | -
{% trans "User"%} | +{% trans "Connected to"%} | +{% trans "End of subscription on" %} | +{% trans "Internet access" %} | +
---|---|---|---|
+ {% if room.adherent %} + {{ room.adherent }} + {% else %} + {% trans "None" %} + {% endif %} + | ++ {% if room.port_set.all %} + {{ asso_name }} + {% else %} + {% trans "Other operator" %} + {% endif %} + | ++ {% if room.adherent.is_adherent %} + + {% else %} + + {% endif %} + {% if room.adherent.end_adhesion %} + {{ room.adherent.end_adhesion}} + {% else %} + {% trans "Non member" %} + {% endif %} + + | ++ {% if room.adherent.has_access == True %} + {% trans "Active" %} + {% else %} + {% trans "Disabled" %} + {% endif %} + | +