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

<script src="${contextPath}/js/dda/admin/catalogos/categorias/categorias.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="agregarCategoria.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 de la Categoria:</label>
	      	</div>
	      	<div class="col-sm-3">      										
				<input type="text" name="nombreCategoria" />
	      	</div>
	      	
	      	<div class="col-sm-1">			    
	      	</div>	      		      	      		      	
	    </div>
	    		
		<s:if test="estudioActualizado">
		 	<script type="text/javascript">
		 			showMessage("Categoria Guardada");
		 	</script>
		</s:if>			
		<s:elseif test="estudio != null && !estudioActualizado">
			<script type="text/javascript">
		 		showError("Error al agregar la categoria");
		 	</script>
		</s:elseif>
		
	 	<div class="col-sm-2">
	    	<button class="btn btn-default" type="button" onclick="regreso()">Regresar</button>    	
	    </div>
	        
	    <div class="col-sm-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"%>
