Bug 28041: Improve breadcrumbs and headings on label creator pages
This patch changes various label creator templates so that breadcrumbs menus and headings are more specific to each operation. To test, apply the patch and confirm that headings, page titles, and breadcrumbs menus are correct for the various pages: - New -> Label batch: "Label creator -> Batches -> New label batch." - New -> Layout: "Label creator -> Layouts -> New label layout." - New -> Label template: "Label creator -> New label template." - New -> Printer profile: "Label creator -> New printer profile." - New -> Barcode range: "Label creator -> Print barcode range." - Manage -> Label batch -> Edit: "Label creator -> Batches -> Edit label batch X." - Manage -> Layout -> Edit: "Label creator -> Layouts -> Edit label layout X." - Manage -> Label templates -> Edit: "Label creator -> Templates -> Edit label template X." - Manage -> Printer profiles -> Edit: "Label creator -> Profiles -> Edit printer profile X." Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
18bbf42b33
commit
8a3392bbbe
|
|
@ -3,7 +3,7 @@
|
|||
[% USE ItemTypes %]
|
||||
[% SET footerjs = 1 %]
|
||||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
<title>Koha › Tools › Label creator › Batches › [% IF batch_id %]Edit ([% batch_id | html %])[% ELSE %]New[% END %]</title>
|
||||
<title>Koha › Tools › Label creator › Batches › [% IF batch_id %]Edit label batch [% batch_id | html %][% ELSE %]New label batch[% END %]</title>
|
||||
[% INCLUDE 'doc-head-close.inc' %]
|
||||
</head>
|
||||
|
||||
|
|
@ -36,14 +36,14 @@
|
|||
[% ELSIF batch_id %]
|
||||
<li>
|
||||
<a href="#" aria-current="page">
|
||||
Edit ([% batch_id | html %])
|
||||
Edit label batch [% batch_id | html %]
|
||||
</a>
|
||||
</li>
|
||||
|
||||
[% ELSE %]
|
||||
<li>
|
||||
<a href="#" aria-current="page">
|
||||
New
|
||||
New label batch
|
||||
</a>
|
||||
</li>
|
||||
[% END %]
|
||||
|
|
@ -56,6 +56,15 @@
|
|||
<main>
|
||||
|
||||
[% INCLUDE 'labels-toolbar.inc' %]
|
||||
|
||||
[% IF description %]
|
||||
<h1>Edit [% description | html %]</h1>
|
||||
[% ELSIF batch_id %]
|
||||
<h1>Edit label batch [% batch_id | html %]</h1>
|
||||
[% ELSE %]
|
||||
<h1>New label batch</h1>
|
||||
[% END %]
|
||||
|
||||
[% IF ( err ) %]
|
||||
[% BLOCK xlate_errtype %]
|
||||
[% SWITCH errtype %]
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
[% END %]
|
||||
[% END %]
|
||||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
<title>Koha › Tools › Label creator › Layouts › [% IF ( layout_id ) %]Edit ([% layout_id | html %])[% ELSE %]New[% END %]</title>
|
||||
<title>Koha › Tools › Label creator › Layouts › [% IF ( layout_id ) %]Edit label layout [% layout_id | html %] [% ELSE %] New label layout [% END %]</title>
|
||||
[% INCLUDE 'doc-head-close.inc' %]
|
||||
</head>
|
||||
|
||||
|
|
@ -43,13 +43,13 @@
|
|||
[% IF ( layout_id ) %]
|
||||
<li>
|
||||
<a href="#" aria-current="page">
|
||||
Edit ([% layout_id | html %])
|
||||
Edit label layout [% layout_id | html %]
|
||||
</a>
|
||||
</li>
|
||||
[% ELSE %]
|
||||
<li>
|
||||
<a href="#" aria-current="page">
|
||||
New
|
||||
New label layout
|
||||
</a>
|
||||
</li>
|
||||
[% END %]
|
||||
|
|
@ -63,9 +63,14 @@
|
|||
|
||||
[% INCLUDE 'labels-toolbar.inc' %]
|
||||
|
||||
[% IF ( layout_id ) %]
|
||||
<h1>Edit label layout [% layout_id | html %]</h1>
|
||||
[% ELSE %]
|
||||
<h1>New label layout</h1>
|
||||
[% END %]
|
||||
|
||||
<form name="input" action="/cgi-bin/koha/labels/label-edit-layout.pl" method="get">
|
||||
<fieldset class="rows">
|
||||
<legend>[% IF ( layout_id ) %]Edit[% ELSE %]Create[% END %] label layout</legend>
|
||||
<ol>
|
||||
<li>
|
||||
<label for="layout_name">Layout name: </label>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
[% USE raw %]
|
||||
[% SET footerjs = 1 %]
|
||||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
<title>Koha › Tools › Label creator › Profiles › [% IF ( profile_id ) %]Edit ([% profile_id | html %])[% ELSE %]New[% END%]</title>
|
||||
<title>Koha › Tools › Label creator › Profiles › [% IF ( profile_id ) %]Edit printer profile [% profile_id | html %] [% ELSE %] New printer profile [% END%]</title>
|
||||
[% INCLUDE 'doc-head-close.inc' %]
|
||||
</head>
|
||||
|
||||
|
|
@ -24,19 +24,15 @@
|
|||
<a href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile">Profiles</a>
|
||||
</li>
|
||||
|
||||
[% IF ( profile_id ) %]
|
||||
<li>
|
||||
<a href="#" aria-current="page">
|
||||
Edit ([% profile_id | html %])
|
||||
[% IF ( profile_id ) %]
|
||||
Edit printer profile [% profile_id | html %]
|
||||
[% ELSE %]
|
||||
New printer profile
|
||||
[% END%]
|
||||
</a>
|
||||
</li>
|
||||
[% ELSE %]
|
||||
<li>
|
||||
<a href="#" aria-current="page">
|
||||
New
|
||||
</a>
|
||||
</li>
|
||||
[% END%]
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
|
|
@ -46,7 +42,13 @@
|
|||
<main>
|
||||
|
||||
[% INCLUDE 'labels-toolbar.inc' %]
|
||||
<h3>Edit printer profile</h3>
|
||||
|
||||
[% IF ( profile_id ) %]
|
||||
<h1>Edit printer profile [% profile_id | html %]</h1>
|
||||
[% ELSE %]
|
||||
<h1>New printer profile</h1>
|
||||
[% END%]
|
||||
|
||||
<form name="input" action="/cgi-bin/koha/labels/label-edit-profile.pl" method="get">
|
||||
<fieldset class="rows"><legend>Profile settings</legend>
|
||||
<ol>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[% SET footerjs = 1 %]
|
||||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
<title>Koha › Tools › Label creator › Barcode range</title>
|
||||
<title>Koha › Tools › Label creator › Print barcode range</title>
|
||||
[% INCLUDE 'doc-head-close.inc' %]
|
||||
[% INCLUDE 'greybox.inc' %]
|
||||
</head>
|
||||
|
|
@ -21,7 +21,7 @@
|
|||
</li>
|
||||
<li>
|
||||
<a href="#" aria-current="page">
|
||||
Barcode range
|
||||
Print barcode range
|
||||
</a>
|
||||
</li>
|
||||
</ol>
|
||||
|
|
@ -32,7 +32,7 @@
|
|||
<div class="col-sm-10 col-sm-push-2">
|
||||
<main>
|
||||
[% INCLUDE 'labels-toolbar.inc' %]
|
||||
<h2>Print barcode range</h2>
|
||||
<h1>Print barcode range</h1>
|
||||
<form name="add_by_number" action="/cgi-bin/koha/labels/label-edit-batch.pl" method="post">
|
||||
<input type="hidden" name="op" value="add" />
|
||||
<fieldset class="rows">
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
[% USE raw %]
|
||||
[% SET footerjs = 1 %]
|
||||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
<title>Koha › Tools › Label creator › Templates › [% IF ( template_id ) %]Edit ([% template_id | html %])[% ELSE %]New[% END %]</title>
|
||||
<title>Koha › Tools › Label creator › Templates › [% IF ( template_id ) %]Edit label template [% template_id | html %] [% ELSE %] New label template [% END %]</title>
|
||||
[% INCLUDE 'doc-head-close.inc' %]
|
||||
</head>
|
||||
|
||||
|
|
@ -26,9 +26,9 @@
|
|||
<li>
|
||||
<a href="#" aria-current="page">
|
||||
[% IF ( template_id ) %]
|
||||
Edit ([% template_id | html %])
|
||||
Edit label template [% template_id | html %]
|
||||
[% ELSE %]
|
||||
New
|
||||
New label template
|
||||
[% END %]
|
||||
</a>
|
||||
</li>
|
||||
|
|
@ -41,7 +41,12 @@
|
|||
<main>
|
||||
[% INCLUDE 'labels-toolbar.inc' %]
|
||||
|
||||
<h3>Edit label template</h3>
|
||||
[% IF ( template_id ) %]
|
||||
<h1>Edit label template [% template_id | html %]</h1>
|
||||
[% ELSE %]
|
||||
<h1>New label template</h1>
|
||||
[% END %]
|
||||
|
||||
<form name="input" action="/cgi-bin/koha/labels/label-edit-template.pl" method="get">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
|
|
|
|||
Loading…
Reference in New Issue