From 1e9a4b3d324bcc3cb00e19c90fe08b21c29c675e Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Mon, 24 Sep 2018 19:31:12 +0200 Subject: [PATCH] Autoformat templates --- machines/templates/machines/aff_alias.html | 11 +- machines/templates/machines/aff_dname.html | 13 +- .../templates/machines/aff_extension.html | 49 ++-- machines/templates/machines/aff_iptype.html | 56 ++--- machines/templates/machines/aff_ipv6.html | 17 +- machines/templates/machines/aff_machines.html | 206 ++++++++--------- .../templates/machines/aff_machinetype.html | 13 +- machines/templates/machines/aff_mx.html | 15 +- machines/templates/machines/aff_nas.html | 21 +- machines/templates/machines/aff_ns.html | 13 +- machines/templates/machines/aff_role.html | 27 ++- machines/templates/machines/aff_servers.html | 15 +- machines/templates/machines/aff_service.html | 22 +- machines/templates/machines/aff_soa.html | 21 +- machines/templates/machines/aff_srv.html | 25 +- machines/templates/machines/aff_sshfp.html | 17 +- machines/templates/machines/aff_txt.html | 13 +- machines/templates/machines/aff_vlan.html | 21 +- machines/templates/machines/delete.html | 20 +- .../templates/machines/edit_portlist.html | 73 +++--- machines/templates/machines/index.html | 11 +- machines/templates/machines/index_alias.html | 15 +- .../templates/machines/index_extension.html | 123 +++++----- machines/templates/machines/index_iptype.html | 21 +- machines/templates/machines/index_ipv6.html | 19 +- .../templates/machines/index_machinetype.html | 23 +- machines/templates/machines/index_nas.html | 25 +- .../templates/machines/index_portlist.html | 110 +++++---- machines/templates/machines/index_role.html | 17 +- .../templates/machines/index_service.html | 23 +- machines/templates/machines/index_sshfp.html | 3 +- machines/templates/machines/index_vlan.html | 19 +- machines/templates/machines/machine.html | 214 +++++++++--------- machines/templates/machines/sidebar.html | 15 +- 34 files changed, 654 insertions(+), 652 deletions(-) diff --git a/machines/templates/machines/aff_alias.html b/machines/templates/machines/aff_alias.html index 17266a6e..5a1bc8f8 100644 --- a/machines/templates/machines/aff_alias.html +++ b/machines/templates/machines/aff_alias.html @@ -28,21 +28,20 @@ with this program; if not, write to the Free Software Foundation, Inc., - - - - + + + + {% for alias in alias_list %} {% endfor %}
{% trans "Aliases" %}
{% trans "Aliases" %}
{{ alias }} {% can_edit alias %} - {% include 'buttons/edit.html' with href='machines:edit-alias' id=alias.id %} + {% include 'buttons/edit.html' with href='machines:edit-alias' id=alias.id %} {% acl_end %} {% history_button alias %}
- diff --git a/machines/templates/machines/aff_dname.html b/machines/templates/machines/aff_dname.html index 7e043d7c..66883057 100644 --- a/machines/templates/machines/aff_dname.html +++ b/machines/templates/machines/aff_dname.html @@ -26,11 +26,11 @@ with this program; if not, write to the Free Software Foundation, Inc., - - - - - + + + + + {% for dname in dname_list %} @@ -38,11 +38,10 @@ with this program; if not, write to the Free Software Foundation, Inc., {% endfor %}
{% trans "Target zone" %}{% trans "Record" %}
{% trans "Target zone" %}{% trans "Record" %}
{{ dname.dns_entry }} {% can_edit dname %} - {% include 'buttons/edit.html' with href='machines:edit-dname' id=dname.id %} + {% include 'buttons/edit.html' with href='machines:edit-dname' id=dname.id %} {% acl_end %} {% history_button dname %}
- diff --git a/machines/templates/machines/aff_extension.html b/machines/templates/machines/aff_extension.html index 43bb9e39..b8493f5f 100644 --- a/machines/templates/machines/aff_extension.html +++ b/machines/templates/machines/aff_extension.html @@ -30,34 +30,33 @@ with this program; if not, write to the Free Software Foundation, Inc.,
- - - - - - {% if ipv6_enabled %} + + + + + + {% if ipv6_enabled %} - {% endif %} - - + {% endif %} + + {% for extension in extension_list %} - - - - - - {% if ipv6_enabled %} - - {% endif %} - - + + + + + + {% if ipv6_enabled %} + + {% endif %} + + {% endfor %}
{% trans "Extension" %}{% trans "'infra' right required" %}{% trans "SOA record" %}{% trans "A record origin" %}
{% trans "Extension" %}{% trans "'infra' right required" %}{% trans "SOA record" %}{% trans "A record origin" %}{% trans "AAAA record origin" %}
{{ extension.name }}{{ extension.need_infra|tick }}{{ extension.soa }}{{ extension.origin }}{{ extension.origin_v6 }} - {% can_edit extension %} - {% include 'buttons/edit.html' with href='machines:edit-extension' id=extension.id %} - {% acl_end %} - {% history_button extension %} -
{{ extension.name }}{{ extension.need_infra|tick }}{{ extension.soa }}{{ extension.origin }}{{ extension.origin_v6 }} + {% can_edit extension %} + {% include 'buttons/edit.html' with href='machines:edit-extension' id=extension.id %} + {% acl_end %} + {% history_button extension %} +
- diff --git a/machines/templates/machines/aff_iptype.html b/machines/templates/machines/aff_iptype.html index b8ed5293..b408bfb1 100644 --- a/machines/templates/machines/aff_iptype.html +++ b/machines/templates/machines/aff_iptype.html @@ -31,36 +31,36 @@ with this program; if not, write to the Free Software Foundation, Inc.,
- - - - - - - - - - - + + + + + + + + + + + {% for type in iptype_list %} - - - - - - - - - - - + + + + + + + + + + + {% endfor %}
{% trans "IP type" %}{% trans "Extension" %}{% trans "'infra' right required" %}{% trans "IPv4 range" %}{% trans "v6 prefix" %}{% trans "DNSSEC reverse v4/v6" %}{% trans "On VLAN(s)" %}{% trans "Default ports opening" %}
{% trans "IP type" %}{% trans "Extension" %}{% trans "'infra' right required" %}{% trans "IPv4 range" %}{% trans "v6 prefix" %}{% trans "DNSSEC reverse v4/v6" %}{% trans "On VLAN(s)" %}{% trans "Default ports opening" %}
{{ type.type }}{{ type.extension }}{{ type.need_infra|tick }}{{ type.domaine_ip_start }}-{{ type.domaine_ip_stop }}{% if type.ip_network %} on {{ type.ip_network }}{% endif %}{{ type.prefix_v6 }}/{{ type.prefix_v6_length }}{{ type.reverse_v4|tick }}/{{ type.reverse_v6|tick }}{{ type.vlan }}{{ type.ouverture_ports }} - {% can_edit type %} - {% include 'buttons/edit.html' with href='machines:edit-iptype' id=type.id %} - {% acl_end %} - {% history_button type %} -
{{ type.type }}{{ type.extension }}{{ type.need_infra|tick }}{{ type.domaine_ip_start }}-{{ type.domaine_ip_stop }}{% if type.ip_network %} on + {{ type.ip_network }}{% endif %}{{ type.prefix_v6 }}/{{ type.prefix_v6_length }}{{ type.reverse_v4|tick }}/{{ type.reverse_v6|tick }}{{ type.vlan }}{{ type.ouverture_ports }} + {% can_edit type %} + {% include 'buttons/edit.html' with href='machines:edit-iptype' id=type.id %} + {% acl_end %} + {% history_button type %} +
- diff --git a/machines/templates/machines/aff_ipv6.html b/machines/templates/machines/aff_ipv6.html index a98c0327..e8e4a48e 100644 --- a/machines/templates/machines/aff_ipv6.html +++ b/machines/templates/machines/aff_ipv6.html @@ -28,26 +28,25 @@ with this program; if not, write to the Free Software Foundation, Inc., - - - - - - + + + + + + {% for ipv6 in ipv6_list %} {% endfor %}
{% trans "IPv6 addresses" %}{% trans "SLAAC" %}
{% trans "IPv6 addresses" %}{% trans "SLAAC" %}
{{ ipv6.ipv6 }} {{ ipv6.slaac_ip }} {% can_edit ipv6 %} - {% include 'buttons/edit.html' with href='machines:edit-ipv6list' id=ipv6.id %} + {% include 'buttons/edit.html' with href='machines:edit-ipv6list' id=ipv6.id %} {% acl_end %} {% can_delete ipv6 %} - {% include 'buttons/suppr.html' with href='machines:del-ipv6list' id=ipv6.id %} + {% include 'buttons/suppr.html' with href='machines:del-ipv6list' id=ipv6.id %} {% acl_end %} {% history_button ipv6 %}
- diff --git a/machines/templates/machines/aff_machines.html b/machines/templates/machines/aff_machines.html index 76ba3451..bd65fc76 100644 --- a/machines/templates/machines/aff_machines.html +++ b/machines/templates/machines/aff_machines.html @@ -28,7 +28,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% if machines_list.paginator %} - {% include "pagination.html" with list=machines_list %} + {% include "pagination.html" with list=machines_list %} {% endif %} @@ -61,156 +61,160 @@ with this program; if not, write to the Free Software Foundation, Inc., {% 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 %} - {% acl_end %} - {% history_button machine %} - {% can_delete machine %} + {% acl_end %} + {% history_button machine %} + {% can_delete machine %} {% include 'buttons/suppr.html' with href='machines:del-machine' id=machine.id %} - {% acl_end %} - - - {% for interface in machine.interface_set.all %} + {% acl_end %} + + + {% for interface in machine.interface_set.all %} + - {% if ipv6_enabled and interface.ipv6 != 'None'%} - - - + {% if ipv6_enabled and interface.ipv6 != 'None' %} + + + {% endif %} {% if interface.domain.related_domain.all %} - - - + + + {% endif %} - {% endfor %} - - - {% endfor %} - - + + + + {% endfor %} +
{% if interface.domain.related_domain.all %} - {{ interface.domain }} - + {{ interface.domain }} + {% else %} - {{ interface.domain }} + {{ interface.domain }} {% endif %} {{ interface.type }} - {{ interface.mac_address }} IPv4 {{ interface.ipv4 }}
- {% if ipv6_enabled and interface.ipv6 != 'None'%} - IPv6 - + {% if ipv6_enabled and interface.ipv6 != 'None' %} + IPv6 + {% endif %}
-
{% history_button interface %} {% can_delete interface %} - {% include 'buttons/suppr.html' with href='machines:del-interface' id=interface.id %} + {% include 'buttons/suppr.html' with href='machines:del-interface' id=interface.id %} {% acl_end %}
-
-
    - {% for ipv6 in interface.ipv6.all %} -
  • - {{ ipv6 }} -
  • - {% endfor %} -
