]> git.koha-community.org Git - koha.git/commit
Bug 31339: Add staff wrapper template include for tool plugins
authorDavid Cook <dcook@prosentient.com.au>
Tue, 23 Aug 2022 06:27:59 +0000 (06:27 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 19 Jul 2023 08:28:34 +0000 (09:28 +0100)
commit3fc7bc0c9e4d02d4424a95b1691824555f1339b6
tree4db95f7821dad90c9032a2f3d0ae1085c2284473
parent2cb9fa1b52e0f09d52c9a85d3b7ca04694add6a9
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 <david@davidnind.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit bc13d57e02083a541411aa964cb244a0e75ae8d5)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/en/includes/wrapper-staff-tool-plugin.inc [new file with mode: 0644]