From 79464e622463024d013297bc280a5c7d0d548def Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 28 Jun 2024 11:21:13 +0000 Subject: [PATCH] Bug 37213: (follow-up) Remove stray closing em tag, make title logic consistent with breadcrumbs Signed-off-by: David Nind Signed-off-by: Paul Derscheid Signed-off-by: Katrin Fischer --- .../rotating_collections/editCollections.tt | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/editCollections.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/editCollections.tt index c2cbb3a43e..169ad43695 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/editCollections.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/editCollections.tt @@ -4,13 +4,21 @@ [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] [% FILTER collapse %] - [% IF ( op == "new" ) %] - [% t("Add a new collection") | html %] + [% IF ( op == "new" || op == "edit" ) %] + [% IF ( previousActionEdit ) %] + [% t("Edit collection") | html %] › + [% tx("Collection '{collection_title}'", { collection_title = editColTitle }) | html %] + [% ELSE %] + [% t("Add a new collection") | html %] + [% END %] [% ELSIF ( op == "cud-delete" ) %] [% t("Collection deleted") | html %] - [% ELSE %] - [% t("Edit collection") | html %] › - [% tx("Collection '{collection_title}'", { collection_title = editColTitle }) | html %] + [% ELSIF ( op == "cud-create" ) %] + [% IF ( createSuccess ) %] + [% t("Collection created successfully") | html %] + [% ELSE %] + [% t("Collection creation failed") | html %] + [% END %] [% END %] › [% t("Rotating collections") | html %] › [% t("Tools") | html %] › @@ -52,7 +60,7 @@ [% END %] [% ELSE %] [% WRAPPER breadcrumb_item %] - <a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% editColId | uri %]">[% tx("Collection '{collection_title}'", { collection_title = editColTitle }) | html %]</em></a> + <a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% editColId | uri %]">[% tx("Collection '{collection_title}'", { collection_title = editColTitle }) | html %]</a> [% END %] [% WRAPPER breadcrumb_item bc_active= 1 %] [% t("Edit collection") | html %] -- 2.39.5