Commit 1df71cf3 by Billy Larru

[EDIT registro de justificacion, pintar hora de marcacion para justificacion por tardanza]

parent 5245e1cc
......@@ -121,7 +121,8 @@ function getColumns() {
break;
}
return `<span class="${label}">${estado}</span>`;
// return `<span class="${label}">${estado}</span>`;
return `<abbr title="${data.estadoasistencia_descripcion}" class="${label}">${estado}</abbr>`;
}
},
{
......
......@@ -8,9 +8,21 @@ const listarCausaJustificacion = (nodeIdentifier) => {
let html = "<option>[SELECCIONE]</option>"
html += data.map((causaJustificacion) => `<option value="${causaJustificacion.id}">${causaJustificacion.descripcion}</option>`).join("")
$(nodeIdentifier).html(html)
$(nodeIdentifier).change(pintarHora)
})
}
const pintarHora = () => {
debugger
let causaJustificacion = $("#cboCausaJustificacion option:selected").text()
if (causaJustificacion === "TARDANZA") {
$("#divHora").removeClass('hidden')
} else {
$("#divHora").addClass('hidden')
}
}
const listarTipoJustificacion = (nodeIdentifier) => {
ajaxWebService.get(URI_JUSTIFICACION_TIPO).then((response) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment