<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/WEB-INF/jspf/taglibs.jsp"%>

<table class="data" style="width:100%">
	<tr>
		<td>&#160;</td>
		<td>#</td>
		<td>ONU</td>
		<td>Loop</td>
		<td>Isolation</td>
	</tr>
	<c:forEach var="port" items="${frd.ports}">
		<tr>
			<td nowrap="nowrap">
				<button type="button" class="btn-white btn-small" title="ONU"
					onclick="$$.getolt.toggleOnus(${port.id}, this)">&#9660;</button>
				<button type="button" class="btn-white btn-small" title="Обновить порт"
					onclick="$$.getolt.refreshManagePort(${frd.oltId}, ${port.numPort}, this)">&#8635;</button>
			</td>
			<td>${port.numPort}</td>
			<td>${port.onuActive} / ${port.onuCount}</td>
			<td>${port.loopDetection ? 'Yes' : '-'}</td>
			<td>${port.portIsolation ? 'Yes' : '-'}</td>
		</tr>
		<tr class="getolt-onus-row" id="getolt-onus-${port.id}" style="display:none">
			<td colspan="5" class="getolt-onus-container"></td>
		</tr>
	</c:forEach>
</table>
<c:if test="${empty frd.ports}">
	<div class="mt05">Нет портов. Запустите опрос OLT.</div>
</c:if>
