<%@include file="/jsp/common/defaultTopLogin.jsp"%>

<script src="${contextPath}/js/dda/admin/catalogos/estudiosAddons/estudiosAddons.js?v=${versionJS}"></script>

<script>
	$(document).ready(
		function() {
			$("#forma input").addClass("form-control");			
			validarAgregar();			
	    }
		
	);				
</script>
      
<input type="hidden" id="pmn" name="pmn" value="${pmn}" />
<input type="hidden" id="pmnReturn" name="pmnReturn" value="${pmnReturn}" />

<form action="agregarEstudio.action" id="forma" name="forma" class="form-horizontal" role="form" method="post">
  	  	  		
		<div class="form-group">
			<div class="col-sm-2">			    
	      		<label class="control-label" for="inputDescripcionEstudio">Nombre del Estudio:</label>
	      	</div>
	      	<div class="col-sm-3">      										
				<input type="text" name="nombreEstudio" />
	      	</div>
	      	
	      	<div class="col-sm-1">			    
	      	</div>	      		      	      		      	
	    </div>
	    <div class="form-group">
			<div class="col-sm-2">			    
	      		<label class="control-label" for="inputDescripcionEstudio">Addon:</label>
	      	</div>
	      	<div class="col-sm-3">      										
				<input type="text" name="adon" />
	      	</div>
	      	
	      	<div class="col-sm-1">			    
	      	</div>	      		      	      		      	
	    </div>
	    <div class="form-group">
			<div class="col-sm-2">			    
	      		<label class="control-label" for="inputDescripcionEstudio">Reducción de clientes:</label>
	      	</div>
	      	<div class="col-sm-3">      										
				<input type="text" name="redClientes" />
	      	</div>
	      	
	      	<div class="col-sm-1">			    
	      	</div>	      		      	      		      	
	    </div>
	    <div class="form-group">
			<div class="col-sm-2">			    
	      		<label class="control-label" for="inputDescripcionEstudio">Reporte:</label>
	      	</div>
	      	<div class="col-sm-3">
				<select id="campoReporte" name="reporte" class="form-control" > 
				    <c:forEach items="${reportes}" var="reporte">
				        <option value="${reporte.idReporte}">${reporte.descFormula}</option>
				    </c:forEach>
				</select>
			</div> 
	      	
	      	<div class="col-sm-1">			    
	      	</div>	      		      	      		      	
	    </div>
	    
	    <div class="form-group">
			<div class="col-sm-2">			    
	      		<label class="control-label" for="paraCampoGrupo" >Separa Argentina:</label>
	      	</div>
	      	
	      	<div class="col-sm-3">
				<input id="inpPreferido" name="agrupado" type="checkbox" value="0" onclick="cambiaValorCheckAgrega()" >
			</div> 
		</div>
	    		
		<s:if test="estudioActualizado">
		 	<script type="text/javascript">
		 			showMessage("Addon Guardado");
		 	</script>
		</s:if>			
		<s:elseif test="estudio != null && !estudioActualizado">
			<script type="text/javascript">
		 		showError("Error al agregar el addon");
		 	</script>
		</s:elseif>
		
	 	<div class="col-xs-2">
	    	<button class="btn btn-default" type="button" onclick="regreso()">Regresar</button>    	
	    </div>
	        
	    <div class="col-xs-2">
	        <button class="btn btn-success" type="submit">Guardar cambios</button>
	    </div>
	    
	    <br></br>
	    <br></br>
	    <br></br>       
    
</form>
	
<%@include file="/jsp/common/defaultBottomLogin.jsp"%>
