Bug 15211: Patron card creator needs tools sidebar
authorLiz Rea <liz@catalyst.net.nz>
Thu, 19 Nov 2015 02:14:18 +0000 (15:14 +1300)
committerKyle M Hall <kyle@bywatersolutions.com>
Thu, 31 Dec 2015 14:58:58 +0000 (14:58 +0000)
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 <hector.hecaxmmx@gmail.com>
Sidebar displayed Ok. No errors

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc
koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-batch.tt
koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-layout.tt
koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-profile.tt
koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-template.tt
koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/home.tt
koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/image-manage.tt
koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt

index 5fa1219..d4c19bc 100644 (file)
@@ -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');
         }
index c2288d9..5ae465a 100644 (file)
                         </div>
                     </div>
                 </div>
+                <div class="yui-b">
+                  [% INCLUDE 'tools-menu.inc' %]
+                </div>
             </div>
     [% INCLUDE 'intranet-bottom.inc' %]
index f92b316..8532c09 100644 (file)
                 </form>
                 </div>
             </div>
+            <div class="yui-b">
+              [% INCLUDE 'tools-menu.inc' %]
+            </div>
         </div>
         [% INCLUDE 'intranet-bottom.inc' %]
index 290b529..4fc2538 100644 (file)
                             </div>
                         </div>
                 </div>
+                <div class="yui-b">
+                  [% INCLUDE 'tools-menu.inc' %]
+                </div>
             </div>
             [% INCLUDE 'intranet-bottom.inc' %]
index bb25c1e..54dbbc6 100644 (file)
                 </form>
             </div>
         </div>
+        <div class="yui-b">
+          [% INCLUDE 'tools-menu.inc' %]
+        </div>
     </div>
     [% INCLUDE 'intranet-bottom.inc' %]
index 9be2bfc..4d3c950 100644 (file)
@@ -22,5 +22,8 @@
                     </div>
                 </div>
             </div>
+            <div class="yui-b">
+              [% INCLUDE 'tools-menu.inc' %]
+            </div>
         </div>
         [% INCLUDE 'intranet-bottom.inc' %]
index 0dd477f..b2ede43 100644 (file)
                 </div>
             </div>
         </div>
+        <div class="yui-b">
+          [% INCLUDE 'tools-menu.inc' %]
+        </div>
     </div>
     [% INCLUDE 'intranet-bottom.inc' %]
index 0812da4..6f77888 100644 (file)
                     </div>
                 </div>
             </div>
+            <div class="yui-b">
+              [% INCLUDE 'tools-menu.inc' %]
+            </div>
         </div>
     [% INCLUDE 'intranet-bottom.inc' %]