-
-
+
+
    + {% for ipv6 in interface.ipv6.all %} +
  • + {{ ipv6 }} +
  • + {% endfor %} +
+
+
-
-
    - {% for al in interface.domain.related_domain.all %} -
  • - - {{ al }} - - -
  • - {% endfor %} -
-
-
+
+
    + {% for al in interface.domain.related_domain.all %} +
  • + + {{ al }} + + +
  • + {% endfor %} +
+
+
{% if machines_list.paginator %} - {% include "pagination.html" with list=machines_list %} + {% include "pagination.html" with list=machines_list %} {% endif %}
- diff --git a/machines/templates/machines/aff_machinetype.html b/machines/templates/machines/aff_machinetype.html index 4725ffb8..a55a5370 100644 --- a/machines/templates/machines/aff_machinetype.html +++ b/machines/templates/machines/aff_machinetype.html @@ -28,11 +28,11 @@ with this program; if not, write to the Free Software Foundation, Inc., - - - - - + + + + + {% for type in machinetype_list %} @@ -40,11 +40,10 @@ with this program; if not, write to the Free Software Foundation, Inc., {% endfor %}
{% trans "Machine type" %}{% trans "Matching IP type" %}
{% trans "Machine type" %}{% trans "Matching IP type" %}
{{ type.ip_type }} {% can_edit type %} - {% include 'buttons/edit.html' with href='machines:edit-machinetype' id=type.id %} + {% include 'buttons/edit.html' with href='machines:edit-machinetype' id=type.id %} {% acl_end %} {% history_button type %}
- diff --git a/machines/templates/machines/aff_mx.html b/machines/templates/machines/aff_mx.html index e57e73a4..4a50724b 100644 --- a/machines/templates/machines/aff_mx.html +++ b/machines/templates/machines/aff_mx.html @@ -28,12 +28,12 @@ with this program; if not, write to the Free Software Foundation, Inc., - - - - - - + + + + + + {% for mx in mx_list %} @@ -42,11 +42,10 @@ with this program; if not, write to the Free Software Foundation, Inc., {% endfor %}
{% trans "Concerned zone" %}{% trans "Priority" %}{% trans "Record" %}
{% trans "Concerned zone" %}{% trans "Priority" %}{% trans "Record" %}
{{ mx.name }} {% can_edit mx %} - {% include 'buttons/edit.html' with href='machines:edit-mx' id=mx.id %} + {% include 'buttons/edit.html' with href='machines:edit-mx' id=mx.id %} {% acl_end %} {% history_button mx %}
- diff --git a/machines/templates/machines/aff_nas.html b/machines/templates/machines/aff_nas.html index 0dd612cc..84013f90 100644 --- a/machines/templates/machines/aff_nas.html +++ b/machines/templates/machines/aff_nas.html @@ -29,29 +29,28 @@ with this program; if not, write to the Free Software Foundation, Inc., - - - - - - - - + + + + + + + + {% for nas in nas_list %} - + {% endfor %}
{% trans "Name" %}{% trans "NAS device type" %}{% trans "Machine type linked to the NAS device" %}{% trans "Access mode" %}{% trans "MAC address auto capture" %}
{% trans "Name" %}{% trans "NAS device type" %}{% trans "Machine type linked to the NAS device" %}{% trans "Access mode" %}{% trans "MAC address auto capture" %}
{{ nas.name }}{{ nas.nas_type }}{{ nas.nas_type }} {{ nas.machine_type }} {{ nas.port_access_mode }} {{ nas.autocapture_mac|tick }} {% can_edit nas %} - {% include 'buttons/edit.html' with href='machines:edit-nas' id=nas.id %} + {% include 'buttons/edit.html' with href='machines:edit-nas' id=nas.id %} {% acl_end %} {% history_button nas %}
- diff --git a/machines/templates/machines/aff_ns.html b/machines/templates/machines/aff_ns.html index e2187e3e..2968607a 100644 --- a/machines/templates/machines/aff_ns.html +++ b/machines/templates/machines/aff_ns.html @@ -28,11 +28,11 @@ with this program; if not, write to the Free Software Foundation, Inc., - - - - - + + + + + {% for ns in ns_list %} @@ -40,11 +40,10 @@ with this program; if not, write to the Free Software Foundation, Inc., {% endfor %}
{% trans "Concerned zone" %}{% trans "Authoritarian interface for the concerned zone" %}
{% trans "Concerned zone" %}{% trans "Authoritarian interface for the concerned zone" %}
{{ ns.ns }} {% can_edit ns %} - {% include 'buttons/edit.html' with href='machines:edit-ns' id=ns.id %} + {% include 'buttons/edit.html' with href='machines:edit-ns' id=ns.id %} {% acl_end %} {% history_button ns %}
- diff --git a/machines/templates/machines/aff_role.html b/machines/templates/machines/aff_role.html index bba094b3..b6303917 100644 --- a/machines/templates/machines/aff_role.html +++ b/machines/templates/machines/aff_role.html @@ -29,13 +29,13 @@ with this program; if not, write to the Free Software Foundation, Inc., - - - - - - - + + + + + + + {% for role in role_list %} @@ -43,12 +43,11 @@ with this program; if not, write to the Free Software Foundation, Inc., - + {% can_edit role %} + {% include 'buttons/edit.html' with href='machines:edit-role' id=role.id %} + {% acl_end %} + {% history_button role %} + + {% endfor %}
{% trans "Role name" %}{% trans "Specific role" %}{% trans "Servers" %}
{% trans "Role name" %}{% trans "Specific role" %}{% trans "Servers" %}
{{ role.specific_role }} {% for serv in role.servers.all %}{{ serv }}, {% endfor %} - {% can_edit role %} - {% include 'buttons/edit.html' with href='machines:edit-role' id=role.id %} - {% acl_end %} - {% history_button role %} -
- diff --git a/machines/templates/machines/aff_servers.html b/machines/templates/machines/aff_servers.html index 7dd25495..4134c269 100644 --- a/machines/templates/machines/aff_servers.html +++ b/machines/templates/machines/aff_servers.html @@ -27,13 +27,13 @@ with this program; if not, write to the Free Software Foundation, Inc., - - - - - - - + + + + + + + {% for server in servers_list %} @@ -47,4 +47,3 @@ with this program; if not, write to the Free Software Foundation, Inc., {% endfor %}
{% trans "Service name" %}{% trans "Server" %}{% trans "Last regeneration" %}{% trans "Regeneration required" %}{% trans "Regeneration activated" %}
{% trans "Service name" %}{% trans "Server" %}{% trans "Last regeneration" %}{% trans "Regeneration required" %}{% trans "Regeneration activated" %}
- diff --git a/machines/templates/machines/aff_service.html b/machines/templates/machines/aff_service.html index df04b93c..102ceead 100644 --- a/machines/templates/machines/aff_service.html +++ b/machines/templates/machines/aff_service.html @@ -28,14 +28,14 @@ with this program; if not, write to the Free Software Foundation, Inc., - - - - - - - - + + + + + + + + {% for service in service_list %} @@ -43,14 +43,14 @@ with this program; if not, write to the Free Software Foundation, Inc., - + {% endfor %}
{% trans "Service name" %}{% trans "Minimal time before regeneration" %}{% trans "Maximal time before regeneration" %}{% trans "Included servers" %}{% trans "Ask for regeneration" %}
{% trans "Service name" %}{% trans "Minimal time before regeneration" %}{% trans "Maximal time before regeneration" %}{% trans "Included servers" %}{% trans "Ask for regeneration" %}
{{ service.min_time_regen }} {{ service.regular_time_regen }} {% for serv in service.servers.all %}{{ serv }}, {% endfor %} {% can_edit service %} - {% include 'buttons/edit.html' with href='machines:edit-service' id=service.id %} + {% include 'buttons/edit.html' with href='machines:edit-service' id=service.id %} {% acl_end %} {% history_button service %}
- diff --git a/machines/templates/machines/aff_soa.html b/machines/templates/machines/aff_soa.html index fbf206e0..9199533e 100644 --- a/machines/templates/machines/aff_soa.html +++ b/machines/templates/machines/aff_soa.html @@ -28,15 +28,15 @@ with this program; if not, write to the Free Software Foundation, Inc., - - - - - - - - - + + + + + + + + + {% for soa in soa_list %} @@ -48,11 +48,10 @@ with this program; if not, write to the Free Software Foundation, Inc., {% endfor %}
{% trans "Name" %}{% trans "Mail" %}{% trans "Refresh" %}{% trans "Retry" %}{% trans "Expire" %}{% trans "TTL" %}
{% trans "Name" %}{% trans "Mail" %}{% trans "Refresh" %}{% trans "Retry" %}{% trans "Expire" %}{% trans "TTL" %}
{{ soa.ttl }} {% can_edit soa %} - {% include 'buttons/edit.html' with href='machines:edit-soa' id=soa.id %} + {% include 'buttons/edit.html' with href='machines:edit-soa' id=soa.id %} {% acl_end %} {% history_button soa %}
- diff --git a/machines/templates/machines/aff_srv.html b/machines/templates/machines/aff_srv.html index 2ee569e0..71fb78a2 100644 --- a/machines/templates/machines/aff_srv.html +++ b/machines/templates/machines/aff_srv.html @@ -28,17 +28,17 @@ with this program; if not, write to the Free Software Foundation, Inc., - - - - - - - - - - - + + + + + + + + + + + {% for srv in srv_list %} @@ -52,11 +52,10 @@ with this program; if not, write to the Free Software Foundation, Inc., {% endfor %}
{% trans "Service" %}{% trans "Protocol" %}{% trans "Extension" %}{% trans "TTL" %}{% trans "Priority" %}{% trans "Weight" %}{% trans "Port" %}{% trans "Target" %}
{% trans "Service" %}{% trans "Protocol" %}{% trans "Extension" %}{% trans "TTL" %}{% trans "Priority" %}{% trans "Weight" %}{% trans "Port" %}{% trans "Target" %}
{{ srv.target }} {% can_edit srv %} - {% include 'buttons/edit.html' with href='machines:edit-srv' id=srv.id %} + {% include 'buttons/edit.html' with href='machines:edit-srv' id=srv.id %} {% acl_end %} {% history_button srv %}
- diff --git a/machines/templates/machines/aff_sshfp.html b/machines/templates/machines/aff_sshfp.html index f684d6a0..08d1df13 100644 --- a/machines/templates/machines/aff_sshfp.html +++ b/machines/templates/machines/aff_sshfp.html @@ -27,12 +27,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
- - - - - - + + + + + + {% for sshfp in sshfp_list %} @@ -41,15 +41,14 @@ with this program; if not, write to the Free Software Foundation, Inc., {% endfor %}
{% trans "SSH public key" %}{% trans "Algorithm used" %}{% trans "Comment" %}
{% trans "SSH public key" %}{% trans "Algorithm used" %}{% trans "Comment" %}
{{ sshfp.comment }} {% can_edit sshfp %} - {% include 'buttons/edit.html' with href='machines:edit-sshfp' id=sshfp.id %} + {% include 'buttons/edit.html' with href='machines:edit-sshfp' id=sshfp.id %} {% acl_end %} {% history_button sshfp %} {% can_delete sshfp %} - {% include 'buttons/suppr.html' with href='machines:del-sshfp' id=sshfp.id %} + {% include 'buttons/suppr.html' with href='machines:del-sshfp' id=sshfp.id %} {% acl_end %}
- diff --git a/machines/templates/machines/aff_txt.html b/machines/templates/machines/aff_txt.html index 41778cba..456f7343 100644 --- a/machines/templates/machines/aff_txt.html +++ b/machines/templates/machines/aff_txt.html @@ -28,11 +28,11 @@ with this program; if not, write to the Free Software Foundation, Inc., - - - - - + + + + + {% for txt in txt_list %} @@ -40,11 +40,10 @@ with this program; if not, write to the Free Software Foundation, Inc., {% endfor %}
{% trans "Concerned zone" %}{% trans "Record" %}
{% trans "Concerned zone" %}{% trans "Record" %}
{{ txt.dns_entry }} {% can_edit txt %} - {% include 'buttons/edit.html' with href='machines:edit-txt' id=txt.id %} + {% include 'buttons/edit.html' with href='machines:edit-txt' id=txt.id %} {% acl_end %} {% history_button txt %}
- diff --git a/machines/templates/machines/aff_vlan.html b/machines/templates/machines/aff_vlan.html index 0c1ed053..3ccbfcb0 100644 --- a/machines/templates/machines/aff_vlan.html +++ b/machines/templates/machines/aff_vlan.html @@ -29,23 +29,23 @@ with this program; if not, write to the Free Software Foundation, Inc.,
- - - - - - - + + + + + + + {% for vlan in vlan_list %} - + - + @@ -53,4 +53,3 @@ with this program; if not, write to the Free Software Foundation, Inc., {% endfor %}
{% trans "ID" %}{% trans "Name" %}{% trans "Comment" %}{% trans "IP ranges" %}
{% trans "ID" %}{% trans "Name" %}{% trans "Comment" %}{% trans "IP ranges" %}
{{ vlan.vlan_id }}{{ vlan.name }}{{ vlan.name }} {{ vlan.comment }}{% for range in vlan.iptype_set.all %}{{ range }}, {% endfor%}{% for range in vlan.iptype_set.all %}{{ range }}, {% endfor %} {% can_edit vlan %} - {% include 'buttons/edit.html' with href='machines:edit-vlan' id=vlan.id %} + {% include 'buttons/edit.html' with href='machines:edit-vlan' id=vlan.id %} {% acl_end %} {% history_button vlan %}
- diff --git a/machines/templates/machines/delete.html b/machines/templates/machines/delete.html index ae365c69..f009f905 100644 --- a/machines/templates/machines/delete.html +++ b/machines/templates/machines/delete.html @@ -30,14 +30,14 @@ with this program; if not, write to the Free Software Foundation, Inc., {% block content %} -
- {% csrf_token %} -

