From 48ee5c5e1bae5097f747d4c55e2417d3ec64aee5 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Fri, 6 Sep 2024 08:35:35 +0200 Subject: [PATCH] =?UTF-8?q?datables.net=20filtrage=20des=20=C3=A9l=C3=A9me?= =?UTF-8?q?nts,=20nombre=20d'=C3=A9l=C3=A9ments=20et=20position=20sur=20l'?= =?UTF-8?q?=C3=A9cran?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/module/theme/view/font/font.js.php | 1 + core/module/user/view/index/index.css | 3 ++- core/module/user/view/index/index.js.php | 1 + core/vendor/datatables/datatables.custom.css | 13 +++++++++++++ core/vendor/datatables/french.json | 2 +- core/vendor/datatables/inc.json | 3 ++- 6 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 core/vendor/datatables/datatables.custom.css diff --git a/core/module/theme/view/font/font.js.php b/core/module/theme/view/font/font.js.php index dd47dae6..376fc6ca 100644 --- a/core/module/theme/view/font/font.js.php +++ b/core/module/theme/view/font/font.js.php @@ -20,6 +20,7 @@ $('#dataTables').DataTable({ }, locale: 'fr', stateSave: true, + "lengthMenu": [[10, 25, 50, -1], [10, 25, 50, "Tout"]], "columnDefs": [{ target: 5, orderable: false, diff --git a/core/module/user/view/index/index.css b/core/module/user/view/index/index.css index b6eeb0e0..742a8ae1 100755 --- a/core/module/user/view/index/index.css +++ b/core/module/user/view/index/index.css @@ -15,4 +15,5 @@ /** NE PAS EFFACER * admin.css -*/ \ No newline at end of file +*/ + diff --git a/core/module/user/view/index/index.js.php b/core/module/user/view/index/index.js.php index 09190ab4..cea710b4 100644 --- a/core/module/user/view/index/index.js.php +++ b/core/module/user/view/index/index.js.php @@ -29,6 +29,7 @@ $(document).ready((function () { }, locale: 'fr', stateSave: true, + "lengthMenu": [[10, 25, 50, -1], [10, 25, 50, "Tout"]], "columnDefs": [ { target: 5, diff --git a/core/vendor/datatables/datatables.custom.css b/core/vendor/datatables/datatables.custom.css new file mode 100644 index 00000000..0777e6b4 --- /dev/null +++ b/core/vendor/datatables/datatables.custom.css @@ -0,0 +1,13 @@ +.dataTables_length { + margin-bottom: 10px; + width: 250px; +} + +.dataTables_length label { + float: left; +} + +.dataTables_length select { + margin-left: 5px; + width: 80px; +} \ No newline at end of file diff --git a/core/vendor/datatables/french.json b/core/vendor/datatables/french.json index 52f6508b..e8aaa24d 100644 --- a/core/vendor/datatables/french.json +++ b/core/vendor/datatables/french.json @@ -1,7 +1,7 @@ { "processing": "Traitement en cours...", "search": "Rechercher :", - "lengthMenu": "Éléments par page _MENU_", + "lengthMenu": "Éléments par page : _MENU_", "info": "Affichage de l'élement _START_ à _END_ sur _TOTAL_ éléments", "infoEmpty": "Affichage de l'élement 0 à 0 sur 0 éléments", "infoFiltered": "(filtré de _MAX_ éléments au total)", diff --git a/core/vendor/datatables/inc.json b/core/vendor/datatables/inc.json index 007920f0..83e2412b 100644 --- a/core/vendor/datatables/inc.json +++ b/core/vendor/datatables/inc.json @@ -1,4 +1,5 @@ [ "datatables.min.js", - "datatables.min.css" + "datatables.min.css", + "datatables.custom.css" ] \ No newline at end of file