From 39b53be9995e2f5355c175a75e89ac88e10addba Mon Sep 17 00:00:00 2001 From: Joel Date: Wed, 24 Nov 2021 11:43:56 -0300 Subject: [PATCH] se retocaron los filtros en la lista postulantes jsp --- curriculumsearch/src/main/resources/static/Convo.js | 12 ++++++++++-- curriculumsearch/src/main/webapp/jsp/cargos.jsp | 2 +- curriculumsearch/src/main/webapp/jsp/postulantes.jsp | 256 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 3 files changed, 98 insertions(+), 172 deletions(-) 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
- - - - - - - - - - - - - -
- + + + -
- -
@@ -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() -- libgit2 0.26.0