From bc13d57e02083a541411aa964cb244a0e75ae8d5 Mon Sep 17 00:00:00 2001 From: David Cook Date: Tue, 23 Aug 2022 06:27:59 +0000 Subject: [PATCH] Bug 31339: Add staff wrapper template include for tool plugins This change adds a template include which can be used as a WRAPPER for tool plugins, which makes it easy to pages in tool templates without having to copy and maintain a lot of template boilerplate. Test plan: 0. Apply patch and koha-plack --restart kohadev 1. Upload koha-plugin-test-wrapper 2. Enable the plugin 3. Click "Actions" and click "Run tool" 4. Note how the plugin page looks like a perfect Koha Tools page 5. Note that the plugin only contains 6 lines of template code to achieve this effect Signed-off-by: David Nind Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- .../en/includes/wrapper-staff-tool-plugin.inc | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/wrapper-staff-tool-plugin.inc diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/wrapper-staff-tool-plugin.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/wrapper-staff-tool-plugin.inc new file mode 100644 index 0000000000..0543393ccb --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/wrapper-staff-tool-plugin.inc @@ -0,0 +1,46 @@ +[% USE raw %] +[% SET footerjs = 1 %] +[% INCLUDE 'doc-head-open.inc' %] +[% IF ( plugin_title ) %][% plugin_title | html %] › [% END %]Plugins › Tools › Koha +[% INCLUDE 'doc-head-close.inc' %] + + + +[% INCLUDE 'header.inc' %] +[% INCLUDE 'prefs-admin-search.inc' %] + + + +
+
+
+
+ [% content | $raw %] +
+
+ +
+ +
+
+ +[% INCLUDE 'intranet-bottom.inc' %] -- 2.39.5