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" %>
Estado | - -Nivel de ingles | -Institucion Educativa | -Tecnologias | -Nivel de Tecnologia | -Experiencia general | -Cargo | -Convocatoria | -- | -- | -- - | -- - | -- - | -- - | -- - | -- - | - -
---|