mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-27 07:02:26 +00:00
Added info on switch page
This commit is contained in:
parent
311b13e694
commit
bc5b7c63be
2 changed files with 19 additions and 1 deletions
|
@ -31,6 +31,21 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
|
||||
{% block content %}
|
||||
<h2>{% trans "Switch:"%} {{ nom_switch }}</h2>
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{% trans "Switch bay" %}</th>
|
||||
<th>{% trans "Switch model" %}</th>
|
||||
<th>{% trans "Stack" %}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tr>
|
||||
<td>{{ switch_bay }}</td>
|
||||
<td>{{ switch_model }}</td>
|
||||
<td>{{ switch_stack }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<hr>
|
||||
<a class="btn btn-primary btn-sm" role="button" href="{% url 'topologie:edit-switch' id_switch %}"><i class="fa fa-edit"></i>{% trans " Edit" %}</a>
|
||||
{% can_create Port %}
|
||||
<a class="btn btn-primary btn-sm" role="button" href="{% url 'topologie:new-port' id_switch %}"><i class="fa fa-plus"></i>{% trans " Add a port" %}</a>
|
||||
|
|
|
@ -189,7 +189,10 @@ def index_port(request, switch, switchid):
|
|||
{
|
||||
'port_list': port_list,
|
||||
'id_switch': switchid,
|
||||
'nom_switch': switch
|
||||
'nom_switch': switch,
|
||||
'switch_bay': switch.switchbay,
|
||||
'switch_model': switch.model,
|
||||
'switch_stack': switch.stack
|
||||
}
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue