mirror of
https://git.imnavajas.es/jjimenez/printhub.git
synced 2026-01-13 00:48:48 +00:00
subidos los ficheros nuevos
This commit is contained in:
1
src/main/resources/i18n/en/general.properties
Normal file
1
src/main/resources/i18n/en/general.properties
Normal file
@ -0,0 +1 @@
|
||||
t-paginas=Pages
|
||||
1
src/main/resources/i18n/es/general.properties
Normal file
1
src/main/resources/i18n/es/general.properties
Normal file
@ -0,0 +1 @@
|
||||
t-paginas=Páginas
|
||||
0
src/main/resources/static/assets/css/printhub.css
Normal file
0
src/main/resources/static/assets/css/printhub.css
Normal 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();
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
})();
|
||||
20
src/main/resources/templates/printhub/partials/head-css.html
Normal file
20
src/main/resources/templates/printhub/partials/head-css.html
Normal 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>
|
||||
Reference in New Issue
Block a user