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

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

<html:form action="${form.requestURI}" styleClass="box">
	<input type="hidden" name="method" value="manufacturerUpdate"/>
	<input type="hidden" name="id" value="${empty m ? '' : m.id}"/>
	<input type="hidden" name="returnUrl" value="${form.returnUrl}"/>

	<h3><c:choose>
		<c:when test="${not empty m}">${l.l('Редактировать производителя')}: ${m.title}</c:when>
		<c:otherwise>${l.l('Добавить производителя')}</c:otherwise>
	</c:choose></h3>

	<table class="data">
		<tr>
			<td class="label">${l.l('Наименование')} *</td>
			<td><input type="text" name="title" class="w100p" required
				value="${empty m ? '' : m.title}"/></td>
		</tr>
		<tr>
			<td class="label">${l.l('Slug')}</td>
			<td><input type="text" name="slug" class="w100p"
				value="${empty m ? '' : m.slug}"/></td>
		</tr>
		<tr>
			<td class="label">${l.l('Страна')}</td>
			<td><input type="text" name="country" class="w100p"
				value="${empty m ? '' : m.country}"/></td>
		</tr>
	</table>

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

<shell:state text="${l.l('Производители')}"/>
