Fixes and improvements to main.php, test.php, c_login.php, reposicion_profesor_materias.php, puesto.php, action_usuarios_insert.php, periodos.php, reposicion_autoriza.php, profesor_faltas.php

This commit is contained in:
2024-01-22 16:12:37 +00:00
parent 8b9ef01a36
commit 113ac2aedd
17 changed files with 366 additions and 156 deletions

View File

@@ -131,9 +131,28 @@ $write = $user->admin || in_array($user->acceso, ['r']);
</div>
<hr>
<div id="btn-excel-horario" class="mb-2 float-right hidden">
<button class="btn btn-outline-secondary " title="Exportar a Excel" v-if="false">
<span class="ing-descarga ing-fw"></span> Exportar a Excel
<div id="btn-excel-horario" class="mb-2 float-right hidden" v-if="horarios.data.length > 0">
<button class="btn btn-outline-secondary " title="Imprimir PDF" @click="
// hide all not the table
Array.from(document.body.children).forEach(child => {
if (child.id !== 'app') {
child.classList.add('d-none');
}
// hide this button
document.getElementById('btn-excel-horario').classList.add('d-none');
});
window.print()
// show all
Array.from(document.body.children).forEach(child => {
child.classList.remove('d-none');
});
// show this button
document.getElementById('btn-excel-horario').classList.remove('d-none');
">
<span class="ing-descarga ing-fw"></span> Exportar
</button>
</div>
<div class="table-responsive" v-if="horarios.data.length > 0">