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

<c:set var="itemType" value="${form.param.selectTab}"/>
<c:set var="item" value="${frd[itemType]}"/>

<html:form action="/user/directory/address" onsubmit="return false;" >
	<input type="hidden" name="method" value="addressUpdate"/>
	<html:hidden property="selectTab"/>
	<html:hidden property="addressItemId"/>
	<html:hidden property="addressCityId" value="${item.addressCity.id}"/>

	<table class="data">
		<tr>
			<td width="100">${l.l('Параметр')}</td>
			<td>${l.l('Value')}</td>
		</tr>
		<tr>
			<td>ID</td>
			<td>${form.param.addressItemId}</td>
		</tr>
		<tr>
			<td>${l.l('Страна')}</td>
			<td>${item.addressCity.addressCountry.title}</td>
		</tr>
		<tr>
			<td>${l.l('Город')}</td>
			<td>${item.addressCity.title}</td>
		</tr>
		<tr>
			<td>${l.l('Название')}</td>
			<td><html:text property="title" style="width: 100%" value="${item.title}"/></td>
		</tr>
		<%@ include file="../edit_tr.jsp"%>
	</table>
</html:form>

<shell:state help="kernel/setup.html#address">
	<jsp:attribute name="text">
		<c:choose>
			<c:when test="${itemType eq 'quarter'}">${l.l('Редактор квартала')}</c:when>
			<c:when test="${itemType eq 'area'}">${l.l('Редактор района')}</c:when>
			<c:otherwise>${l.l('Редактор улицы')}</c:otherwise>
		</c:choose>
	</jsp:attribute>
</shell:state>