From af9b7b2da26ef4d06f79594dae975f3cdbb302df Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 25 Mar 2021 18:20:39 +0000 Subject: [PATCH] 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 --- .../prog/en/modules/tools/csv-profiles.tt | 38 ++++++++++++++++++---- 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt index 6035395683..fbd0e616a7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt @@ -2,7 +2,16 @@ [% USE Asset %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] -Koha › Tools › CSV export profiles + + Koha › Tools › CSV profiles + [% IF op == 'add_form' %] + [% IF csv_profile %] + › Modify a CSV profile + [% ELSE %] + › New CSV profile + [% END %] + [% END %] + [% INCLUDE 'doc-head-close.inc' %] @@ -18,11 +27,28 @@
  • Tools
  • -
  • - - CSV export profiles - -
  • + [% IF op == 'add_form' %] +
  • + + CSV profiles + +
  • + [% IF csv_profile %] +
  • + Modify a CSV profile +
  • + [% ELSE %] +
  • + New CSV profile +
  • + [% END %] + [% ELSE %] +
  • + + CSV profiles + +
  • + [% END %] -- 2.11.0