8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-04 18:42:25 +00:00
re2o/preferences/templates/preferences/aff_radiusoptions.html

140 lines
5 KiB
HTML
Raw Normal View History

2018-09-02 14:53:21 +00:00
{% 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 Hugo Levy-Falk
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 %}
{% load i18n %}
{% load acl %}
{% load logs_extra %}
<table>
<tr>
<th>{% trans "General policy for VLAN setting" %}</th>
<td>{{ radiusoptions.radius_general_policy }}</td>
<td>{% blocktrans %}This setting defines the VLAN policy after acceptance by RADIUS: either on the IP range's VLAN of the machine, or a VLAN preset in "VLAN for machines accepted by RADIUS".{% endblocktrans %}</td>
2018-09-02 14:53:21 +00:00
</tr>
<tr>
<th>{% trans "VLAN for machines accepted by RADIUS" %}</th>
2019-01-08 23:39:47 +00:00
<td><span class="label label-success">{% blocktrans with vlan_decision_ok=radiusoptions.vlan_decision_ok %}VLAN {{ vlan_decision_ok }}{% endblocktrans %}</span></td>
2019-09-09 15:04:30 +00:00
<td>{% trans "Attributes" %}
<ul>
{% for attribute in radiusoptions.ok_attributes.all %}
<li>{{attribute}}</li>
{% endfor %}
</ul>
</td>
2018-09-02 14:53:21 +00:00
</tr>
</table>
<hr/>
<table class="table table-striped">
<thead>
<tr>
<th>{% trans "Situation" %}</th>
2019-01-08 23:39:47 +00:00
<th>{% trans "Behaviour" %}</th>
2019-09-09 15:04:30 +00:00
<th>{% trans "Attributes" %}</th>
2018-09-02 14:53:21 +00:00
</tr>
</thead>
<tr>
<th>{% trans "Unknown machine" %}</th>
<td>
{% if radiusoptions.unknown_machine == 'REJECT' %}
2018-09-02 14:53:21 +00:00
<span class="label label-danger">{% trans "Reject" %}</span>
{% else %}
2019-01-08 23:39:47 +00:00
<span class="label label-success">{% blocktrans with unknown_machine_vlan=radiusoptions.unknown_machine_vlan %}VLAN {{ unknown_machine_vlan }}{% endblocktrans %}</span>
2018-09-02 14:53:21 +00:00
{% endif %}
</td>
2019-09-09 15:04:30 +00:00
<td>
<ul>
{% for attribute in radiusoptions.unknown_machine_attributes.all %}
<li>{{attribute}}</li>
{% endfor %}
</ul>
</td>
2018-09-02 14:53:21 +00:00
</tr>
<tr>
<th>{% trans "Unknown port" %}</th>
<td>
{% if radiusoptions.unknown_port == 'REJECT' %}
2018-09-02 14:53:21 +00:00
<span class="label label-danger">{% trans "Reject" %}</span>
{% else %}
2019-01-08 23:39:47 +00:00
<span class="label label-success">{% blocktrans with unknown_port_vlan=radiusoptions.unknown_port_vlan %}VLAN {{ unknown_port_vlan }}{% endblocktrans %}</span>
2018-09-02 14:53:21 +00:00
{% endif %}
</td>
2019-09-09 15:04:30 +00:00
<td>
<ul>
{% for attribute in radiusoptions.unknown_port_attributes.all %}
<li>{{attribute}}</li>
{% endfor %}
</ul>
</td>
2018-09-02 14:53:21 +00:00
</tr>
<tr>
<th>{% trans "Unknown room" %}</th>
<td>
{% if radiusoptions.unknown_room == 'REJECT' %}
2018-09-02 14:53:21 +00:00
<span class="label label-danger">{% trans "Reject" %}</span>
{% else %}
2019-01-08 23:39:47 +00:00
<span class="label label-success">{% blocktrans with unknown_room_vlan=radiusoptions.unknown_room_vlan %}VLAN {{ unknown_room_vlan }}{% endblocktrans %}</span>
2018-09-02 14:53:21 +00:00
{% endif %}
</td>
2019-09-09 15:04:30 +00:00
<td>
<ul>
{% for attribute in radiusoptions.unknown_room_attributes.all %}
<li>{{attribute}}</li>
{% endfor %}
</ul>
</td>
2018-09-02 14:53:21 +00:00
</tr>
<tr>
<th>{% trans "Non member" %}</th>
<td>
{% if radiusoptions.non_member == 'REJECT' %}
2018-09-02 14:53:21 +00:00
<span class="label label-danger">{% trans "Reject" %}</span>
{% else %}
2019-01-08 23:39:47 +00:00
<span class="label label-success">{% blocktrans with non_member_vlan=radiusoptions.non_member_vlan %}VLAN {{ non_member_vlan }}{% endblocktrans %}</span>
2018-09-02 14:53:21 +00:00
{% endif %}
</td>
2019-09-09 15:04:30 +00:00
<td>
<ul>
{% for attribute in radiusoptions.non_member_attributes.all %}
<li>{{attribute}}</li>
{% endfor %}
</ul>
</td>
2018-09-02 14:53:21 +00:00
</tr>
<tr>
<th>{% trans "Banned user" %}</th>
<td>
2019-09-09 15:04:30 +00:00
{% if radiusoptions.banned == 'REJECT' %}
2018-09-02 14:53:21 +00:00
<span class="label label-danger">{% trans "Reject" %}</span>
{% else %}
2019-01-08 23:39:47 +00:00
<span class="label label-success">{% blocktrans with banned_vlan=radiusoptions.banned_vlan %}VLAN {{ banned_vlan }}{% endblocktrans %}</span>
2018-09-02 14:53:21 +00:00
{% endif %}
</td>
2019-09-09 15:04:30 +00:00
<td>
<ul>
{% for attribute in radiusoptions.banned_attributes.all %}
<li>{{attribute}}</li>
{% endfor %}
</ul>
</td>
2018-09-02 14:53:21 +00:00
</tr>
</table>