Commit fe6735a4 by Billy Larru

mostrando mensaje de registro de asistencia, en la vista de control de asistencia

parent 3e194865
......@@ -171,12 +171,22 @@ const mostrarModalRegistro = (data) => {
inicializarInputsModal(data);
}
})
// .then((result) => {
// mostrarMensajeResultadoModal(result);
// });
.then((result) => {
mostrarMensajeResultadoModal(result);
});
});
}
function mostrarMensajeResultadoModal(result = {}){
if (result.value) {
swal({
type: 'success',
title: '¡Se registró la asistencia exitosamente!',
showConfirmButton: false,
timer: 1500
});
}
}
const inicializarInputsModal = (data) => {
let nombresCompletos = `${data.apellidos} ${data.nombres}`;
......@@ -197,20 +207,9 @@ function cambioTipoRegistro() {
if (criterio == 1 || criterio == 2) {
let html =
`<div class=''>
<div class="form-group col-md-6">
<label style="font-size: small">
Marcación:
</label>
<span class="text-danger"> (*)</span>
<select id="cboTipoAsistencia" class="form-control">
<option value="0">[SELECCIONE]</option>
<option value="1">ENTRADA</option>
<option value="2">SALIDA</option>
</select>
</div>
<div class="form-group col-md-6">
<div class="form-group col-md-12">
<label style="font-size: small">
Hora:
Hora Entrada:
</label>
<span class="text-danger"> (*)</span>
<input type="time" id="txtHora" name="txtHora" value="" class="form-control" placeholder="Ingrese la hora" style="text-transform:uppercase;">
......
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