aff_port_profile.html 2.87 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
{% comment %}
Re2o est un logiciel d'administration développé initiallement au rezometz. Il
se veut agnostique au réseau considéré, de manière à être installable en
quelques clics.

Copyright © 2018  Gabriel Détraz

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
{% endcomment %}

Fernet Laouen's avatar
Fernet Laouen committed
23 24 25 26 27 28 29 30 31
{% load acl %}
{% load i18n %}

<div class="table-responsive">

{% if port_profile_list.paginator %}
{% include "pagination.html" with list=port_profile_list %}
{% endif %}

32 33
<thead>

Fernet Laouen's avatar
Fernet Laouen committed
34
<table class="table table-striped">
35 36 37 38 39 40 41 42 43 44
    <tr>
        <th>{% trans "Name" %}</th>
        <th>{% trans "Default for" %}</th>
        <th>{% trans "VLANs" %}</th>
        <th>{% trans "RADIUS settings" %}</th>
        <th>{% trans "Speed" %}</th>
        <th>{% trans "Mac address limit" %}</th>
        <th>{% trans "Security" %}</th>
        <th></th>
    </tr>
Fernet Laouen's avatar
Fernet Laouen committed
45 46 47 48
    </thead>
    {% for port_profile in port_profile_list %}
    <tr>
        <td>{{port_profile.name}}</td>
49
        <td>{{port_profile.profil_default}}</td>
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
        <td>
	{% if port_profile.vlan_untagged %}
        <b>Untagged : </b>{{port_profile.vlan_untagged}} 
        <br>
        {% endif %}
        {% if port_profile.vlan_untagged %}
        <b>Tagged : </b>{{port_profile.vlan_tagged.all|join:", "}}
        {% endif %}
        </td>
        <td>
        <b>Type : </b>{{port_profile.radius_type}}
        {% if port_profile.radius_type == "MAC-radius" %}
        <br>
        <b>Mode : </b>{{port_profile.radius_mode}}</td>
        {% endif %}
        <td>{{port_profile.speed}}</td>
        <td>{{port_profile.mac_limit}}</td>
        <td>{{port_profile.security_parameters_enabled|join:"<br>"}}</td>
        <td class="text-right">
            {% include 'buttons/history.html' with href='topologie:history' name='portprofile' id=port_profile.pk %}
            {% can_edit port_profile %}
            {% include 'buttons/edit.html' with href='topologie:edit-port-profile' id=port_profile.pk %}
            {% acl_end %}
            {% can_delete port_profile %}
            {% include 'buttons/suppr.html' with href='topologie:del-port-profile' id=port_profile.pk %}
            {% acl_end %}
        </td>
Fernet Laouen's avatar
Fernet Laouen committed
77 78 79 80 81 82 83 84 85
    </tr>
    {% endfor %}
</table>

{% if port_profile_list.paginator %}
{% include "pagination.html" with list=port_profile_list %}
{% endif %}

</div>