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> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
f6ed6fc62b
commit
c94c27ea34
|
|
@ -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 -->
|
||||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -33,6 +33,9 @@
|
|||
[% INCLUDE 'guided-reports-view.inc' %]
|
||||
[% CASE 'ill-filter' %]
|
||||
[% INCLUDE 'ill-filter.inc' %]
|
||||
[% CASE 'labels-menu' %]
|
||||
[% INCLUDE 'labels-menu.inc' %]
|
||||
[% INCLUDE 'cat-menu.inc' %]
|
||||
[% CASE 'vendor-menu' %]
|
||||
[% INCLUDE 'vendor-menu.inc' %]
|
||||
[% CASE 'pos-menu' %]
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@
|
|||
[% END #/ WRAPPER breadcrumbs %]
|
||||
[% END #/ WRAPPER sub-header.inc %]
|
||||
|
||||
[% WRAPPER 'main-container.inc' aside='cat-menu' %]
|
||||
[% WRAPPER 'main-container.inc' aside='labels-menu' %]
|
||||
|
||||
[% INCLUDE 'labels-toolbar.inc' %]
|
||||
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@
|
|||
[% END #/ WRAPPER breadcrumbs %]
|
||||
[% END #/ WRAPPER sub-header.inc %]
|
||||
|
||||
[% WRAPPER 'main-container.inc' aside='cat-menu' %]
|
||||
[% WRAPPER 'main-container.inc' aside='labels-menu' %]
|
||||
[% INCLUDE 'labels-toolbar.inc' %]
|
||||
|
||||
[% IF ( layout_id ) %]
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@
|
|||
[% END #/ WRAPPER breadcrumbs %]
|
||||
[% END #/ WRAPPER sub-header.inc %]
|
||||
|
||||
[% WRAPPER 'main-container.inc' aside='cat-menu' %]
|
||||
[% WRAPPER 'main-container.inc' aside='labels-menu' %]
|
||||
|
||||
[% INCLUDE 'labels-toolbar.inc' %]
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
[% END #/ WRAPPER breadcrumbs %]
|
||||
[% END #/ WRAPPER sub-header.inc %]
|
||||
|
||||
[% WRAPPER 'main-container.inc' aside='cat-menu' %]
|
||||
[% WRAPPER 'main-container.inc' aside='labels-menu' %]
|
||||
[% INCLUDE 'labels-toolbar.inc' %]
|
||||
<h1>Print barcode range</h1>
|
||||
<form name="add_by_number" action="/cgi-bin/koha/labels/label-edit-batch.pl" method="post">
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@
|
|||
[% END #/ WRAPPER breadcrumbs %]
|
||||
[% END #/ WRAPPER sub-header.inc %]
|
||||
|
||||
[% WRAPPER 'main-container.inc' aside='cat-menu' %]
|
||||
[% WRAPPER 'main-container.inc' aside='labels-menu' %]
|
||||
[% INCLUDE 'labels-toolbar.inc' %]
|
||||
|
||||
[% IF ( template_id ) %]
|
||||
|
|
|
|||
|
|
@ -28,8 +28,27 @@
|
|||
[% END #/ WRAPPER breadcrumbs %]
|
||||
[% END #/ WRAPPER sub-header.inc %]
|
||||
|
||||
[% WRAPPER 'main-container.inc' aside='cat-menu' %]
|
||||
[% WRAPPER 'main-container.inc' aside='labels-menu' %]
|
||||
[% 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>
|
||||
[% END %]
|
||||
[% INCLUDE 'intranet-bottom.inc' %]
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@
|
|||
[% END #/ WRAPPER breadcrumbs %]
|
||||
[% END #/ WRAPPER sub-header.inc %]
|
||||
|
||||
[% WRAPPER 'main-container.inc' aside='cat-menu' %]
|
||||
[% WRAPPER 'main-container.inc' aside='labels-menu' %]
|
||||
|
||||
[% INCLUDE 'labels-toolbar.inc' %]
|
||||
<h2>[% PROCESS translate_label_element element=label_element_title %]</h2>
|
||||
|
|
|
|||
Loading…
Reference in New Issue