{% blocktrans %}Warning: are you sure you want to delete this object {{ objet_name }} ( {{ objet }} )?{% endblocktrans %}

- {% trans "Confirm" as tr_confirm %} - {% bootstrap_button tr_confirm button_type="submit" icon='trash' button_class='btn-danger' %} -
-
-
-
+
+ {% csrf_token %} +

{% blocktrans %}Warning: are you sure you want to delete this object {{ objet_name }} ( {{ objet }} + )?{% endblocktrans %}

+ {% trans "Confirm" as tr_confirm %} + {% bootstrap_button tr_confirm button_type="submit" icon='trash' button_class='btn-danger' %} +
+
+
+
{% endblock %} - diff --git a/machines/templates/machines/edit_portlist.html b/machines/templates/machines/edit_portlist.html index 5bb8723f..a7aa6f04 100644 --- a/machines/templates/machines/edit_portlist.html +++ b/machines/templates/machines/edit_portlist.html @@ -29,44 +29,45 @@ with this program; if not, write to the Free Software Foundation, Inc., {% block title %}{% trans "Machines" %}{% endblock %} {% block content %} -{% bootstrap_form_errors port_list %} + {% bootstrap_form_errors port_list %} -
- {% csrf_token %} - {% bootstrap_form port_list %} - {{ ports.management_form }} -
- {% for form in ports.forms %} -
-

