Commit ecc8ea4d by Billy Larru

[EDIT control asistencia docentes, se agrega accion reemplazar docente]

parent 413a8d0c
......@@ -285,4 +285,13 @@ table.display tbody tr:hover td {
height: 16px;
background: url(../img/icons/firma.svg);
background-size: 16px 16px;
}
.icon-reemplazo{
display: inline-block;
/*margin-left: auto;*/
width: 16px;
height: 16px;
background: url(../img/icons/reemplazo.png);
background-size: 16px 16px;
}
\ No newline at end of file
......@@ -161,20 +161,29 @@ function getColumns() {
className: 'text-center',
render: (data) => {
let acciones = "";
let firmar = "";
let registrar = "";
let editar = "";
let aprobar = "";
let anular = "";
let reemplazar = "";
switch (data.estadoasistencia_codigo) {
case 3:
case 4:
reemplazar = `<span style="cursor:pointer;"><i class="reemplazar icon-reemplazo"></i></span>`;
break;
case 10:
case 11:
case null:
case "":
let registrar = `<span data-toggle="tooltip" data-placement="left" title="Editar" style="cursor: pointer"> <i class='registrar icon-plus-circle2 text-success-700'></i>&nbsp;&nbsp; </span>`;
let editar = `<span data-toggle="tooltip" data-placement="left" title="Editar" style="cursor: pointer"> <i class='editar icon-pencil text-slate-800'></i>&nbsp;&nbsp; </span>`;
let aprobar = `<span data-toggle="tooltip" data-placement="left" title="Aprobar" style="cursor: pointer"> <i class='aprobar icon-checkmark-circle text-success-700'></i>&nbsp;&nbsp; </span>`;
let anular = `<span data-toggle="tooltip" data-placement="left" title="Anular" style="cursor: pointer"> <i class='anular icon-cancel-circle2 text-danger-700'></i>&nbsp;&nbsp; </span>`;
registrar = `<span data-toggle="tooltip" data-placement="left" title="Editar" style="cursor: pointer"> <i class='registrar icon-plus-circle2 text-success-700'></i>&nbsp;&nbsp; </span>`;
editar = `<span data-toggle="tooltip" data-placement="left" title="Editar" style="cursor: pointer"> <i class='editar icon-pencil text-slate-800'></i>&nbsp;&nbsp; </span>`;
aprobar = `<span data-toggle="tooltip" data-placement="left" title="Aprobar" style="cursor: pointer"> <i class='aprobar icon-checkmark-circle text-success-700'></i>&nbsp;&nbsp; </span>`;
anular = `<span data-toggle="tooltip" data-placement="left" title="Anular" style="cursor: pointer"> <i class='anular icon-cancel-circle2 text-danger-700'></i>&nbsp;&nbsp; </span>`;
acciones = registrar;
break;
}
acciones = registrar + reemplazar;
return acciones;
}
}
......
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