@@ -25,32 +25,46 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% load bootstrap3 %}
{% load acl %}
{% block title %}Machines{% endblock %}
{% block content %}
<h2>Liste des extensions</h2>
{% can_create Extension %}
<aclass="btn btn-primary btn-sm"role="button"href="{% url 'machines:add-extension' %}"><iclass="glyphicon glyphicon-plus"></i> Ajouter une extension</a>
{% acl_end %}
<aclass="btn btn-danger btn-sm"role="button"href="{% url 'machines:del-extension' %}"><iclass="glyphicon glyphicon-trash"></i> Supprimer une ou plusieurs extensions</a>
{% include "machines/aff_extension.html" with extension_list=extension_list %}
@@ -25,11 +25,15 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% load bootstrap3 %}
{% load acl %}
{% block title %}Ip{% endblock %}
{% block content %}
<h2>Liste des types d'ip</h2>
{% can_create IpType %}
<aclass="btn btn-primary btn-sm"role="button"href="{% url 'machines:add-iptype' %}"><iclass="glyphicon glyphicon-plus"></i> Ajouter un type d'ip</a>
{% acl_end %}
<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>
{% include "machines/aff_iptype.html" with iptype_list=iptype_list %}
@@ -25,11 +25,15 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% load bootstrap3 %}
{% load acl %}
{% block title %}Machines{% endblock %}
{% block content %}
<h2>Liste des types de machines</h2>
{% can_create MachineType %}
<aclass="btn btn-primary btn-sm"role="button"href="{% url 'machines:add-machinetype' %}"><iclass="glyphicon glyphicon-plus"></i> Ajouter un type de machine</a>
{% acl_end %}
<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>
{% include "machines/aff_machinetype.html" with machinetype_list=machinetype_list %}
@@ -25,13 +25,17 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% load bootstrap3 %}
{% load acl %}
{% block title %}Machines{% endblock %}
{% block content %}
<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>
{% can_create Nas %}
<aclass="btn btn-primary btn-sm"role="button"href="{% url 'machines:add-nas' %}"><iclass="glyphicon glyphicon-plus"></i> Ajouter un type de nas</a>
{% acl_end %}
<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>
{% include "machines/aff_nas.html" with nas_list=nas_list %}
@@ -24,12 +24,15 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% endcomment %}
{% load bootstrap3 %}
{% load acl %}
{% block title %}Machines{% endblock %}
{% block content %}
<h2>Liste des services</h2>
{% can_create Service %}
<aclass="btn btn-primary btn-sm"role="button"href="{% url 'machines:add-service' %}"><iclass="glyphicon glyphicon-plus"></i> Ajouter un service</a>
{% acl_end %}
<aclass="btn btn-danger btn-sm"role="button"href="{% url 'machines:del-service' %}"><iclass="glyphicon glyphicon-trash"></i> Supprimer un ou plusieurs service</a>
{% include "machines/aff_service.html" with service_list=service_list %}
@@ -25,11 +25,15 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% load bootstrap3 %}
{% load acl %}
{% block title %}Machines{% endblock %}
{% block content %}
<h2>Liste des vlans</h2>
{% can_create Vlan %}
<aclass="btn btn-primary btn-sm"role="button"href="{% url 'machines:add-vlan' %}"><iclass="glyphicon glyphicon-plus"></i> Ajouter un vlan</a>
{% acl_end %}
<aclass="btn btn-danger btn-sm"role="button"href="{% url 'machines:del-vlan' %}"><iclass="glyphicon glyphicon-trash"></i> Supprimer un ou plusieurs vlan</a>
{% include "machines/aff_vlan.html" with vlan_list=vlan_list %}