var alias_div = [{% for machine in machines_list %}{% for interface in machine.interface_set.all %}{% if interface.domain.related_domain.all %}$("#collapseDomain_{{ interface.id }}"), {% endif %}{% endfor %}{% endfor %}];
for (var i=0; i<alias_div.length;i++){
alias_div[i].collapse('hide');
}
} );
$("#machines_table").ready(function() {
var ipv6_div = [{% for machine in machines_list %}{% for interface in machine.interface_set.all %}{% if interface.ipv6.all %}$("#collapseIpv6_{{ interface.id }}"), {% endif %}{% endfor %}{% endfor %}];
for (var i=0; i<ipv6_div.length;i++){
ipv6_div[i].collapse('hide');
}
} );
$("#machines_table").ready(function() {
var alias_div = [{% for machine in machines_list %}{% for interface in machine.interface_set.all %}{% if interface.domain.related_domain.all %}$("#collapseDomain_{{ interface.id }}"), {% endif %}{% endfor %}{% endfor %}];
for (var i=0; i<alias_div.length;i++){
alias_div[i].collapse('hide');
}
});
$("#machines_table").ready(function() {
var ipv6_div = [{% for machine in machines_list %}{% for interface in machine.interface_set.all %}{% if interface.ipv6.all %}$("#collapseIpv6_{{ interface.id }}"), {% endif %}{% endfor %}{% endfor %}];
for (var i=0; i<ipv6_div.length;i++){
ipv6_div[i].collapse('hide');
}
});
</script>
{% if machines_list.paginator %}
{% include "pagination.html" with list=machines_list %}
{% include "pagination.html" with list=machines_list %}
@ -30,11 +30,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% block content %}
<h2>{% trans "List of the aliases of the interface" %}</h2>
<aclass="btn btn-primary btn-sm"role="button"href="{% url 'machines:add-alias' interface_id %}"><iclass="fa fa-plus"></i>{% trans " Add an alias" %}</a>
<aclass="btn btn-danger btn-sm"role="button"href="{% url 'machines:del-alias' interface_id %}"><iclass="fa fa-trash"></i>{% trans " Delete one or several aliases" %}</a>
{% include "machines/aff_alias.html" with alias_list=alias_list %}
@ -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 %}
<h2>{% trans "List of extensions" %}</h2>
{% can_create Extension %}
<aclass="btn btn-primary btn-sm"role="button"href="{% url 'machines:add-extension' %}"><iclass="fa fa-plus"></i>{% trans " Add an extension" %}</a>
{% acl_end %}
<aclass="btn btn-danger btn-sm"role="button"href="{% url 'machines:del-extension' %}"><iclass="fa fa-trash"></i>{% trans " Delete one or several extensions" %}</a>
{% include "machines/aff_extension.html" with extension_list=extension_list %}
<h2>{% trans "List of SOA records" %}</h2>
{% can_create SOA %}
<aclass="btn btn-primary btn-sm"role="button"href="{% url 'machines:add-soa' %}"><iclass="fa fa-plus"></i>{% trans " Add an SOA record" %}</a>
{% acl_end %}
<aclass="btn btn-danger btn-sm"role="button"href="{% url 'machines:del-soa' %}"><iclass="fa fa-trash"></i>{% trans " Delete one or several SOA records" %}</a>
{% include "machines/aff_soa.html" with soa_list=soa_list %}
<iclass="fa fa-trash"></i>{% trans " Delete one or several extensions" %}
</a>
{% include "machines/aff_extension.html" with extension_list=extension_list %}
<h2>{% trans "List of MX records" %}</h2>
{% can_create Mx %}
<aclass="btn btn-primary btn-sm"role="button"href="{% url 'machines:add-mx' %}"><iclass="fa fa-plus"></i>{% trans " Add an MX record" %}</a>
{% acl_end %}
<aclass="btn btn-danger btn-sm"role="button"href="{% url 'machines:del-mx' %}"><iclass="fa fa-trash"></i>{% trans " Delete one or several MX records" %}</a>
{% include "machines/aff_mx.html" with mx_list=mx_list %}
<iclass="fa fa-trash"></i>{% trans " Delete one or several SOA records" %}
</a>
{% include "machines/aff_soa.html" with soa_list=soa_list %}
<h2>{% trans "List of NS records" %}</h2>
{% can_create Ns %}
<aclass="btn btn-primary btn-sm"role="button"href="{% url 'machines:add-ns' %}"><iclass="fa fa-plus"></i>{% trans " Add an NS record" %}</a>
{% acl_end %}
<aclass="btn btn-danger btn-sm"role="button"href="{% url 'machines:del-ns' %}"><iclass="fa fa-trash"></i>{% trans " Delete one or several NS records" %}</a>
{% include "machines/aff_ns.html" with ns_list=ns_list %}
<iclass="fa fa-trash"></i>{% trans " Delete one or several MX records" %}
</a>
{% include "machines/aff_mx.html" with mx_list=mx_list %}
<h2>{% trans "List of TXT records" %}</h2>
{% can_create Txt %}
<aclass="btn btn-primary btn-sm"role="button"href="{% url 'machines:add-txt' %}"><iclass="fa fa-plus"></i>{% trans " Add a TXT record" %}</a>
{% acl_end %}
<aclass="btn btn-danger btn-sm"role="button"href="{% url 'machines:del-txt' %}"><iclass="fa fa-trash"></i>{% trans " Delete one or several TXT records" %}</a>
{% include "machines/aff_txt.html" with txt_list=txt_list %}
<iclass="fa fa-trash"></i>{% trans " Delete one or several TXT records" %}
</a>
{% include "machines/aff_txt.html" with txt_list=txt_list %}
<h2>{% trans "List of SRV records" %}</h2>
{% can_create Srv %}
<aclass="btn btn-primary btn-sm"role="button"href="{% url 'machines:add-srv' %}"><iclass="fa fa-plus"></i>{% trans " Add an SRV record" %}</a>
{% acl_end %}
<aclass="btn btn-danger btn-sm"role="button"href="{% url 'machines:del-srv' %}"><iclass="fa fa-trash"></i>{% trans " Delete one or several SRV records" %}</a>
{% include "machines/aff_srv.html" with srv_list=srv_list %}
@ -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 %}
<h2>{% trans "List of IP types" %}</h2>
{% can_create IpType %}
<aclass="btn btn-primary btn-sm"role="button"href="{% url 'machines:add-iptype' %}"><iclass="fa fa-plus"></i>{% trans " Add an IP type" %}</a>
{% acl_end %}
<aclass="btn btn-danger btn-sm"role="button"href="{% url 'machines:del-iptype' %}"><iclass="fa fa-trash"></i>{% trans " Delete one or several IP types" %}</a>
{% include "machines/aff_iptype.html" with iptype_list=iptype_list %}
@ -31,14 +31,17 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% block title %}{% trans "Machines" %}{% endblock %}
{% block content %}
<h2>{% trans "List of machine types" %}</h2>
{% can_create MachineType %}
<aclass="btn btn-primary btn-sm"role="button"href="{% url 'machines:add-machinetype' %}"><iclass="fa fa-plus"></i>{% trans " Add a machine type" %}</a>
{% acl_end %}
<aclass="btn btn-danger btn-sm"role="button"href="{% url 'machines:del-machinetype' %}"><iclass="fa fa-trash"></i>{% trans " Delete one or several machine types" %}</a>
{% include "machines/aff_machinetype.html" with machinetype_list=machinetype_list %}
@ -31,15 +31,18 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% block title %}{% trans "Machines" %}{% endblock %}
{% block content %}
<h2>{% trans "List of NAS devices" %}</h2>
<h5>{% 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." %}</h5>
{% can_create Nas %}
<aclass="btn btn-primary btn-sm"role="button"href="{% url 'machines:add-nas' %}"><iclass="fa fa-plus"></i>{% trans " Add a NAS device type" %}</a>
{% acl_end %}
<aclass="btn btn-danger btn-sm"role="button"href="{% url 'machines:del-nas' %}"><iclass="fa fa-trash"></i>{% trans " Delete one or several NAS device types" %}</a>
{% include "machines/aff_nas.html" with nas_list=nas_list %}
<br/>
<br/>
<br/>
<h2>{% trans "List of NAS devices" %}</h2>
<h5>{% 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." %}</h5>
@ -30,13 +30,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% block title %}{% trans "Machines" %}{% endblock %}
{% block content %}
<h2>{% trans "List of roles" %}</h2>
{% can_create Role %}
<aclass="btn btn-primary btn-sm"role="button"href="{% url 'machines:add-role' %}"><iclass="fa fa-plus"></i>{% trans " Add a role"%}</a>
{% acl_end %}
<aclass="btn btn-danger btn-sm"role="button"href="{% url 'machines:del-role' %}"><iclass="fa fa-trash"></i>{% trans " Delete one or several roles" %}</a>
{% include "machines/aff_role.html" with role_list=role_list %}
@ -30,16 +30,15 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% block title %}{% trans "Machines" %}{% endblock %}
{% block content %}
<h2>{% trans "List of services" %}</h2>
{% can_create machines.Service %}
<aclass="btn btn-primary btn-sm"role="button"href="{% url 'machines:add-service' %}"><iclass="fa fa-plus"></i>{% trans " Add a service" %}</a>
{% acl_end %}
<aclass="btn btn-danger btn-sm"role="button"href="{% url 'machines:del-service' %}"><iclass="fa fa-trash"></i>{% trans " Delete one or several services" %}</a>
{% include "machines/aff_service.html" with service_list=service_list %}
<h2>{% trans "States of servers" %}</h2>
{% include "machines/aff_servers.html" with servers_list=servers_list %}
@ -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 %}
<h2>{% trans "List of VLANs" %}</h2>
{% can_create Vlan %}
<aclass="btn btn-primary btn-sm"role="button"href="{% url 'machines:add-vlan' %}"><iclass="fa fa-plus"></i>{% trans " Add a VLAN" %}</a>
{% acl_end %}
<aclass="btn btn-danger btn-sm"role="button"href="{% url 'machines:del-vlan' %}"><iclass="fa fa-trash"></i>{% trans " Delete one or several VLANs" %}</a>
{% include "machines/aff_vlan.html" with vlan_list=vlan_list %}