Bugzilla – Attachment 140851 Details for
Bug 31603
Add search option for plugin page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31603: Add search option for plugin page
Bug-31603-Add-search-option-for-plugin-page.patch (text/plain), 3.66 KB, created by
Lucas Gass (lukeg)
on 2022-09-22 15:14:34 UTC
(
hide
)
Description:
Bug 31603: Add search option for plugin page
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2022-09-22 15:14:34 UTC
Size:
3.66 KB
patch
obsolete
>From abca01c3f48b60dc0d90e3f90eb254a38ba6f804 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >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. > >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> >--- > .../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 %] > <table id="installed_plugins"> >- <tr> >- <th>Name</th> >- <th>Description</th> >- <th>Author</th> >- <th>Plugin version</th> >- <th>Minimum Koha version</th> >- <th>Maximum Koha version</th> >- <th>Last updated</th> >- [% IF ( CAN_user_plugins_configure || CAN_user_plugins_manage || CAN_user_plugins_report || CAN_user_plugins_tool ) %] >- <th class="noExport">Actions</th> >- [% END %] >- </tr> >+ <thead> >+ <tr> >+ <th>Name</th> >+ <th>Description</th> >+ <th>Author</th> >+ <th>Plugin version</th> >+ <th>Minimum Koha version</th> >+ <th>Maximum Koha version</th> >+ <th>Last updated</th> >+ [% IF ( CAN_user_plugins_configure || CAN_user_plugins_manage || CAN_user_plugins_report || CAN_user_plugins_tool ) %] >+ <th class="noExport">Actions</th> >+ [% END %] >+ </tr> >+ </thead> > > [% 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' %] > <script> > $(document).ready(function(){ > $(".uninstall_plugin").on("click", function(){ >@@ -237,6 +241,10 @@ > $("#plugin-search-button").on("click", function(){ > $("#plugin-search-form").submit(); > }); >+ >+ KohaTable("installed_plugins", { >+ "bPaginate": false >+ }); > }); > </script> > [% END %] >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 31603
:
140850
|
140851
|
141179