- {{ form }} -

-
- {% endfor %} -
+ + {% csrf_token %} + {% bootstrap_form port_list %} + {{ ports.management_form }} +
+ {% for form in ports.forms %} +
+

+ {{ form }} +

+
+ {% endfor %} +
-

- {% trans "Add a port" as value %} - -

- {% trans "Create or edit" as tr_create_or_edit %} - {% bootstrap_button tr_create_or_edit icon='ok' button_class='btn-success' %} -
- + function add_port() { + var new_index = document.getElementsByClassName('port').length; + document.getElementById('id_form-TOTAL_FORMS').value = + parseInt(document.getElementById('id_form-TOTAL_FORMS').value) + 1; + var new_port = document.createElement('div'); + new_port.className = 'port'; + new_port.innerHTML = template.replace(/__prefix__/g, new_index); + document.getElementById('formset').appendChild(new_port); + } + + document.addEventListener("DOMContentLoaded", function () { + document.getElementById("add_one").addEventListener("click", add_port, true); + }); + {% endblock %} - diff --git a/machines/templates/machines/index.html b/machines/templates/machines/index.html index 509334a0..ceef062c 100644 --- a/machines/templates/machines/index.html +++ b/machines/templates/machines/index.html @@ -29,10 +29,9 @@ with this program; if not, write to the Free Software Foundation, Inc., {% block title %}{% trans "Machines" %}{% endblock %} {% block content %} -

