<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> 
<c:if test="${not empty param.error}">  
  <font color='red'>  
    Login error.
  </font>
</c:if>
<h2>Registro de usuario</h2>

<form:form id="form" method="post" commandName="userForm" action="create"> 
	<fieldset>
		<p class="first">
			<form:label path="name">Nombre</form:label>
			<form:input type="text" size="50" id="name" name="name" path="name"/>
			<form:errors path="name" cssClass="campoConError"/>
		</p>
		<p>
			<form:label path="lastname">Apellidos</form:label>
			<form:input type="text" size="150" id="lastname" name="lastname" path="lastname"/>
			<form:errors path="lastname" cssClass="campoConError"/>
		</p>
		<p>
			<form:label path="username">Usuario</form:label>
			<form:input type="text" size="10" id="username" name="username" path="username"/>
			<form:errors path="username" cssClass="campoConError"/>
		</p>
		<p>
			<form:label path="password">Constraseña</form:label>
			<form:input type="password" size="50" id="password" name="password" path="password"/>
			<form:errors path="password" cssClass="campoConError"/>
		</p>
		<p>
			<form:label path="email">Email</form:label>
			<form:input type="text" size="150" id="email" name="email" path="email"/>
			<form:errors path="email" cssClass="campoConError"/>
		</p>
<!--	
		<p>
			<form:label path="userType">Tipo de usuario</form:label>
			<form:select id="userType" name="userType" path="userType">
				<option value="" <c:if test="${empty userType}">selected="selected"</c:if>>Seleccionar una opción</option>
				<c:forEach items="${userTypelst}" var="userTypeO" varStatus="status">
					<option value="<c:out value='${userTypeO.id}'/>" <c:if test="${userType eq userTypeO.id}">selected="selected"</c:if>><c:out value='${userTypeO.typeUserApp}'/></option>
				</c:forEach>
			</form:select>
			<form:errors path="userType" cssClass="campoConError"/>
		</p>
-->
	</fieldset>
	<p class="submit"><button type="submit">Enviar</button></p>		
</form:form>