Commit 1ffb481a authored by Antoine Vintache's avatar Antoine Vintache Committed by Grizzly

Ajout de l'affichage des switchs dans la liste des modèles de switchs.

parent eded66be
......@@ -38,7 +38,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<th>Firmware</th>
{% trans "Switch constructor" as tr_constructor %}
<th>{% include "buttons/sort.html" with prefix='model-switch' col='constructor' text=tr_constructor %}</th>
<th></th>
<th>{% trans "Switches" %}
<th></th>
</tr>
</thead>
{% for model_switch in model_switch_list %}
......@@ -46,6 +47,13 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<td>{{ model_switch.reference }}</td>
<td>{{model_switch.firmware}}</td>
<td>{{ model_switch.constructor }}</td>
<td>
{% for switch in model_switch.switch_set.all %}
<a href="{% url 'topologie:index-port' switch.pk %}">
{{ switch }}
</a>
{% endfor %}
</td>
<td class="text-right">
{% can_edit model_switch %}
<a class="btn btn-primary btn-sm" role="button" title={% trans "Edit" %} href="{% url 'topologie:edit-model-switch' model_switch.id %}">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment