<%@include file="/WEB-INF/includeTemplate.inc"%>

<div id="divDatosGenerales" class="container-fluid y41e-fade in">
    <div class="pt-1">
        <div id="datosGenerales_feedback"></div>
        <form id="datosGenerales_form">
            <div class="form-row">
                <div class="col-xs-12 col-sm-3 col-lg-2"> 
                    <label for="idEncuestaDG"><spring:message code="encuesta.id"/></label>
                    <input type="text" name="idEncuesta" class="form-control" id="idEncuestaDG" disabled="disabled"/>
                </div>
                <div class="col-xs-12 col-sm-4 col-lg-2">
                    <label for="fecEnvioDG"><spring:message code="comun.fechaEnvio" /></label>
                    <input type="text" name="fecEnvio" id="fecEnvioDG" class="form-control" disabled="disabled"/>
                </div>
                <div class="col-xs-12 col-sm-12 col-md-10 col-lg-6">
                    <label for="urlDG"><spring:message code="comun.url" /></label>
                    <input type="text" name="url" id="urlDG" class="form-control" disabled="disabled"/>
                </div>
            </div>
            <div class="form-row">
                <div class="col-xs-12 col-sm-10">
                    <label for="descPublEuDG"><i class="fa fa-asterisk" aria-hidden="true"></i><spring:message code="comun.titPublEu"/></label>
                    <textarea name="descPublEu" class="form-control required" id="descPublEuDG" maxlength="250"></textarea>
                </div>
            </div>
            <div class="form-row">
                <div class="col-xs-12 col-sm-10">
                    <label for="descPublEsDG"><i class="fa fa-asterisk" aria-hidden="true"></i><spring:message code="comun.titPublEs"/></label>
                    <textarea name="descPublEs" class="form-control required" id="descPublEsDG" maxlength="250"></textarea>
                </div>
            </div>
            <div class="form-row">
                <div class="col-xs-12 col-sm-10">
                    <label for="descIntEuDG"><i class="fa fa-asterisk" aria-hidden="true"></i><spring:message code="comun.titIntEu"/></label>
                    <textarea name="descIntEu" class="form-control required" id="descIntEuDG" maxlength="250"></textarea>
                </div>
            </div>
            <div class="form-row">
                <div class="col-xs-12 col-sm-10">
                    <label for="descIntEsDG"><i class="fa fa-asterisk" aria-hidden="true"></i><spring:message code="comun.titIntEs"/></label>
                    <textarea name="descIntEs" class="form-control required" id="descIntEsDG" maxlength="250"></textarea>
                </div>
            </div>
            <div class="form-row">
                <div class="col-xs-12 col-sm-5">
                    <label for="idAreaDG"><spring:message code="comun.area"/></label>
                    <select name="area.idArea" id="idAreaDG" class="form-control"></select>
                </div>
                <div class="col-xs-12 col-sm-5">
                    <label for="idOrigenDG"><spring:message code="comun.origen"/></label>
                    <select name="origen.idOrigen" id="idOrigenDG" class="form-control"></select>
                </div>
            </div>
            <div class="form-row">
               <div class="col-xs-12 col-sm-2">
                   <label for="fecVigInicioDG"><spring:message code="comun.fechaVigenciaInicio"/></label>
                   <input type="text" name="fecVigInicio" class="form-control" id="fecVigInicioDG" maxlength="10"/>
               </div>
               <div class="col-xs-12 col-sm-2">
                   <label for="fecVigFinDG"><spring:message code="comun.fechaVigenciaFin"/></label>
                   <input type="text" name="fecVigFin" class="form-control" id="fecVigFinDG" maxlength="10"/>
               </div>
               <div class="col-xs-12 col-sm-3">
                   <label for="periodoRespDG"><spring:message code="comun.periodoVigencia"/></label>
                   <input type="number" name="periodoResp" class="form-control validateVigencia" id="periodoRespDG" maxlength="3" min="1" max="999"/>
               </div>
               <div class="col-xs-4 col-sm-1 mr-3">
                    <label for="activaDG"><spring:message code="comun.activa" /></label>
                    <input type="checkbox" name="activa" id="activaDG" class="form-control" checked="checked" value="S"/>
                </div>
                <div class="col-xs-4 col-sm-1" id="idEnviadaDG">
                    <label for="enviadaDG"><spring:message code="comun.enviada" /></label>
                    <input type="checkbox" name="enviada" id="enviadaDG" class="form-control" disabled="disabled" value="S"/>
                </div>
            </div>
            <div class="mt-2 mb-2 col-xs-12 text-right">
	             <c:if test="${MODO eq 'D'}">
                    <button id="btnVolverBusqueda" type="button" class="btn btn-secondary">
                       <i class="fa fa-arrow-circle-o-left" aria-hidden="true"></i>
                       <spring:message code="boton.volver" />
                    </button>
	             </c:if>
                 <button id="btnGuardarEncuesta" type="button" class="btn btn-primary">
	                 <i class="fa fa-save" aria-hidden="true"></i>
	                 <spring:message code="boton.guardar" />
	             </button>
	             <button id="btnCancelarEncuesta" type="button" class="btn btn-danger">
	                 <i class="fa fa-ban" aria-hidden="true"></i>
	                 <spring:message code="boton.cancelar" />
	             </button>
	             <button id="bntSiguiente" type="button" class="btn btn-secondary">
	                 <i class="fa fa-forward" aria-hidden="true"></i>
	                 <spring:message code="boton.siguiente" />
	             </button>
            </div>
        </form>
    </div>
</div>