Bugzilla – Attachment 177586 Details for
Bug 37250
Redesign labels home page to match other module home pages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37250: Redesign labels home page to match other module home pages
Bug-37250-Redesign-labels-home-page-to-match-other.patch (text/plain), 9.21 KB, created by
Owen Leonard
on 2025-02-06 16:14:08 UTC
(
hide
)
Description:
Bug 37250: Redesign labels home page to match other module home pages
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2025-02-06 16:14:08 UTC
Size:
9.21 KB
patch
obsolete
>From 73b9f382298c53f6b99bdccce6031afd5a72d226 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 1 Jul 2024 11:23:58 +0000 >Subject: [PATCH] Bug 37250: Redesign labels home page to match other module > home pages > >This patch changes the labels home page so that it shows the links which >previously were buried in a dropdown menu. Generally speaking we >shouldn't be using the button toolbar for navigation. > >To test, apply the patch and go to Cataloging -> Label creator. > >- You should see links styled like they are on the circulation or > cataloging home page. >- If you follow any of those links you should see a new menu in the > sidebar which has all the navigation items previously in the "Manage" > dropdown menu. > >Sponsored-by: Athens County Public Libraries >Signed-off-by: David Nind <david@davidnind.com> >--- > .../prog/en/includes/labels-menu.inc | 28 +++++++++++++++++++ > .../prog/en/includes/labels-toolbar.inc | 9 ------ > .../en/modules/labels/label-edit-batch.tt | 1 + > .../en/modules/labels/label-edit-layout.tt | 1 + > .../en/modules/labels/label-edit-profile.tt | 1 + > .../en/modules/labels/label-edit-range.tt | 1 + > .../en/modules/labels/label-edit-template.tt | 1 + > .../prog/en/modules/labels/label-home.tt | 11 ++++++++ > .../prog/en/modules/labels/label-manage.tt | 1 + > 9 files changed, 45 insertions(+), 9 deletions(-) > create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/labels-menu.inc > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/labels-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/labels-menu.inc >new file mode 100644 >index 0000000000..c9a873a770 >--- /dev/null >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/labels-menu.inc >@@ -0,0 +1,28 @@ >+<div id="labels-menu" class="sidebar_menu"> >+ <ul> >+ [% IF ( label_element_title == "Batches" ) %] >+ <li><a class="current" href="/cgi-bin/koha/labels/label-manage.pl?label_element=batch">Label batches</a></li> >+ [% ELSE -%] >+ <li><a href="/cgi-bin/koha/labels/label-manage.pl?label_element=batch">Label batches</a></li> >+ [% END %] >+ >+ [% IF ( label_element_title == "Layouts" ) %] >+ <li><a class="current" href="/cgi-bin/koha/labels/label-manage.pl?label_element=layout">Label layouts</a></li> >+ [% ELSE -%] >+ <li><a href="/cgi-bin/koha/labels/label-manage.pl?label_element=layout">Label layouts</a></li> >+ [% END %] >+ >+ [% IF ( label_element_title == "Templates" ) %] >+ <li><a class="current" href="/cgi-bin/koha/labels/label-manage.pl?label_element=template">Label templates</a></li> >+ [% ELSE -%] >+ <li><a href="/cgi-bin/koha/labels/label-manage.pl?label_element=template">Label templates</a></li> >+ [% END %] >+ >+ [% IF ( label_element_title == "Profiles" ) %] >+ <li><a class="current" href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile">Printer profiles</a></li> >+ [% ELSE -%] >+ <li><a href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile">Printer profiles</a></li> >+ [% END %] >+ >+ </ul> >+</div> <!-- /.sidebar_menu --> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/labels-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/labels-toolbar.inc >index 29d9209197..2e504b2761 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/labels-toolbar.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/labels-toolbar.inc >@@ -9,13 +9,4 @@ > <li><a class="dropdown-item" href="/cgi-bin/koha/labels/label-edit-range.pl">Barcode range</a></li> > </ul> > </div> >- <div class="btn-group"> >- <button class="btn btn-default dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Manage</button> >- <ul class="dropdown-menu"> >- <li><a class="dropdown-item" href="/cgi-bin/koha/labels/label-manage.pl?label_element=batch">Label batches</a></li> >- <li><a class="dropdown-item" href="/cgi-bin/koha/labels/label-manage.pl?label_element=layout">Layouts</a></li> >- <li><a class="dropdown-item" href="/cgi-bin/koha/labels/label-manage.pl?label_element=template">Label templates</a></li> >- <li><a class="dropdown-item" href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile">Printer profiles</a></li> >- </ul> >- </div> > </div> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt >index c7dcfdc36a..663312e0d3 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt >@@ -205,6 +205,7 @@ > > <div class="col-md-2 order-sm-2 order-md-1"> > <aside> >+ [% INCLUDE 'labels-menu.inc' %] > [% INCLUDE 'cat-menu.inc' %] > </aside> > </div> <!-- /.col-md-2.order-md-1 --> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-layout.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-layout.tt >index eac4cfb0c5..540ea23f9a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-layout.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-layout.tt >@@ -226,6 +226,7 @@ > > <div class="col-md-2 order-sm-2 order-md-1"> > <aside> >+ [% INCLUDE 'labels-menu.inc' %] > [% INCLUDE 'cat-menu.inc' %] > </aside> > </div> <!-- /.col-md-2.order-md-1 --> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-profile.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-profile.tt >index 8da6426f85..708a54820e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-profile.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-profile.tt >@@ -146,6 +146,7 @@ > > <div class="col-md-2 order-sm-2 order-md-1"> > <aside> >+ [% INCLUDE 'labels-menu.inc' %] > [% INCLUDE 'cat-menu.inc' %] > </aside> > </div> <!-- /.col-md-2.order-md-1 --> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-range.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-range.tt >index e3315d55e7..557a8e60e6 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-range.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-range.tt >@@ -62,6 +62,7 @@ > > <div class="col-md-2 order-sm-2 order-md-1"> > <aside> >+ [% INCLUDE 'labels-menu.inc' %] > [% INCLUDE 'cat-menu.inc' %] > </aside> > </div> <!-- /.col-md-2.order-md-1 --> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-template.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-template.tt >index 73925c86e5..da7da1d90a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-template.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-template.tt >@@ -192,6 +192,7 @@ > > <div class="col-md-2 order-sm-2 order-md-1"> > <aside> >+ [% INCLUDE 'labels-menu.inc' %] > [% INCLUDE 'cat-menu.inc' %] > </aside> > </div> <!-- /.col-md-2.order-md-1 --> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-home.tt >index 1f05aa5fbc..f017f0d4e5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-home.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-home.tt >@@ -34,6 +34,17 @@ > [% INCLUDE 'messages.inc' %] > [% INCLUDE 'labels-toolbar.inc' %] > <h1>Label creator</h1> >+ >+ <div class="row"> >+ <div class="col-md-6"> >+ <ul class="buttons-list"> >+ <li><a href="/cgi-bin/koha/labels/label-manage.pl?label_element=batch"><i class="fa-solid fa-list-ul"></i> Label batches</a></li> >+ <li><a href="/cgi-bin/koha/labels/label-manage.pl?label_element=layout"><i class="fa-solid fa-object-group"></i> Layouts</a></li> >+ <li><a href="/cgi-bin/koha/labels/label-manage.pl?label_element=template"><i class="fa-solid fa-table-cells"></i> Label templates</a></li> >+ <li><a href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile"><i class="fa fa-print"></i> Printer profiles</a></li> >+ </ul> >+ </div> >+ </div> > </main> > </div> <!-- /.col-md-10.order-md-2 --> > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt >index 782da55ebe..2f76384dc9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt >@@ -127,6 +127,7 @@ > > <div class="col-md-2 order-sm-2 order-md-1"> > <aside> >+ [% INCLUDE 'labels-menu.inc' %] > [% INCLUDE 'cat-menu.inc' %] > </aside> > </div> <!-- /.col-md-2.order-md-1 --> >-- >2.39.5
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 37250
:
168470
|
168563
|
168569
|
169307
|
171067
|
171068
| 177586 |
177587