From 90aa6e7f30a00d0e032ee9ecd7bb1942f6a31347 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 1 Feb 2023 11:59:53 +0000 Subject: [PATCH] Bug 32954: Standardize action fieldsets in rotating collections, suggestions, tools As per Bug 32744: Fieldsets with the class "action" should be placed outside of the fieldset containing the main body of the form. This report covers a few templates in rotating collections, suggestions, and tools. To test, apply the patch and check the following pages to confirm that changes to form structure look correct: - Tools -> Rotating collections. Create a collection if necessary, then click "Action" -> "Manage items." Check the form on the manage items page. - Suggestions -> Sidebar filter. Check that different sets of filters expand and collapse correctly. - Tools -> Batch item modification (initial form) - Tools -> Inventory (initial form) - Cataloging -> Stage records for import (initial form) - Tools -> Upload (upload and search forms) --- .../modules/rotating_collections/addItems.tt | 10 +-- .../prog/en/modules/suggestion/suggestion.tt | 64 +++++++++---------- .../prog/en/modules/tools/batchMod.tt | 6 +- .../prog/en/modules/tools/inventory.tt | 2 +- .../en/modules/tools/stage-marc-import.tt | 2 +- .../prog/en/modules/tools/upload.tt | 6 +- 6 files changed, 45 insertions(+), 45 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/addItems.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/addItems.tt index 68fb2048b7..30520c3c82 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/addItems.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/addItems.tt @@ -103,11 +103,11 @@ [% END %] -

- - - -

+ +
+ + +
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt index 4bed26ce98..e936cd66a8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt @@ -31,7 +31,8 @@ font-size: 80%; text-decoration: none; } - #limits fieldset.brief { + #limits fieldset.brief, + #limits fieldset.action { display: none; } .overlay { @@ -644,9 +645,8 @@ - -
+ [% IF ( suggestionid ) %] [% IF ( need_confirm ) %] @@ -948,9 +948,9 @@ -
- -
+
+
+
@@ -962,9 +962,9 @@ [% PROCESS 'av-build-dropbox.inc' name="suggestion_itemtype", category="SUGGEST_FORMAT", size = 20 %] -
- -
+ +
+
@@ -976,9 +976,9 @@ -
- -
+ +
+
@@ -987,9 +987,9 @@ Delete selected -
- -
+ +
+
@@ -1048,17 +1048,17 @@ -
- -
+
+ +

Filter by: [clear]

Bibliographic information

-
+
  1. @@ -1085,13 +1085,13 @@
-
- -
-
+
+
+ +

Suggestion information

-
+
  1. @@ -1209,15 +1209,15 @@
-
- -
+
+ +

Acquisition information

-
+
  1. @@ -1238,10 +1238,10 @@
-
- -
+
+ +
@@ -1399,7 +1399,7 @@ $("h4.local_collapse a").on("click", function(e){ e.preventDefault(); const target = $(this).data("target"); - $("#" + target).toggle(); + $("." + target).toggle(); }); $("button[type='submit']").on("click", function(e) { diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod.tt index e3d80a0a63..5cbabbe59b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod.tt @@ -63,8 +63,8 @@ + - [% UNLESS del %]
@@ -79,10 +79,10 @@
[% END %] - [% IF ( del ) %][% END %]
+ [% IF ( del ) %][% END %] - Cancel + Cancel
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt index 1571f6a3ee..3209c016f0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt @@ -235,8 +235,8 @@ - +
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tt index dfb1d05fe7..0fe36f2ba4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tt @@ -98,11 +98,11 @@ +
-
Upload progress: diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt index 0505d6a206..8ee428555c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt @@ -97,11 +97,11 @@ [% END %] +
-
Upload progress: @@ -135,10 +135,10 @@ +
- [% END %] [% END %] @@ -155,10 +155,10 @@ +
- [% END %] -- 2.30.2