@@ -, +, @@
consistent with breadcrumbs
---
.../rotating_collections/editCollections.tt | 20 +++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/editCollections.tt
+++ a/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 %]
- [% tx("Collection '{collection_title}'", { collection_title = editColTitle }) | html %]
+ [% tx("Collection '{collection_title}'", { collection_title = editColTitle }) | html %]
[% END %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
[% t("Edit collection") | html %]
--