Bug 28037: Improve breadcrumbs of CSV profiles page
This patch expands the logic around the page title and breadcrumbs of the CSV profiles page. The name of the page has also been changed from "CSV export profiles" to "CSV profiles" to match links elsewhere in Koha. To test, apply the patch and go to Tools -> CSV profiles. - The initial state of the page title and breadcrumbs menu should be "Tools > CSV profiles." - Click "New CSV profile." The page title and breadcrumbs should show "Tools > CSV profiles > New CSV profile." - Edit an existing CSV profile. The page title and breadcrumbs should show "Tools > CSV profiles > Modify a CSV profile." Signed-off-by: David Nind <david@davidnind.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
1fc05de2ef
commit
18bbf42b33
1 changed files with 32 additions and 6 deletions
|
@ -2,7 +2,16 @@
|
|||
[% USE Asset %]
|
||||
[% SET footerjs = 1 %]
|
||||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
<title>Koha › Tools › CSV export profiles</title>
|
||||
<title>
|
||||
Koha › Tools › CSV profiles
|
||||
[% IF op == 'add_form' %]
|
||||
[% IF csv_profile %]
|
||||
› Modify a CSV profile
|
||||
[% ELSE %]
|
||||
› New CSV profile
|
||||
[% END %]
|
||||
[% END %]
|
||||
</title>
|
||||
[% INCLUDE 'doc-head-close.inc' %]
|
||||
</head>
|
||||
|
||||
|
@ -18,11 +27,28 @@
|
|||
<li>
|
||||
<a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
|
||||
</li>
|
||||
[% IF op == 'add_form' %]
|
||||
<li>
|
||||
<a href="#" aria-current="page">
|
||||
CSV export profiles
|
||||
<a href="/cgi-bin/koha/tools/csv-profiles.pl">
|
||||
CSV profiles
|
||||
</a>
|
||||
</li>
|
||||
[% IF csv_profile %]
|
||||
<li>
|
||||
<a href="#" aria-current="page">Modify a CSV profile</a>
|
||||
</li>
|
||||
[% ELSE %]
|
||||
<li>
|
||||
<a href="#" aria-current="page">New CSV profile</a>
|
||||
</li>
|
||||
[% END %]
|
||||
[% ELSE %]
|
||||
<li>
|
||||
<a href="#" aria-current="page">
|
||||
CSV profiles
|
||||
</a>
|
||||
</li>
|
||||
[% END %]
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
|
|
Loading…
Reference in a new issue