/[smeserver]/rpms/smeserver-manager/sme10/smeserver-manager-0.1.4-Add-Export-Buttons-to-dataTable.patch
ViewVC logotype

Contents of /rpms/smeserver-manager/sme10/smeserver-manager-0.1.4-Add-Export-Buttons-to-dataTable.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Wed Feb 7 10:29:34 2024 UTC (9 months, 2 weeks ago) by brianr
Branch: MAIN
CVS Tags: smeserver-manager-0_1_4-31_el7_sme, smeserver-manager-0_1_4-34_el7_sme, smeserver-manager-0_1_4-24_el7_sme, smeserver-manager-0_1_4-29_el7_sme, smeserver-manager-0_1_4-33_el7_sme, smeserver-manager-0_1_4-27_el7_sme, smeserver-manager-0_1_4-25_el7_sme, smeserver-manager-0_1_4-26_el7_sme, smeserver-manager-0_1_4-28_el7_sme, smeserver-manager-0_1_4-32_el7_sme, HEAD
* Wed Feb 07 2024 Brian Read <brianr@koozali.org> 0.1.4-24.sme
- Add in export buttons to dataTables[SME: 12466]

1 diff -urN smeserver-manager-0.1.4.old/root/usr/share/smanager/themes/default/templates/layouts/default.html.ep smeserver-manager-0.1.4/root/usr/share/smanager/themes/default/templates/layouts/default.html.ep
2 --- smeserver-manager-0.1.4.old/root/usr/share/smanager/themes/default/templates/layouts/default.html.ep 2024-02-07 09:44:03.958643482 +0000
3 +++ smeserver-manager-0.1.4/root/usr/share/smanager/themes/default/templates/layouts/default.html.ep 2024-02-07 09:18:00.000000000 +0000
4 @@ -23,7 +23,24 @@
5 %= stylesheet '/js/jquery-ui.min.css'
6 %= javascript '/js/jquery-ui.min.js'
7
8 + %= stylesheet '/js/dataTables.buttons.min.js'
9 + %= stylesheet '/js/jszip.min.js'
10 + %= stylesheet '/js/pdfmake.min.js'
11 + %= stylesheet '/js/vfs_fonts.js'
12 + %= stylesheet '/js/buttons.html5.min.js'
13 + %= stylesheet '/js/buttons.print.min.js'
14 +
15 %= stylesheet '/css/sme-jquery-overrides.css'
16 +
17 +
18 + <!--><script src="https://cdn.datatables.net/buttons/2.4.2/js/dataTables.buttons.min.js"></script>
19 + <script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js"></script>
20 + <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/pdfmake.min.js"></script>
21 + <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/vfs_fonts.js"></script>
22 + <script src="https://cdn.datatables.net/buttons/2.4.2/js/buttons.html5.min.js"></script>
23 + <script src="https://cdn.datatables.net/buttons/2.4.2/js/buttons.print.min.js"></script>
24 + -->
25 +
26
27 <!-- ><link href="https://cdn.datatables.net/v/dt/dt-1.13.8/datatables.min.css" rel="stylesheet">
28 <script src="https://cdn.datatables.net/v/dt/dt-1.13.8/datatables.min.js"></script>
29 @@ -98,7 +115,10 @@
30 "emptyTable": "No record found.",
31 "processing":'" style="color: rgba(42, 43, 43, 1)">Loading... ',
32 "error": function (xhr, error, thrown) {alert("Error occurred while loading data. Please try again.");}
33 - }
34 + },
35 + "dom": 'Bfrtip',
36 + "buttons": ['copy', 'csv', 'excel', 'pdf', 'print']
37 +
38 });
39 $(".sme-modify-button").button({"icon": "ui-icon-pencil"});
40 $(".sme-remove-button").button({"icon": "ui-icon-trash"});

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed