@ -29,41 +29,29 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% block content %}
<h2>Liste des extensions</h2>
{% if is_infra %}
<aclass="btn btn-primary btn-sm"role="button"href="{% url 'machines:add-extension' %}"><iclass="glyphicon glyphicon-plus"></i> Ajouter une extension</a>
<aclass="btn btn-danger btn-sm"role="button"href="{% url 'machines:del-extension' %}"><iclass="glyphicon glyphicon-trash"></i> Supprimer une ou plusieurs extensions</a>
{% endif %}
{% include "machines/aff_extension.html" with extension_list=extension_list %}
@ -29,10 +29,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% block content %}
<h2>Liste des types d'ip</h2>
{% if is_infra %}
<aclass="btn btn-primary btn-sm"role="button"href="{% url 'machines:add-iptype' %}"><iclass="glyphicon glyphicon-plus"></i> Ajouter un type d'ip</a>
<aclass="btn btn-danger btn-sm"role="button"href="{% url 'machines:del-iptype' %}"><iclass="glyphicon glyphicon-trash"></i> Supprimer un ou plusieurs types d'ip</a>
{% endif %}
{% include "machines/aff_iptype.html" with iptype_list=iptype_list %}
@ -29,10 +29,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% block content %}
<h2>Liste des types de machines</h2>
{% if is_infra %}
<aclass="btn btn-primary btn-sm"role="button"href="{% url 'machines:add-machinetype' %}"><iclass="glyphicon glyphicon-plus"></i> Ajouter un type de machine</a>
<aclass="btn btn-danger btn-sm"role="button"href="{% url 'machines:del-machinetype' %}"><iclass="glyphicon glyphicon-trash"></i> Supprimer un ou plusieurs types de machines</a>
{% endif %}
{% include "machines/aff_machinetype.html" with machinetype_list=machinetype_list %}
@ -31,10 +31,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<h2>Liste des nas</h2>
<h5>La correpondance nas-machinetype relie le type de nas à un type de machine.
Elle est utile pour l'autoenregistrement des macs par radius, et permet de choisir le type de machine à affecter aux machines en fonction du type de nas</h5>
{% if is_infra %}
<aclass="btn btn-primary btn-sm"role="button"href="{% url 'machines:add-nas' %}"><iclass="glyphicon glyphicon-plus"></i> Ajouter un type de nas</a>
<aclass="btn btn-danger btn-sm"role="button"href="{% url 'machines:del-nas' %}"><iclass="glyphicon glyphicon-trash"></i> Supprimer un ou plusieurs types nas</a>
{% endif %}
{% include "machines/aff_nas.html" with nas_list=nas_list %}
@ -29,10 +29,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% block content %}
<h2>Liste des services</h2>
{% if is_infra %}
<aclass="btn btn-primary btn-sm"role="button"href="{% url 'machines:add-service' %}"><iclass="glyphicon glyphicon-plus"></i> Ajouter un service</a>
<aclass="btn btn-danger btn-sm"role="button"href="{% url 'machines:del-service' %}"><iclass="glyphicon glyphicon-trash"></i> Supprimer un ou plusieurs service</a>
{% endif %}
{% include "machines/aff_service.html" with service_list=service_list %}
<h2>Etat des serveurs</h2>
{% include "machines/aff_servers.html" with servers_list=servers_list %}
@ -29,10 +29,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% block content %}
<h2>Liste des vlans</h2>
{% if is_infra %}
<aclass="btn btn-primary btn-sm"role="button"href="{% url 'machines:add-vlan' %}"><iclass="glyphicon glyphicon-plus"></i> Ajouter un vlan</a>
<aclass="btn btn-danger btn-sm"role="button"href="{% url 'machines:del-vlan' %}"><iclass="glyphicon glyphicon-trash"></i> Supprimer un ou plusieurs vlan</a>
{% endif %}
{% include "machines/aff_vlan.html" with vlan_list=vlan_list %}