{% trans "Machines" %}

- {% include "machines/aff_machines.html" with machines_list=machines_list %} -
-
-
+

{% trans "Machines" %}

+ {% include "machines/aff_machines.html" with machines_list=machines_list %} +
+
+
{% endblock %} - diff --git a/machines/templates/machines/index_alias.html b/machines/templates/machines/index_alias.html index 2d33177f..a2ffe66b 100644 --- a/machines/templates/machines/index_alias.html +++ b/machines/templates/machines/index_alias.html @@ -30,11 +30,12 @@ with this program; if not, write to the Free Software Foundation, Inc., {% block content %}

{% trans "List of the aliases of the interface" %}

- {% trans " Add an alias" %} - {% trans " Delete one or several aliases" %} - {% include "machines/aff_alias.html" with alias_list=alias_list %} -
-
-
+ {% trans " Add an alias" %} + {% trans " Delete one or several aliases" %} + {% include "machines/aff_alias.html" with alias_list=alias_list %} +
+
+
{% endblock %} - diff --git a/machines/templates/machines/index_extension.html b/machines/templates/machines/index_extension.html index 6669d197..e689d479 100644 --- a/machines/templates/machines/index_extension.html +++ b/machines/templates/machines/index_extension.html @@ -24,67 +24,86 @@ with this program; if not, write to the Free Software Foundation, Inc., {% endcomment %} {% load bootstrap3 %} - {% load acl %} {% load i18n %} {% block title %}{% trans "Machines" %}{% endblock %} {% block content %} -

{% trans "List of extensions" %}

- {% can_create Extension %} - {% trans " Add an extension" %} - {% acl_end %} - {% trans " Delete one or several extensions" %} - {% include "machines/aff_extension.html" with extension_list=extension_list %} +

{% trans "List of extensions" %}

+ {% can_create Extension %} + + + {% trans " Add an extension" %} + {% acl_end %} + + {% trans " Delete one or several extensions" %} + + {% include "machines/aff_extension.html" with extension_list=extension_list %} -

{% trans "List of SOA records" %}

- {% can_create SOA %} - {% trans " Add an SOA record" %} - {% acl_end %} - {% trans " Delete one or several SOA records" %} - {% include "machines/aff_soa.html" with soa_list=soa_list %} +

{% trans "List of SOA records" %}

+ {% can_create SOA %} + + {% trans " Add an SOA record" %} + + {% acl_end %} + + {% trans " Delete one or several SOA records" %} + + {% include "machines/aff_soa.html" with soa_list=soa_list %} -

{% trans "List of MX records" %}

- {% can_create Mx %} - {% trans " Add an MX record" %} - {% acl_end %} - {% trans " Delete one or several MX records" %} - {% include "machines/aff_mx.html" with mx_list=mx_list %} +

{% trans "List of MX records" %}

+ {% can_create Mx %} + + {% trans " Add an MX record" %} + + {% acl_end %} + + {% trans " Delete one or several MX records" %} + + {% include "machines/aff_mx.html" with mx_list=mx_list %} -

{% trans "List of NS records" %}

- {% can_create Ns %} - {% trans " Add an NS record" %} - {% acl_end %} - {% trans " Delete one or several NS records" %} - {% include "machines/aff_ns.html" with ns_list=ns_list %} +

{% trans "List of NS records" %}

+ {% can_create Ns %} + + {% trans " Add an NS record" %} + + {% acl_end %} + + {% trans " Delete one or several NS records" %} + + {% include "machines/aff_ns.html" with ns_list=ns_list %} -

{% trans "List of TXT records" %}

- {% can_create Txt %} - {% trans " Add a TXT record" %} - {% acl_end %} - {% trans " Delete one or several TXT records" %} - {% include "machines/aff_txt.html" with txt_list=txt_list %} +

{% trans "List of TXT records" %}

+ {% can_create Txt %} + + {% trans " Add a TXT record" %} + + {% acl_end %} + + {% trans " Delete one or several TXT records" %} + + {% include "machines/aff_txt.html" with txt_list=txt_list %} -

{% trans "List of DNAME records" %}

- {% can_create DName %} - - {% trans " Add a DNAME record" %} - - {% acl_end %} - - {% trans " Delete one or several DNAME records" %} - - {% include "machines/aff_dname.html" with dname_list=dname_list %} - -

{% trans "List of SRV records" %}

- {% can_create Srv %} - {% trans " Add an SRV record" %} - {% acl_end %} - {% trans " Delete one or several SRV records" %} - {% include "machines/aff_srv.html" with srv_list=srv_list %} -
-
-
- {% endblock %} +

