From 711206cdb8bf1109d1e25ee22a26d74070eabd3d 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 , make title logic consistent with breadcrumbs Signed-off-by: David Nind --- .../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 ffc462c794..244c7eac61 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.2