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

<c:set var="uiid" value="${u:uiid()}"/>

<div id="${uiid}">
	<h3 class="mb1">${l.l('Типы устройств')}</h3>

	<table class="data hl">
		<tr>
			<td width="1em">&nbsp;</td>
			<td>ID</td>
			<td>${l.l('Производитель')}</td>
			<td>${l.l('Модель')}</td>
			<td>${l.l('Класс устройства')}</td>
			<td>${l.l('Артикул (Part Number)')}</td>
			<td>${l.l('Высота (U)')}</td>
		</tr>
		<c:forEach var="item" items="${frd.deviceTypeList}">
			<tr>
				<td>
					<%-- future: edit/delete buttons --%>
				</td>
				<td>${item.id}</td>
				<td>${item.manufacturerTitle}</td>
				<td>${item.model}</td>
				<td>${item.deviceClass}</td>
				<td>${item.partNumber}</td>
				<td>${item.uHeight}</td>
			</tr>
		</c:forEach>
	</table>

	<c:url var="backUrl" value="/user/plugin/inventory/device.do"/>
	<button type="button" class="btn-white mt1"
		onclick="$$.ajax.load('${backUrl}', $('#${uiid}').parent(), {control: this})">
		&larr; ${l.l('Назад')}
	</button>
</div>