{% trans "List of DNAME records" %}

+ {% can_create DName %} + + {% trans " Add a DNAME record" %} + + {% acl_end %} + + {% trans " Delete one or several DNAME records" %} + + {% include "machines/aff_dname.html" with dname_list=dname_list %} +

{% trans "List of SRV records" %}

+ {% can_create Srv %} + + {% trans " Add an SRV record" %} + + {% acl_end %} + + {% trans " Delete one or several SRV records" %} + + {% include "machines/aff_srv.html" with srv_list=srv_list %} +{% endblock %} diff --git a/machines/templates/machines/index_iptype.html b/machines/templates/machines/index_iptype.html index 5be4561d..fea17993 100644 --- a/machines/templates/machines/index_iptype.html +++ b/machines/templates/machines/index_iptype.html @@ -24,21 +24,20 @@ with this program; if not, write to the Free Software Foundation, Inc., {% endcomment %} {% load bootstrap3 %} - {% load acl %} {% load i18n %} {% block title %}{% trans "Machines" %}{% endblock %} {% block content %} -

{% trans "List of IP types" %}

- {% can_create IpType %} - {% trans " Add an IP type" %} - {% acl_end %} - {% trans " Delete one or several IP types" %} - {% include "machines/aff_iptype.html" with iptype_list=iptype_list %} -
-
-
+

{% trans "List of IP types" %}

+ {% can_create IpType %} + + {% trans " Add an IP type" %} + + {% acl_end %} + + {% trans " Delete one or several IP types" %} + + {% include "machines/aff_iptype.html" with iptype_list=iptype_list %} {% endblock %} - diff --git a/machines/templates/machines/index_ipv6.html b/machines/templates/machines/index_ipv6.html index 06e287e2..2ab2231e 100644 --- a/machines/templates/machines/index_ipv6.html +++ b/machines/templates/machines/index_ipv6.html @@ -30,13 +30,14 @@ with this program; if not, write to the Free Software Foundation, Inc., {% block title %}{% trans "Machines" %}{% endblock %} {% block content %} -

{% trans "List of the IPv6 addresses of the interface" %}

- {% can_create Ipv6List interface_id %} - {% trans " Add an IPv6 address" %} - {% acl_end %} - {% include "machines/aff_ipv6.html" with ipv6_list=ipv6_list %} -
-
-
+

{% trans "List of the IPv6 addresses of the interface" %}

+ {% can_create Ipv6List interface_id %} + + {% trans " Add an IPv6 address" %} + + {% acl_end %} + {% include "machines/aff_ipv6.html" with ipv6_list=ipv6_list %} +
+
+
{% endblock %} - diff --git a/machines/templates/machines/index_machinetype.html b/machines/templates/machines/index_machinetype.html index de1e2f58..5d184e29 100644 --- a/machines/templates/machines/index_machinetype.html +++ b/machines/templates/machines/index_machinetype.html @@ -31,14 +31,17 @@ with this program; if not, write to the Free Software Foundation, Inc., {% block title %}{% trans "Machines" %}{% endblock %} {% block content %} -

{% trans "List of machine types" %}

- {% can_create MachineType %} - {% trans " Add a machine type" %} - {% acl_end %} - {% trans " Delete one or several machine types" %} - {% include "machines/aff_machinetype.html" with machinetype_list=machinetype_list %} -
-
-
+

{% trans "List of machine types" %}

+ {% can_create MachineType %} + + {% trans " Add a machine type" %} + + {% acl_end %} + + {% trans " Delete one or several machine types" %} + + {% include "machines/aff_machinetype.html" with machinetype_list=machinetype_list %} +
+
+
{% endblock %} - diff --git a/machines/templates/machines/index_nas.html b/machines/templates/machines/index_nas.html index 88f68213..c4da9779 100644 --- a/machines/templates/machines/index_nas.html +++ b/machines/templates/machines/index_nas.html @@ -31,15 +31,18 @@ with this program; if not, write to the Free Software Foundation, Inc., {% block title %}{% trans "Machines" %}{% endblock %} {% block content %} -

{% trans "List of NAS devices" %}

-
{% trans "The NAS device type and machine type are linked. It is useful for MAC address auto capture by RADIUS, and allows to choose the machine type to assign to the machines according to the NAS device type." %}
- {% can_create Nas %} - {% trans " Add a NAS device type" %} - {% acl_end %} - {% trans " Delete one or several NAS device types" %} - {% include "machines/aff_nas.html" with nas_list=nas_list %} -
-
-
+

{% trans "List of NAS devices" %}

+
{% trans "The NAS device type and machine type are linked. It is useful for MAC address auto capture by RADIUS, and allows to choose the machine type to assign to the machines according to the NAS device type." %}
+ {% can_create Nas %} + + {% trans " Add a NAS device type" %} + + {% acl_end %} + + {% trans " Delete one or several NAS device types" %} + + {% include "machines/aff_nas.html" with nas_list=nas_list %} +
+
+
{% endblock %} - diff --git a/machines/templates/machines/index_portlist.html b/machines/templates/machines/index_portlist.html index 0d3d0741..c6659b65 100644 --- a/machines/templates/machines/index_portlist.html +++ b/machines/templates/machines/index_portlist.html @@ -8,60 +8,58 @@ {% block title %}{% trans "Machines" %}{% endblock %} {% block content %} -

{% trans "List of ports configurations" %}

- {% can_create OuverturePortList %} - {% trans " Add a configuration" %} - {% acl_end %} - - - - - - - - - - - - - {% for pl in port_list %} - - - - - - - - - {%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 %} -
-
-
-
- +

{% trans "List of ports configurations" %}

+ {% can_create OuverturePortList %} + + {% trans " Add a configuration" %} + + {% acl_end %} + + + + + + + + + + + + + {% for pl in port_list %} + + + + + + + + + {% 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 %} +
{% endblock %} - diff --git a/machines/templates/machines/index_role.html b/machines/templates/machines/index_role.html index ddc2ea8b..3271bc43 100644 --- a/machines/templates/machines/index_role.html +++ b/machines/templates/machines/index_role.html @@ -30,13 +30,12 @@ with this program; if not, write to the Free Software Foundation, Inc., {% block title %}{% trans "Machines" %}{% endblock %} {% block content %} -

{% trans "List of roles" %}

