From d6fc847baa2939ad6191a50b1c4d9061d18431fd Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 22 Sep 2022 14:44:50 +0000 Subject: [PATCH] Bug 31603: Add search option for plugin page This patch converts the table of plugins to a DataTable so that it will have dynamic sorting, export options, and the quick search field at the top of the table. To test you should have more than one plugin installed. - Apply the patch and go to Administration -> Manage plugins. - The table should be styled as a DataTable, with the first column sorted by default. - At the top of the table you should see the number of entries, a quick search form, and an export button. - Confirm that the quick search form works to filter plugins by name, description, author, etc. --- .../prog/en/modules/plugins/plugins-home.tt | 32 ++++++++++++------- 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt index c43c5fb2ee..f767edfa0f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt @@ -114,18 +114,20 @@ [% END %] [% ELSE %] - - - - - - - - - [% IF ( CAN_user_plugins_configure || CAN_user_plugins_manage || CAN_user_plugins_report || CAN_user_plugins_tool ) %] - - [% END %] - + + + + + + + + + + [% IF ( CAN_user_plugins_configure || CAN_user_plugins_manage || CAN_user_plugins_report || CAN_user_plugins_tool ) %] + + [% END %] + + [% FOREACH plugin IN plugins %] [% IF plugin.error %] @@ -226,6 +228,8 @@ [% MACRO jsinclude BLOCK %] [% Asset.js("js/tools-menu.js") | $raw %] [% INCLUDE 'calendar.inc' %] + [% INCLUDE 'datatables.inc' %] + [% INCLUDE 'columns_settings.inc' %] [% END %] -- 2.30.2
NameDescriptionAuthorPlugin versionMinimum Koha versionMaximum Koha versionLast updatedActions
NameDescriptionAuthorPlugin versionMinimum Koha versionMaximum Koha versionLast updatedActions