Bug 15211: adding Tools section sidebar to label creator
authorLiz Rea <liz@catalyst.net.nz>
Wed, 18 Nov 2015 22:34:41 +0000 (11:34 +1300)
committerKyle M Hall <kyle@bywatersolutions.com>
Thu, 31 Dec 2015 14:58:58 +0000 (14:58 +0000)
The label creator had a very sad sidebar, it needed to have the Tools area sidebar on it.

To test:

Click through all "New" pages, verify that the sidebar appears
Click through all "Manage" pages, verify that the sidebar appears.

Also verify that "Label creator" is bolded in the toolbar while the label creator is active.

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/labels/label-edit-batch.tt
koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-layout.tt
koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-profile.tt
koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-template.tt
koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-home.tt
koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt

index b76f5a7..5fa1219 100644 (file)
@@ -6,7 +6,11 @@
         if ( url.match(/\?(.+)$/) ) {
             params = "?" + RegExp.$1;
         }
-        $('#navmenulist a[href$="/' + path + params + '"]').css('font-weight','bold');
+        if (path.indexOf("labels") >= 0 && path.indexOf("spine") < 0 ) {
+          $('#navmenulist a[href$="/cgi-bin/koha/labels/label-home.pl"]').css('font-weight','bold');
+        } else {
+          $('#navmenulist a[href$="/' + path + params + '"]').css('font-weight','bold');
+        }
     });
 //]]>
 </script>
index eaa358b..eb89d6e 100644 (file)
     [% INCLUDE 'header.inc' %]
     [% INCLUDE 'cat-search.inc' %]
     <div id="breadcrumbs">
-        <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; 
+        <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
         <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
         <a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a> &rsaquo;
         <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=batch">Batches</a> &rsaquo;
                             </div>
                         </div>
                 </div>
+            <div class="yui-b">
+              [% INCLUDE 'tools-menu.inc' %]
+            </div>
             </div>
     [% INCLUDE 'intranet-bottom.inc' %]
index fbc8372..017af77 100644 (file)
                     </form>
                 </div>
             </div>
+            <div class="yui-b">
+              [% INCLUDE 'tools-menu.inc' %]
+            </div>
         </div>
         [% INCLUDE 'intranet-bottom.inc' %]
index 250e39a..03d1a50 100644 (file)
                                             </li>
                                          </ol>
                                                                                </fieldset>
-                                                                               
+
                                                                                <fieldset class="rows"><legend>Offset:</legend>
                                                                                <ol>
                                             <li>
                                             </li>
                                          </ol>
                                                                                </fieldset>
-                                                                               
+
                                                                                <fieldset class="rows"><legend>Creep:</legend>
                                                                                <ol>
                                             <li>
                             </div>
                         </div>
                 </div>
+                <div class="yui-b">
+                  [% INCLUDE 'tools-menu.inc' %]
+                </div>
             </div>
             [% INCLUDE 'intranet-bottom.inc' %]
index 3dacff8..e4fc9f9 100644 (file)
                 </form>
             </div>
         </div>
+        <div class="yui-b">
+          [% INCLUDE 'tools-menu.inc' %]
+        </div>
     </div>
     [% INCLUDE 'intranet-bottom.inc' %]
index 3d35baf..4744d9b 100644 (file)
@@ -26,5 +26,8 @@
                     </div>
                 </div>
             </div>
+            <div class="yui-b">
+              [% INCLUDE 'tools-menu.inc' %]
+            </div>
         </div>
         [% INCLUDE 'intranet-bottom.inc' %]
index 6a89aaf..cadf54c 100644 (file)
                     </div>
                 </div>
             </div>
+        <div class="yui-b">
+          [% INCLUDE 'tools-menu.inc' %]
+        </div>
         </div>
     [% INCLUDE 'intranet-bottom.inc' %]