Browse Source

indication des ports dans l’espace adhérent

Élie Bouttier 7 years ago
parent
commit
58280aa873
1 changed files with 10 additions and 0 deletions
  1. 10 0
      services/templates/services/service_detail.html

+ 10 - 0
services/templates/services/service_detail.html

@@ -31,6 +31,16 @@
             aucune IP allouée
             {% endfor %}
         </p>
+        {% if service.ports.exists %}
+        <p>
+            Port{{ service.ports.count|pluralize }} :
+            {% for port in service.ports.all %}
+            {% if forloop.first %}<ul>{% endif %}
+                <li>Switch {{ port.switch }} port {{ port.port }}
+            {% if forloop.last %}</ul>{% endif %}
+            {% endfor %}
+        </p>
+        {% endif %}
     </div>
 </div>
 {% endblock %}