8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-22 23:13:46 +00:00

Merge branch 'show_more_info_switch' into 'dev'

Added info on switch page

See merge request federez/re2o!314
This commit is contained in:
chirac 2018-09-26 15:44:51 +02:00
commit 916ec9789f
2 changed files with 17 additions and 2 deletions

View file

@ -30,7 +30,22 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% block title %}{% trans "Topology" %}{% endblock %}
{% block content %}
<h2>{% trans "Switch:"%} {{ nom_switch }}</h2>
<h2>{% trans "Switch:"%} {{ 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.switchbay }}</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>

View file

@ -189,7 +189,7 @@ def index_port(request, switch, switchid):
{
'port_list': port_list,
'id_switch': switchid,
'nom_switch': switch
'switch': switch
}
)