- {% can_create Role %} - {% trans " Add a role"%} - {% acl_end %} - {% trans " Delete one or several roles" %} - {% include "machines/aff_role.html" with role_list=role_list %} -
-
+

{% trans "List of roles" %}

+ {% can_create Role %} + {% trans " Add a role" %} + {% acl_end %} + {% trans " Delete one or several roles" %} + {% include "machines/aff_role.html" with role_list=role_list %} {% endblock %} - diff --git a/machines/templates/machines/index_service.html b/machines/templates/machines/index_service.html index 9dec7032..a41c79c6 100644 --- a/machines/templates/machines/index_service.html +++ b/machines/templates/machines/index_service.html @@ -30,16 +30,15 @@ with this program; if not, write to the Free Software Foundation, Inc., {% block title %}{% trans "Machines" %}{% endblock %} {% block content %} -

{% trans "List of services" %}

- {% can_create machines.Service %} - {% trans " Add a service" %} - {% acl_end %} - {% trans " Delete one or several services" %} - {% include "machines/aff_service.html" with service_list=service_list %} -

{% trans "States of servers" %}

- {% include "machines/aff_servers.html" with servers_list=servers_list %} -
-
-
-{% endblock %} +

{% trans "List of services" %}

+ {% can_create machines.Service %} + {% trans " Add a service" %} + {% acl_end %} + {% trans " Delete one or several services" %} + {% include "machines/aff_service.html" with service_list=service_list %} +

{% trans "States of servers" %}

+ {% include "machines/aff_servers.html" with servers_list=servers_list %} +{% endblock %} diff --git a/machines/templates/machines/index_sshfp.html b/machines/templates/machines/index_sshfp.html index ce16d621..0233bac4 100644 --- a/machines/templates/machines/index_sshfp.html +++ b/machines/templates/machines/index_sshfp.html @@ -34,6 +34,5 @@ with this program; if not, write to the Free Software Foundation, Inc., {% trans " Add an SSH fingerprint" %} {% acl_end %} - {% include "machines/aff_sshfp.html" with sshfp_list=sshfp_list %} + {% include "machines/aff_sshfp.html" with sshfp_list=sshfp_list %} {% endblock %} - diff --git a/machines/templates/machines/index_vlan.html b/machines/templates/machines/index_vlan.html index 7af31fd5..f34f3ebb 100644 --- a/machines/templates/machines/index_vlan.html +++ b/machines/templates/machines/index_vlan.html @@ -24,21 +24,18 @@ with this program; if not, write to the Free Software Foundation, Inc., {% endcomment %} {% load bootstrap3 %} - {% load acl %} {% load i18n %} {% block title %}{% trans "Machines" %}{% endblock %} {% block content %} -

{% trans "List of VLANs" %}

- {% can_create Vlan %} - {% trans " Add a VLAN" %} - {% acl_end %} - {% trans " Delete one or several VLANs" %} - {% include "machines/aff_vlan.html" with vlan_list=vlan_list %} -
-
-
+

{% trans "List of VLANs" %}

+ {% can_create Vlan %} + {% trans " Add a VLAN" %} + {% acl_end %} + {% trans " Delete one or several VLANs" %} + {% include "machines/aff_vlan.html" with vlan_list=vlan_list %} {% endblock %} - diff --git a/machines/templates/machines/machine.html b/machines/templates/machines/machine.html index ed6529d0..1a8ce8b1 100644 --- a/machines/templates/machines/machine.html +++ b/machines/templates/machines/machine.html @@ -31,147 +31,143 @@ with this program; if not, write to the Free Software Foundation, Inc., {% block title %}{% trans "Machines" %}{% endblock %} {% block content %} -{% if machineform %} - {% bootstrap_form_errors machineform %} -{% endif %} -{% if interfaceform %} - {% bootstrap_form_errors interfaceform %} -{% endif %} -{% if domainform %} - {% bootstrap_form_errors domainform %} -{% endif %} -{% if iptypeform %} - {% bootstrap_form_errors iptypeform %} -{% endif %} -{% if machinetypeform %} - {% bootstrap_form_errors machinetypeform %} -{% endif %} -{% if extensionform %} - {% bootstrap_form_errors extensionform %} -{% endif %} -{% if mxform %} - {% bootstrap_form_errors mxform %} -{% endif %} -{% if nsform %} - {% bootstrap_form_errors nsform %} -{% endif %} -{% if txtform %} - {% bootstrap_form_errors txtform %} -{% endif %} -{% if dnameform %} - {% bootstrap_form_errors dnameform %} -{% endif %} -{% if srvform %} - {% bootstrap_form_errors srvform %} -{% endif %} -{% if aliasform %} - {% bootstrap_form_errors aliasform %} -{% endif %} -{% if serviceform %} - {% bootstrap_form_errors serviceform %} -{% endif %} -{% if sshfpform %} - {% bootstrap_form_errors sshfpform %} -{% endif %} -{% if roleform %} - {% bootstrap_form_errors roleform %} -{% endif %} -{% if vlanform %} - {% bootstrap_form_errors vlanform %} -{% endif %} -{% if nasform %} - {% bootstrap_form_errors nasform %} -{% endif %} -{% if ipv6form %} - {% bootstrap_form_errors ipv6form %} -{% endif %} - -
- {% csrf_token %} {% if machineform %} -

{% trans "Machine" %}

- {% massive_bootstrap_form machineform 'user' %} + {% bootstrap_form_errors machineform %} {% endif %} {% if interfaceform %} -

{% trans "Interface" %}

- {% if i_mbf_param %} - {% massive_bootstrap_form interfaceform 'ipv4,machine' mbf_param=i_mbf_param %} - {% else %} - {% massive_bootstrap_form interfaceform 'ipv4,machine' %} - {% endif %} + {% bootstrap_form_errors interfaceform %} {% endif %} {% if domainform %} -

{% trans "Domain" %}

- {% bootstrap_form domainform %} + {% bootstrap_form_errors domainform %} {% endif %} {% if iptypeform %} -

{% trans "IP type" %}

- {% bootstrap_form iptypeform %} + {% bootstrap_form_errors iptypeform %} {% endif %} {% if machinetypeform %} -

{% trans "Machine type" %}

- {% bootstrap_form machinetypeform %} + {% bootstrap_form_errors machinetypeform %} {% endif %} {% if extensionform %} -

{% trans "Extension" %}

- {% massive_bootstrap_form extensionform 'origin' %} - {% endif %} - {% if soaform %} -

{% trans "SOA record" %}

