Desarrollo del modulo de alumno y control escolar para subir archivos de expediente
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<script>
|
||||
document.addEventListener('submit', function (e) {
|
||||
|
||||
if (!e.target.classList.contains('delete-form')) return;
|
||||
|
||||
if (e.target.dataset.confirmed) return;
|
||||
|
||||
e.preventDefault();
|
||||
|
||||
Swal.fire({
|
||||
title: "Eliminar registro",
|
||||
text: "¿Estás seguro?",
|
||||
icon: "warning",
|
||||
showCancelButton: true,
|
||||
confirmButtonText: "Eliminar",
|
||||
cancelButtonText: "Regresar",
|
||||
}).then((result) => {
|
||||
if (result.isConfirmed) {
|
||||
e.target.dataset.confirmed = true;
|
||||
e.target.submit();
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(session('swal')): ?>
|
||||
<script>
|
||||
Swal.fire(<?php echo json_encode(session('swal'), 15, 512) ?>)
|
||||
</script>
|
||||
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
||||
<?php /**PATH C:\proyectos\primeros\sistemaEducativo\resources\views/layouts/_partials/delete.blade.php ENDPATH**/ ?>
|
||||
Reference in New Issue
Block a user