8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-24 20:33:11 +00:00

Adapt preferences' display to new model layout

This commit is contained in:
Hugo LEVY-FALK 2018-12-04 18:46:57 +01:00
parent 8dbe1b2621
commit 77ef57f024

View file

@ -45,50 +45,50 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<tr> <tr>
<th>{% trans "Unknown machine" %}</th> <th>{% trans "Unknown machine" %}</th>
<td> <td>
{% if radiusoptions.unknown_machine.policy == 'REJECT' %} {% if radiusoptions.unknown_machine == 'REJECT' %}
<span class="label label-danger">{% trans "Reject" %}</span> <span class="label label-danger">{% trans "Reject" %}</span>
{% else %} {% else %}
<span class="label label-success">Vlan {{ radiusoptions.unknown_machine.vlan }}</span> <span class="label label-success">Vlan {{ radiusoptions.unknown_machine_vlan }}</span>
{% endif %} {% endif %}
</td> </td>
</tr> </tr>
<tr> <tr>
<th>{% trans "Unknown port" %}</th> <th>{% trans "Unknown port" %}</th>
<td> <td>
{% if radiusoptions.unknown_port.policy == 'REJECT' %} {% if radiusoptions.unknown_port == 'REJECT' %}
<span class="label label-danger">{% trans "Reject" %}</span> <span class="label label-danger">{% trans "Reject" %}</span>
{% else %} {% else %}
<span class="label label-success">Vlan {{ radiusoptions.unknown_port.vlan }}</span> <span class="label label-success">Vlan {{ radiusoptions.unknown_port_vlan }}</span>
{% endif %} {% endif %}
</td> </td>
</tr> </tr>
<tr> <tr>
<th>{% trans "Unknown room" %}</th> <th>{% trans "Unknown room" %}</th>
<td> <td>
{% if radiusoptions.unknown_room.policy == 'REJECT' %} {% if radiusoptions.unknown_room == 'REJECT' %}
<span class="label label-danger">{% trans "Reject" %}</span> <span class="label label-danger">{% trans "Reject" %}</span>
{% else %} {% else %}
<span class="label label-success">Vlan {{ radiusoptions.unknown_room.vlan }}</span> <span class="label label-success">Vlan {{ radiusoptions.unknown_room_vlan }}</span>
{% endif %} {% endif %}
</td> </td>
</tr> </tr>
<tr> <tr>
<th>{% trans "Non member" %}</th> <th>{% trans "Non member" %}</th>
<td> <td>
{% if radiusoptions.non_member.policy == 'REJECT' %} {% if radiusoptions.non_member == 'REJECT' %}
<span class="label label-danger">{% trans "Reject" %}</span> <span class="label label-danger">{% trans "Reject" %}</span>
{% else %} {% else %}
<span class="label label-success">Vlan {{ radiusoptions.non_member.vlan }}</span> <span class="label label-success">Vlan {{ radiusoptions.non_member_vlan }}</span>
{% endif %} {% endif %}
</td> </td>
</tr> </tr>
<tr> <tr>
<th>{% trans "Banned user" %}</th> <th>{% trans "Banned user" %}</th>
<td> <td>
{% if radiusoptions.unknown_port.policy == 'REJECT' %} {% if radiusoptions.unknown_port == 'REJECT' %}
<span class="label label-danger">{% trans "Reject" %}</span> <span class="label label-danger">{% trans "Reject" %}</span>
{% else %} {% else %}
<span class="label label-success">Vlan {{ radiusoptions.banned.vlan }}</span> <span class="label label-success">Vlan {{ radiusoptions.banned_vlan }}</span>
{% endif %} {% endif %}
</td> </td>
</tr> </tr>