Bugzilla – Attachment 153201 Details for
Bug 31339
Add Template::Toolkit WRAPPER for Koha Tool Plugins
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31339: Add staff wrapper template include for tool plugins
Bug-31339-Add-staff-wrapper-template-include-for-t.patch (text/plain), 2.73 KB, created by
Kyle M Hall (khall)
on 2023-07-07 18:59:06 UTC
(
hide
)
Description:
Bug 31339: Add staff wrapper template include for tool plugins
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2023-07-07 18:59:06 UTC
Size:
2.73 KB
patch
obsolete
>From f4221bb7a187711e7f79ebf92deb8057da8b245c Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >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 <david@davidnind.com> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > .../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' %] >+<title>[% IF ( plugin_title ) %][% plugin_title | html %] › [% END %]Plugins › Tools › Koha </title> >+[% INCLUDE 'doc-head-close.inc' %] >+</head> >+<body id="plugins_run_tool" class="plugins"> >+ >+[% INCLUDE 'header.inc' %] >+[% INCLUDE 'prefs-admin-search.inc' %] >+ >+<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb"> >+ <ol> >+ <li> >+ <a href="/cgi-bin/koha/mainpage.pl">Home</a> >+ </li> >+ <li> >+ <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> >+ </li> >+ <li> >+ <a href="/cgi-bin/koha/plugins/plugins-home.pl">Plugins</a> >+ </li> >+ <li> >+ <a href="#" aria-current="page"> >+ [% IF ( plugin_title ) %][% plugin_title | html %][% ELSE %]Plugin[% END %] >+ </a> >+ </li> >+ </ol> >+</nav> >+ >+<div class="main container-fluid"> >+ <div class="row"> >+ <div class="col-sm-10 col-sm-push-2"> >+ <main> >+ [% content | $raw %] >+ </main> >+ </div> <!-- /.col-sm-10.col-sm-push-2 --> >+ >+ <div class="col-sm-2 col-sm-pull-10"> >+ <aside> >+ [% INCLUDE 'tools-menu.inc' %] >+ </aside> >+ </div> <!-- /.col-sm-2.col-sm-pull-10 --> >+ </div> <!-- /.row --> >+ >+[% INCLUDE 'intranet-bottom.inc' %] >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 31339
:
139647
|
139648
|
150528
| 153201