- {% bootstrap_form soaform %} + {% bootstrap_form_errors extensionform %} {% endif %} {% if mxform %} -

{% trans "MX record" %}

- {% massive_bootstrap_form mxform 'name' %} + {% bootstrap_form_errors mxform %} {% endif %} {% if nsform %} -

{% trans "NS record" %}

- {% massive_bootstrap_form nsform 'ns' %} + {% bootstrap_form_errors nsform %} {% endif %} {% if txtform %} -

{% trans "TXT record" %}

- {% bootstrap_form txtform %} + {% bootstrap_form_errors txtform %} {% endif %} {% if dnameform %} -

{% trans "DNAME record" %}

- {% bootstrap_form dnameform %} + {% bootstrap_form_errors dnameform %} {% endif %} {% if srvform %} -

{% trans "SRV record" %}

- {% massive_bootstrap_form srvform 'target' %} - {% endif %} - {% if sshfpform %} -

{% trans "SSHFP record" %}

- {% bootstrap_form sshfpform %} + {% bootstrap_form_errors srvform %} {% endif %} {% if aliasform %} -

{% trans "Alias" %}

- {% bootstrap_form aliasform %} + {% bootstrap_form_errors aliasform %} {% endif %} {% if serviceform %} -

{% trans "Service" %}

- {% massive_bootstrap_form serviceform 'servers' %} + {% bootstrap_form_errors serviceform %} + {% endif %} + {% if sshfpform %} + {% bootstrap_form_errors sshfpform %} {% endif %} {% if roleform %} -

Role

- {% massive_bootstrap_form roleform 'servers' %} + {% bootstrap_form_errors roleform %} {% endif %} {% if vlanform %} -

{% trans "VLAN" %}

- {% bootstrap_form vlanform %} + {% bootstrap_form_errors vlanform %} {% endif %} {% if nasform %} -

{% trans "NAS device" %}

- {% bootstrap_form nasform %} + {% bootstrap_form_errors nasform %} {% endif %} {% if ipv6form %} -

{% trans "IPv6 address" %}

- {% bootstrap_form ipv6form %} + {% bootstrap_form_errors ipv6form %} {% endif %} - {% bootstrap_button action_name button_type="submit" icon='ok' button_class='btn-success' %} -
-
-
-
-{% endblock %} +
+ {% csrf_token %} + {% if machineform %} +

{% trans "Machine" %}

+ {% massive_bootstrap_form machineform 'user' %} + {% endif %} + {% if interfaceform %} +

{% trans "Interface" %}

+ {% if i_mbf_param %} + {% massive_bootstrap_form interfaceform 'ipv4,machine' mbf_param=i_mbf_param %} + {% else %} + {% massive_bootstrap_form interfaceform 'ipv4,machine' %} + {% endif %} + {% endif %} + {% if domainform %} +

{% trans "Domain" %}

+ {% bootstrap_form domainform %} + {% endif %} + {% if iptypeform %} +

{% trans "IP type" %}

+ {% bootstrap_form iptypeform %} + {% endif %} + {% if machinetypeform %} +

{% trans "Machine type" %}

+ {% bootstrap_form machinetypeform %} + {% endif %} + {% if extensionform %} +

{% trans "Extension" %}

+ {% massive_bootstrap_form extensionform 'origin' %} + {% endif %} + {% if soaform %} +

{% trans "SOA record" %}

+ {% bootstrap_form soaform %} + {% endif %} + {% if mxform %} +

{% trans "MX record" %}

+ {% massive_bootstrap_form mxform 'name' %} + {% endif %} + {% if nsform %} +

{% trans "NS record" %}

+ {% massive_bootstrap_form nsform 'ns' %} + {% endif %} + {% if txtform %} +

{% trans "TXT record" %}

+ {% bootstrap_form txtform %} + {% endif %} + {% if dnameform %} +

{% trans "DNAME record" %}

+ {% bootstrap_form dnameform %} + {% endif %} + {% if srvform %} +

{% trans "SRV record" %}

+ {% massive_bootstrap_form srvform 'target' %} + {% endif %} + {% if sshfpform %} +

{% trans "SSHFP record" %}

+ {% bootstrap_form sshfpform %} + {% endif %} + {% if aliasform %} +

{% trans "Alias" %}

+ {% bootstrap_form aliasform %} + {% endif %} + {% if serviceform %} +

{% trans "Service" %}

+ {% massive_bootstrap_form serviceform 'servers' %} + {% endif %} + {% if roleform %} +

Role

+ {% massive_bootstrap_form roleform 'servers' %} + {% endif %} + {% if vlanform %} +

{% trans "VLAN" %}

+ {% bootstrap_form vlanform %} + {% endif %} + {% if nasform %} +

{% trans "NAS device" %}

+ {% bootstrap_form nasform %} + {% endif %} + {% if ipv6form %} +

{% trans "IPv6 address" %}

+ {% bootstrap_form ipv6form %} + {% endif %} + {% bootstrap_button action_name button_type="submit" icon='ok' button_class='btn-success' %} +
+{% endblock %} diff --git a/machines/templates/machines/sidebar.html b/machines/templates/machines/sidebar.html index 68e14ae0..81c83ab9 100644 --- a/machines/templates/machines/sidebar.html +++ b/machines/templates/machines/sidebar.html @@ -30,7 +30,7 @@ with this program; if not, write to the Free Software Foundation, Inc., {% can_view_all Machine %} - {% trans "Machines" %} + {% trans "Machines" %} {% acl_end %} {% can_view_all MachineType %} @@ -42,31 +42,31 @@ with this program; if not, write to the Free Software Foundation, Inc., {% can_view_all Extension %} - {% trans "Extensions and zones" %} + {% trans "Extensions and zones" %} {% acl_end %} {% can_view_all IpType %} - {% trans "IP ranges" %} + {% trans "IP ranges" %} {% acl_end %} {% can_view_all Vlan %} - {% trans "VLANs" %} + {% trans "VLANs" %} {% acl_end %} {% can_view_all Nas %} - {% trans "NAS devices" %} + {% trans "NAS devices" %} {% acl_end %} {% can_view_all machines.Service %} - {% trans "Services (DHCP, DNS, ...)" %} + {% trans "Services (DHCP, DNS, ...)" %} {% acl_end %} {% can_view_all Role %} @@ -78,8 +78,7 @@ with this program; if not, write to the Free Software Foundation, Inc., {% can_view_all OuverturePortList %} - {% trans "Ports openings" %} + {% trans "Ports openings" %} {% acl_end %} {% endblock %} -