8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-30 08:32:26 +00:00

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

This commit is contained in:
Antoine Vintache 2018-09-20 21:25:33 +02:00 committed by grizzly
parent eded66beb0
commit 1ffb481aef

View file

@ -38,6 +38,7 @@ 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>{% trans "Switches" %}
<th></th>
</tr>
</thead>
@ -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 %}">