subidos los ficheros nuevos

This commit is contained in:
Jaime Jiménez
2025-06-16 09:09:10 +02:00
parent 8ed8d0bded
commit 7709138428
12 changed files with 430 additions and 0 deletions

View File

@ -0,0 +1 @@
t-paginas=Pages

View File

@ -0,0 +1 @@
t-paginas=Páginas

View File

@ -0,0 +1,42 @@
(() => {
const lang = document.documentElement.lang || 'en'; // “es”, “en”, etc.
let langCode;
switch (lang) {
case 'es': langCode = 'es-ES'; break;
case 'fr': langCode = 'fr-FR'; break;
case 'de': langCode = 'de-DE'; break;
default: langCode = 'en-GB';
}
$('#listOfPrinters').DataTable({
processing: true,
serverSide: true,
language: {
url: `https://cdn.datatables.net/plug-ins/1.13.8/i18n/${langCode}.json`
},
ajax: {
url: '/configuration/printers/datatable',
dataSrc: 'data'
},
columns: [
{ data: 'id' },
{ data: 'name' } // añade aquí 'actions' si la envías
],
initComplete: function () {
const api = this.api();
// para cada input de la fila 'filters'
api.columns().eq(0).each(function (colIdx) {
const input = $('.filters th').eq(colIdx).find('input');
if (input.length) {
$(input).on('keyup change', function () {
// envía el texto al backend → columns[colIdx][search][value]
api.column(colIdx).search(this.value).draw();
});
}
});
}
});
})();

View File

@ -0,0 +1,20 @@
<html>
<body>
<div th:fragment="head-css" th:remove="tag">
<!-- Layout config Js -->
<script src="/assets/js/layout.js"></script>
<!-- Bootstrap Css -->
<link href="/assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<!-- Icons Css -->
<link href="/assets/css/icons.min.css" rel="stylesheet" type="text/css" />
<!-- App Css-->
<link href="/assets/css/app.min.css" rel="stylesheet" type="text/css" />
<!-- custom Css-->
<link href="/assets/css/custom.min.css" rel="stylesheet" type="text/css" />
<link href="/assets/css/printhub.css" rel="stylesheet" type="text/css" />
</div>
</body>
</html>