aff_port_profile.html 3.21 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 %}

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

<div class="table-responsive">

29
    {% if port_profile_list.paginator %}
30
        {% include 'pagination.html' with list=port_profile_list %}
31
    {% endif %}
Laouen Fernet's avatar
Laouen Fernet committed
32

33

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

82
    {% if port_profile_list.paginator %}
83
        {% include 'pagination.html' with list=port_profile_list %}
84
    {% endif %}
Laouen Fernet's avatar
Laouen Fernet committed
85 86

</div>
87