mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 11:23:10 +00:00
Fix de l'historique pour l'affichage des port_profile
This commit is contained in:
parent
6c4877b52a
commit
b356954f6c
1 changed files with 54 additions and 53 deletions
|
@ -22,64 +22,65 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
|
||||||
{% load acl %}
|
{% load acl %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
{% load logs_extra %}
|
||||||
|
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
|
|
||||||
{% if port_profile_list.paginator %}
|
{% if port_profile_list.paginator %}
|
||||||
{% include "pagination.html" with list=port_profile_list %}
|
{% include "pagination.html" with list=port_profile_list %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{% trans "Name" %}</th>
|
<th>{% trans "Name" %}</th>
|
||||||
<th>{% trans "Default for" %}</th>
|
<th>{% trans "Default for" %}</th>
|
||||||
<th>{% trans "VLANs" %}</th>
|
<th>{% trans "VLANs" %}</th>
|
||||||
<th>{% trans "RADIUS settings" %}</th>
|
<th>{% trans "RADIUS settings" %}</th>
|
||||||
<th>{% trans "Speed" %}</th>
|
<th>{% trans "Speed" %}</th>
|
||||||
<th>{% trans "Mac address limit" %}</th>
|
<th>{% trans "Mac address limit" %}</th>
|
||||||
<th>{% trans "Security" %}</th>
|
<th>{% trans "Security" %}</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
{% for port_profile in port_profile_list %}
|
{% for port_profile in port_profile_list %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{port_profile.name}}</td>
|
<td>{{port_profile.name}}</td>
|
||||||
<td>{{port_profile.profil_default}}</td>
|
<td>{{port_profile.profil_default}}</td>
|
||||||
<td>
|
<td>
|
||||||
{% if port_profile.vlan_untagged %}
|
{% if port_profile.vlan_untagged %}
|
||||||
<b>Untagged : </b>{{port_profile.vlan_untagged}}
|
<b>Untagged : </b>{{port_profile.vlan_untagged}}
|
||||||
<br>
|
<br>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if port_profile.vlan_tagged.all %}
|
{% if port_profile.vlan_tagged.all %}
|
||||||
<b>Tagged : </b>{{port_profile.vlan_tagged.all|join:", "}}
|
<b>Tagged : </b>{{port_profile.vlan_tagged.all|join:", "}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<b>Type : </b>{{port_profile.radius_type}}
|
<b>Type : </b>{{port_profile.radius_type}}
|
||||||
{% if port_profile.radius_type == "MAC-radius" %}
|
{% if port_profile.radius_type == "MAC-radius" %}
|
||||||
<br>
|
<br>
|
||||||
<b>Mode : </b>{{port_profile.radius_mode}}</td>
|
<b>Mode : </b>{{port_profile.radius_mode}}</td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<td>{{port_profile.speed}}</td>
|
<td>{{port_profile.speed}}</td>
|
||||||
<td>{{port_profile.mac_limit}}</td>
|
<td>{{port_profile.mac_limit}}</td>
|
||||||
<td>{{port_profile.security_parameters_enabled|join:"<br>"}}</td>
|
<td>{{port_profile.security_parameters_enabled|join:"<br>"}}</td>
|
||||||
<td class="text-right">
|
<td class="text-right">
|
||||||
{% include 'buttons/history.html' with href='topologie:history' name='portprofile' id=port_profile.pk %}
|
{% history_button port_profile %}
|
||||||
{% can_edit port_profile %}
|
{% can_edit port_profile %}
|
||||||
{% include 'buttons/edit.html' with href='topologie:edit-port-profile' id=port_profile.pk %}
|
{% include 'buttons/edit.html' with href='topologie:edit-port-profile' id=port_profile.pk %}
|
||||||
{% acl_end %}
|
{% acl_end %}
|
||||||
{% can_delete port_profile %}
|
{% can_delete port_profile %}
|
||||||
{% include 'buttons/suppr.html' with href='topologie:del-port-profile' id=port_profile.pk %}
|
{% include 'buttons/suppr.html' with href='topologie:del-port-profile' id=port_profile.pk %}
|
||||||
{% acl_end %}
|
{% acl_end %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
{% if port_profile_list.paginator %}
|
{% if port_profile_list.paginator %}
|
||||||
{% include "pagination.html" with list=port_profile_list %}
|
{% include "pagination.html" with list=port_profile_list %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue