diff --git a/curriculumsearch/src/main/resources/static/Convo.js b/curriculumsearch/src/main/resources/static/Convo.js index 0786c0a..b62b56d 100644 --- a/curriculumsearch/src/main/resources/static/Convo.js +++ b/curriculumsearch/src/main/resources/static/Convo.js @@ -1,12 +1,20 @@ const cargoSelect = document.querySelector("#cargoId"); - +const convoBlock = document.querySelector("#convocatoriaBlock"); function listarConvocatorias(id){ const ConvocatoriaAmostrar = convocatorias.filter(c=>c.cargoId==id); + + if(ConvocatoriaAmostrar.length>0) { + convoBlock.style.display = ""; + } + else{ + convoBlock.style.display = "none"; + } + const convocatoria = document.querySelector("select[name=convId]"); const frag = document.createDocumentFragment(); let optionDefault = document.createElement("option"); optionDefault.value = ""; - optionDefault.innerHTML = "Seleccione"; + optionDefault.innerHTML = "Todas"; frag.appendChild(optionDefault); for (const conv of ConvocatoriaAmostrar) { const opt = document.createElement("option"); diff --git a/curriculumsearch/src/main/webapp/jsp/cargos.jsp b/curriculumsearch/src/main/webapp/jsp/cargos.jsp index b6ed957..ec9e153 100644 --- a/curriculumsearch/src/main/webapp/jsp/cargos.jsp +++ b/curriculumsearch/src/main/webapp/jsp/cargos.jsp @@ -53,7 +53,7 @@ contentType="text/html;charset=UTF-8" language="java" %> Editar cargo - abrirConvocatoria + Abrir Convocatoria diff --git a/curriculumsearch/src/main/webapp/jsp/postulantes.jsp b/curriculumsearch/src/main/webapp/jsp/postulantes.jsp index cbdedb7..e6cee0a 100644 --- a/curriculumsearch/src/main/webapp/jsp/postulantes.jsp +++ b/curriculumsearch/src/main/webapp/jsp/postulantes.jsp @@ -21,85 +21,17 @@
+
+ + + + + Excel +
- - - - - - - - - - - - - - - - - - - - - - - - -
EstadoNivel de inglesInstitucion EducativaTecnologiasNivel de TecnologiaExperiencia generalCargoConvocatoria
- - - - - - - - - - - - - -
- + + + -
-
- - - - - Excel - -
-
@@ -347,6 +260,10 @@ lvlTec.disabled = tecId.value == false if(lvlTec.disabled){ lvlTec.firstElementChild.selected=true; + lvlTecBlock.style.display = "none"; + } + else{ + lvlTecBlock.style.display = ""; } } @@ -354,6 +271,7 @@ const tecId = document.querySelector("#tecId"); const lvlTec = document.querySelector("#lvlTec"); + const lvlTecBlock = document.querySelector("#lvlTecBlock"); tecId.addEventListener('change',habilitarLvlTec); habilitarLvlTec()