From 1c3e1dd5c013bac59003e231323d4d56461e6bda Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 26 Apr 2016 14:54:23 -0400 Subject: [PATCH] Bug 16369 - Clean up and improve plugins template This patch makes multiple changes to the plugins home page template to bring it up to date with current interface patterns. Test the following changes: - Breacrumb links have been corrected to include "Tools" in the path. Verify that this link is correct. - A toolbar has been added for an "Upload plugin" button. Uploading is an action, not a view, so it should be displayed in a toolbar. Verify that the button works correctly. - Messages are now formatted as messages rather than as headings. To test, trigger a message by, for instance, uninstalling all plugins or passing an invalid "method" parameter with the URL. - Incorrect capitalization corrected. - Plugin actions are moved to a single "Actions" dropdown menu. This includes 'Run report,' 'Run tool,' 'Configure,' and 'Uninstall.' Test that all these menu options work correctly. - The standard "Tools" sidebar menu has been added. - An "onclick" attribute has been removed in favor of defining the event in JavaScript. Test by choosing the 'Uninstall' menu item for a plugin. Test both confirm and cancel actions. Also changed: - Corrected capitalization on the tools home page. - Adding missing plugins link to the tools sidebar menu. Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall (cherry picked from commit 822509eee5f50e0425115a576be8d1f2c0450d35) Signed-off-by: Julian Maurice --- .../prog/en/includes/tools-menu.inc | 3 + .../prog/en/modules/plugins/plugins-home.tt | 111 ++++++++++-------- .../prog/en/modules/tools/tools-home.tt | 2 +- 3 files changed, 68 insertions(+), 48 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc index b76f5a7aa7..e9a625de7d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc @@ -108,4 +108,7 @@ [% IF ( CAN_user_tools_edit_quotes ) %]
  • Quote editor
  • [% END %] + [% IF ( UseKohaPlugins && CAN_user_plugins_tool ) %] +
  • Tool plugins
  • + [% END %] 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 830309b8ec..e4adb7c98f 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 @@ -3,14 +3,25 @@ Koha › Tools › Plugins [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'calendar.inc' %] + [% INCLUDE 'header.inc' %] [% INCLUDE 'circ-search.inc' %] -