Commit 5f511eaf authored by Gabriel Detraz's avatar Gabriel Detraz Committed by root

Affichage des machines par profil de port

parent b57fed74
......@@ -15,6 +15,7 @@
<th>TCP (sortie)</th>
<th>UDP (entrée)</th>
<th>UDP (sortie)</th>
......@@ -25,6 +26,23 @@
<td>{% for p in pl.tcp_ports_out %}{{p.show_port}}, {%endfor%}</td>
<td>{% for p in pl.udp_ports_in %}{{p.show_port}}, {%endfor%}</td>
<td>{% for p in pl.udp_ports_out %}{{p.show_port}}, {%endfor%}</td>
{% if pl.interface_set.all %}
<div class="dropdown">
<button class="btn btn-default dropdown-toggle" type="button" id="editioninterface" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<span class="caret"></span>
<ul class="dropdown-menu" aria-labelledby="editioninterface">
{% for interface in pl.interface_set.all %}
<a href="{% url 'users:profil' %}">
{{ interface }}
{% endfor %}
{% endif %}
<td class="text-right">
{% include 'buttons/suppr.html' with href='machines:del-portlist' %}
{% include 'buttons/edit.html' with href='machines:edit-portlist' %}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment