<%@include file="/WEB-INF/includeTemplate.inc"%>
<%@page import="com.ejie.ad74a.util.constantes.modelos.TipoDireccion"%>

<c:set var="provincia" value="${param.direccion}.provincia06"></c:set>
<c:set var="idProvincia" value="${param.direccion}.provincia06"></c:set>
<c:set var="idMunicipio" value="${param.direccion}.idMunicipio06"></c:set>
<c:set var="idLocalidad" value="${param.direccion}.idLocalidad06"></c:set>

<div class="form-row row">
	<div class="form-groupMaterial col-sm-1">							 
          <form:input path="${param.model}.cp06" id="${param.prefix}cp06_detail_table" onkeypress='return event.charCode >= 48 && event.charCode <= 57' required="required" maxlength="<%=TipoDireccion.MAX_LENGTH_CP06_STR%>"/> 	 
          <label for="${param.prefix}cp06_detail_table"><spring:message code="componenteDireccion.cp"/></label>            
    </div>
    
    <div class="form-groupMaterial col-sm-2">							        
   		<form:input path="${param.model}.idProvincia06" id="${param.prefix}idprovincia06_detail_table"  required="required"/>
   		<label for="${param.prefix}idprovincia06_detail_table" class="select-material"><spring:message code="componenteDireccion.provincia"/></label>
	</div>
	
	<div class="form-groupMaterial col-sm-3">            
		<form:input path="${param.model}.idMunicipio06" id="${param.prefix}idmunicipio06_detail_table" required="required"/>							
        <label for="${param.prefix}idmunicipio06_detail_table"><spring:message code="componenteDireccion.municipio"/></label>
    </div>    
</div>

<div class="form-row row">
	<div class="form-groupMaterial col-sm-3">							        
        <form:input path="${param.model}.idLocalidad06" id="${param.prefix}idlocalidad06_detail_table" />			 
        <label for="${param.prefix}idlocalidad06_detail_table" class="select-material"><spring:message code="componenteDireccion.localidad"/></label>
    </div>    
	        
    <div class="form-groupMaterial col-sm-3">							 
    	<form:input path="${param.model}.idCalle06" id="${param.prefix}idcalle06_detail_table" />
        <label for="${param.prefix}idcalle06_detail_table" class="select-material obligatorio"><spring:message code="componenteDireccion.calle"/></label>            
    </div>
    
    <div class="form-groupMaterial col-sm-2" id="portal">							        
    	<form:input path="${param.model}.idPortal06" id="${param.prefix}idportal06_detail_table"/>
        <label for="${param.prefix}idportal06_detail_table" class="select-material"><spring:message code="componenteDireccion.portal"/></label>
    </div>
	
	<div class="form-groupMaterial col-sm-1">							        
    	<form:input path="${param.model}.escalera06" id="${param.prefix}escalera06_detail_table" maxlength="<%=TipoDireccion.MAX_LENGTH_ESCALERA06_STR%>"/>
        <label for="${param.prefix}escalera06_detail_table" class="select-material"><spring:message code="componenteDireccion.escalera"/></label>
	</div>
      
    <div class="form-groupMaterial col-sm-1">							        
    	<form:input path="${param.model}.piso06" id="${param.prefix}piso06_detail_table" maxlength="<%=TipoDireccion.MAX_LENGTH_PISO06_STR%>"/>
		<label for="${param.prefix}piso06_detail_table" class="select-material"><spring:message code="componenteDireccion.piso"/></label>
	</div>
	
    <div class="form-groupMaterial col-sm-1">							        
    	<form:input path="${param.model}.letra06" id="${param.prefix}letra06_detail_table" maxlength="<%=TipoDireccion.MAX_LENGTH_LETRA06_STR%>"/>
        <label for="${param.prefix}piso06_detail_table" class="select-material"><spring:message code="componenteDireccion.letra"/></label>
	</div>	
   	
</div>  

 <div class="form-row row">
 	<div class="form-groupMaterial col-sm-3" id="${param.prefix}localidadDesc">							        
        <form:input path="${param.model}.localidad06" id="${param.prefix}localidad06_detail_table"  maxlength="<%=TipoDireccion.MAX_LENGTH_LOCALIDAD06_STR%>"/>			 
        <label for="${param.prefix}localidad06_detail_table" class="select-material obligatorio"><spring:message code="componenteDireccion.localidadAlter"/></label>
    </div>    
    
    <div class="form-groupMaterial col-sm-3" id="${param.prefix}calleDesc">							 
    	<form:input path="${param.model}.calle06" id="${param.prefix}calle06_detail_table"  maxlength="<%=TipoDireccion.MAX_LENGTH_CALLE06_STR%>"/> 	 
        <label for="${param.prefix}calle06_detail_table" class="select-material obligatorio"><spring:message code="componenteDireccion.direccionAlter"/></label>            
    </div>	
    
    <div class="form-groupMaterial col-sm-2"  id="${param.prefix}portalDesc">							        
    	<form:input path="${param.model}.portal06" id="${param.prefix}portal06_detail_table" maxlength="<%=TipoDireccion.MAX_LENGTH_PORTAL06_STR%>"/>
        <label for="${param.prefix}portal06_detail_table" class="select-material"><spring:message code="componenteDireccion.portalAlter"/></label>
	</div>
    			
</div>