From d8ae0f14911a890556480fcd248522f20eb3a5bf 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 Content-Type: text/plain; charset="utf-8" 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. --- .../intranet-tmpl/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 25de0b1..9a2b1bf 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc @@ -117,6 +117,9 @@ [% IF ( CAN_user_tools_edit_quotes ) %]
  • Quote editor
  • [% END %] + [% IF ( UseKohaPlugins && CAN_user_plugins_tool ) %] +
  • Tool plugins
  • + [% END %] [% IF ( CAN_user_tools_upload_general_files ) %]
  • Upload any file
  • [% 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 830309b..e4adb7c 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' %] -