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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 18 Jul 2023 17:07:40 +0000 (14:07 -0300)
commitbc13d57e02083a541411aa964cb244a0e75ae8d5
tree445b3376cfe5c007a775f4005caa98129df51f63
parent256518bf75f4df70a62bfe401bd911473e629efd
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>
koha-tmpl/intranet-tmpl/prog/en/includes/wrapper-staff-tool-plugin.inc [new file with mode: 0644]