From: Owen Leonard Date: Tue, 12 Jul 2016 18:07:18 +0000 (-0400) Subject: Bug 16906 - Add DataTables pagination and filter to top of saved SQL reports table X-Git-Tag: v16.11.00~1054 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;ds=sidebyside;h=1614787d0210d55ab77b9ee2500ac16da2bf6854;p=koha_ffzg Bug 16906 - Add DataTables pagination and filter to top of saved SQL reports table This patch adds a DataTables toolbar to the top of the saved SQL reports table so that pagination and filtering controls are at the top as well as the bottom. To test, apply the patch and go to Reports -> Saved reports. There should be controls at the top of the table of saved reports for setting number of results, pagination, and searching. Signed-off-by: Marc VĂ©ron Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt index 16752ccc4c..d5968c88fe 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt @@ -87,7 +87,7 @@ $("#delColumn").on("click",function(){ [% IF (saved1) %] var rtable = $("#table_reports").dataTable($.extend(true, {}, dataTablesDefaults, { 'bAutoWidth': false, - 'sDom': 't<"bottom pager"ilpf>', + 'sDom': '<"top pager"ilpf>t<"bottom pager"ilpf>', 'sPaginationType': 'four_button', 'aaSorting': [[ 1, "asc" ]], 'aoColumnDefs': [