From 090cd49f174487cde794326b9ef35b0438366f35 Mon Sep 17 00:00:00 2001 From: Liz Rea Date: Thu, 19 Nov 2015 15:14:18 +1300 Subject: [PATCH] Bug 15211: Patron card creator needs tools sidebar The patron card creator should have the Tools area sidebar on its pages. This patch adds it. To test: Go to More -> Tools -> Patron card creator The home page should have the tools sidebar Click through all of the "New" pages - they should all have the tools sidebar Click through all of the "Manage" pages - they should all have the tools sidebar Also verify that on each page, the Patron card creator link in the sidebar is bolded Signed-off-by: Hector Castro Sidebar displayed Ok. No errors Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc | 2 ++ .../intranet-tmpl/prog/en/modules/patroncards/edit-batch.tt | 3 +++ .../intranet-tmpl/prog/en/modules/patroncards/edit-layout.tt | 3 +++ .../intranet-tmpl/prog/en/modules/patroncards/edit-profile.tt | 3 +++ .../intranet-tmpl/prog/en/modules/patroncards/edit-template.tt | 3 +++ koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/home.tt | 3 +++ .../intranet-tmpl/prog/en/modules/patroncards/image-manage.tt | 3 +++ koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt | 3 +++ 8 files changed, 23 insertions(+) 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 5fa1219a05..d4c19bc397 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc @@ -8,6 +8,8 @@ } if (path.indexOf("labels") >= 0 && path.indexOf("spine") < 0 ) { $('#navmenulist a[href$="/cgi-bin/koha/labels/label-home.pl"]').css('font-weight','bold'); + } else if (path.indexOf("patroncards") >= 0 ) { + $('#navmenulist a[href$="/cgi-bin/koha/patroncards/home.pl"]').css('font-weight','bold'); } else { $('#navmenulist a[href$="/' + path + params + '"]').css('font-weight','bold'); } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-batch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-batch.tt index c2288d9e2a..5ae465aa98 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-batch.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-batch.tt @@ -265,5 +265,8 @@ +
+ [% INCLUDE 'tools-menu.inc' %] +
[% INCLUDE 'intranet-bottom.inc' %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-layout.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-layout.tt index f92b3166db..8532c09e1c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-layout.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-layout.tt @@ -554,5 +554,8 @@ +
+ [% INCLUDE 'tools-menu.inc' %] +
[% INCLUDE 'intranet-bottom.inc' %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-profile.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-profile.tt index 290b529ffa..4fc2538329 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-profile.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-profile.tt @@ -134,5 +134,8 @@ +
+ [% INCLUDE 'tools-menu.inc' %] +
[% INCLUDE 'intranet-bottom.inc' %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-template.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-template.tt index bb25c1e7ca..54dbbc6f25 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-template.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-template.tt @@ -171,5 +171,8 @@ +
+ [% INCLUDE 'tools-menu.inc' %] +
[% INCLUDE 'intranet-bottom.inc' %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/home.tt index 9be2bfcce6..4d3c95088f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/home.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/home.tt @@ -22,5 +22,8 @@ +
+ [% INCLUDE 'tools-menu.inc' %] +
[% INCLUDE 'intranet-bottom.inc' %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/image-manage.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/image-manage.tt index 0dd477fe50..b2ede43515 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/image-manage.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/image-manage.tt @@ -173,5 +173,8 @@ +
+ [% INCLUDE 'tools-menu.inc' %] +
[% INCLUDE 'intranet-bottom.inc' %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt index 0812da4b02..6f778880d3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt @@ -214,5 +214,8 @@ +
+ [% INCLUDE 'tools-menu.inc' %] +
[% INCLUDE 'intranet-bottom.inc' %] -- 2.39.5