<div class="modal-dialog {% if item.ports %}modal-lg{% endif %}" role="document">
		<div class="modal-content">
			<div class="modal-header">
				<h5 class="modal-title">Détail d'un switch</h5>
				<button type="button" class="btn btn-sm btn-dark close" data-dismiss="modal" aria-label="Close">
				<span aria-hidden="true">&times;</span>
				</button>
			</div>
			<div class="modal-body">
				<table class="table table-sm">
					<tr><td>Site : </td><td>{{item.SW_Baie.get_BAIE_Site_display}}</td></tr>
					<tr><td>Baie : </td><td>{{item.SW_Baie}}</td></tr>
					<tr><td>Nom : </td><td>{{item.SW_Nom}}</td></tr>
					<tr><td>Adresse IP : </td><td>{{item.SW_IP}}</td></tr>
					<tr><td>Actitecture : </td><td>{{item.get_SW_OS_display}}</td></tr>
					<tr><td>Connectivité : </td><td>{{item.get_SW_TYPE_display}}</td></tr>
					{%if item.SW_Commentaires != "" %}<tr><td>Commentaires : </td><td>{{item.SW_Commentaires}}</td></tr>{% endif %}
				</table>
				{% if item.ports %}
				<h5>Listes des ports réseau</h5>
				<table class="table table-sm">
					<tr><td>Port</td><td>VLAN</td><td>Bandeau</td><td>Commentaire</td><td>&nbsp;</td></tr>
					{% for port in item.ports %}
						<tr>
							<td>{% if port.PL_Port_NG == "old" %}{{port.PL_Port}}{% else %}{{port.PL_Port_NG}}{% endif %}</td>
							<td>{{port.PL_VLAN}}</td>
							<td>{{port.PL_Headbang_plug}}</td>
							<td>{{port.PL_Commentaires}}</td>
							<td onmouseover="this.style.cursor='pointer';"><i class="far fa-edit" onclick="bt_edit_port('{{item.id}}','{{port.id}}')"></i></td></tr>
					{% endfor %}
				</table>
				{% endif %}
			</div>
		<div class="modal-footer">
			<button type="button" class="btn btn-success" onclick="bt_edit_port('{{item.id}}','0')"><i class="fas fa-plus-square"></i> Ajouter un port</button>
			<button type="button" class="btn btn-warning" onclick="bt_update_port('{{item.id}}')"><i class="fas fa-plus-square"></i> Mise à jour des ports Switch</button>
			<button type="button" class="btn btn-dark" onclick="bt_edit_info({{item.id}})"><i class="far fa-edit"></i> Modifier le Switch</button>
		</div>
	</div>
</div>