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

<c:set var="olt" value="${frd.olt}"/>

<html:form action="/user/plugin/getolt/manage" styleClass="center500">
	<input type="hidden" name="method" value="oltUpdate"/>
	<input type="hidden" name="id" value="${not empty olt ? olt.id : 0}"/>

	<h2>IP</h2>
	<input type="text" name="ip" style="width: 100%" value="${olt.ip}"
		placeholder="10.58.0.56"/>

	<h2>Vendor</h2>
	<select name="vendor" style="width: 100%">
		<option value="" ${empty olt.vendor ? 'selected' : ''}>(автоопределение)</option>
		<c:forEach var="v" items="${'BDCOM,GATERAY,GATERAY2020,CDATA,CDATA_GPON,CDATA_FD1608,CDATA_FD1208'.split(',')}">
			<option value="${v}" ${olt.vendor == v ? 'selected' : ''}>${v}</option>
		</c:forEach>
	</select>

	<h2>Биллинг</h2>
	<input type="text" name="billing" style="width: 100%" value="${olt.billing}"
		placeholder="Оператор (например: Рокет)"/>

	<h2>Login</h2>
	<input type="text" name="login" style="width: 100%" value="${olt.login}"/>

	<h2>Password</h2>
	<input type="password" name="pass" style="width: 100%"
		placeholder="${not empty olt ? '(без изменений)' : ''}"/>

	<ui:form-ok-cancel styleClass="mt1"/>
</html:form>

<shell:state text="${not empty olt ? 'Редактирование OLT' : 'Новый OLT'}"/>
