mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
papel generico terminado. papel impresion a falta de maquinas y tipologias
This commit is contained in:
@ -1,26 +1,66 @@
|
||||
<!-- Push section css -->
|
||||
<?= $this->section('css') ?>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sweetalert2@9.7.2/dist/sweetalert2.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sweetalert2@11/dist/sweetalert2.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@sweetalert2/theme-dark@4/dark.css">
|
||||
|
||||
<style>
|
||||
/* Toastr */
|
||||
.colored-toast.swal2-icon-success {
|
||||
background-color: #478921 !important;
|
||||
}
|
||||
|
||||
.colored-toast.swal2-icon-error {
|
||||
background-color: #c42a2a !important;
|
||||
}
|
||||
|
||||
.colored-toast.swal2-icon-warning {
|
||||
background-color: #f8bb86 !important;
|
||||
}
|
||||
|
||||
.colored-toast.swal2-icon-info {
|
||||
background-color: #3fc3ee !important;
|
||||
}
|
||||
|
||||
.colored-toast.swal2-icon-question {
|
||||
background-color: #87adbd !important;
|
||||
}
|
||||
|
||||
.colored-toast .swal2-title {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.colored-toast .swal2-close {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.colored-toast .swal2-html-container {
|
||||
color: white;
|
||||
}
|
||||
</style>
|
||||
<?= $this->endSection() ?>
|
||||
|
||||
|
||||
|
||||
<!-- Push section js -->
|
||||
<?= $this->section('additionalExternalJs') ?>
|
||||
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@9.7.2/dist/sweetalert2.all.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11/dist/sweetalert2.all.min.js"></script>
|
||||
<?= $this->endSection() ?>
|
||||
|
||||
|
||||
|
||||
<?= $this->section('additionalInlineJs') ?>
|
||||
|
||||
var Toast = Swal.mixin({
|
||||
const Toast = Swal.mixin({
|
||||
toast: true,
|
||||
position: 'top-end',
|
||||
position: 'top-right',
|
||||
iconColor: 'white',
|
||||
customClass: {
|
||||
popup: 'colored-toast'
|
||||
},
|
||||
showConfirmButton: false,
|
||||
timer: 6000,
|
||||
timerProgressBar: true,
|
||||
onOpen: (toast) => {
|
||||
didOpen: (toast) => {
|
||||
toast.addEventListener('mouseenter', Swal.stopTimer)
|
||||
toast.addEventListener('mouseleave', Swal.resumeTimer)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user