Bugzilla – Attachment 146591 Details for
Bug 32954
Standardize action fieldsets in rotating collections, suggestions, tools
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32954: Standardize action fieldsets in rotating collections, suggestions, tools
Bug-32954-Standardize-action-fieldsets-in-rotating.patch (text/plain), 17.25 KB, created by
Owen Leonard
on 2023-02-13 17:23:13 UTC
(
hide
)
Description:
Bug 32954: Standardize action fieldsets in rotating collections, suggestions, tools
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2023-02-13 17:23:13 UTC
Size:
17.25 KB
patch
obsolete
>From 90aa6e7f30a00d0e032ee9ecd7bb1942f6a31347 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >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 %] > </li> > </ol> >- <p> >- <input type="hidden" id="colId" name="colId" value="[% colId | html %]" /> >- <input type="hidden" name="action" value="addItem" /> >- <input type="submit" class="btn btn-primary" value="Submit" /> >- </p> >+ </fieldset> >+ <fieldset class="action"> >+ <input type="hidden" id="colId" name="colId" value="[% colId | html %]" /> >+ <input type="hidden" name="action" value="addItem" /> >+ <input type="submit" class="btn btn-primary" value="Submit" /> > </fieldset> > > </form> >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 @@ > </ol> > </fieldset> <!-- /.rows --> > >- <input type="hidden" id="returnsuggested" name="returnsuggested" value="[% IF ( returnsuggestedby ) %][% returnsuggestedby | html %][% ELSE %]noone[% END %]"/> >- > <fieldset class="action"> >+ <input type="hidden" id="returnsuggested" name="returnsuggested" value="[% IF ( returnsuggestedby ) %][% returnsuggestedby | html %][% ELSE %]noone[% END %]"/> > <input type="hidden" name="op" value="[% op | html %]" /> > [% IF ( suggestionid ) %] > [% IF ( need_confirm ) %] >@@ -948,9 +948,9 @@ > > <input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> > <input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> >- <fieldset class="action"> >- <button type="submit" class="btn btn-primary" value="update_status">Submit</button> >- </fieldset> >+ </fieldset> >+ <fieldset class="action"> >+ <button type="submit" class="btn btn-primary" value="update_status">Submit</button> > </fieldset> > </div> <!-- /.col-sm-4 --> > >@@ -962,9 +962,9 @@ > [% PROCESS 'av-build-dropbox.inc' name="suggestion_itemtype", category="SUGGEST_FORMAT", size = 20 %] > <input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> > <input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> >- <fieldset class="action"> >- <button type="submit" class="btn btn-primary" value="update_itemtype">Submit</button> >- </fieldset> >+ </fieldset> >+ <fieldset class="action"> >+ <button type="submit" class="btn btn-primary" value="update_itemtype">Submit</button> > </fieldset> > </div> <!-- /.col-sm-4 --> > >@@ -976,9 +976,9 @@ > <input type="hidden" name="suggestion_managedby" id="managedby[% loop.count | html %]" value="[% logged_in_user.borrowernumber | html %]" /> > <input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> > <input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> >- <fieldset class="action"> >- <button type="submit" class="btn btn-primary" value="update_manager">Submit</button> >- </fieldset> >+ </fieldset> >+ <fieldset class="action"> >+ <button type="submit" class="btn btn-primary" value="update_manager">Submit</button> > </fieldset> > </div> <!-- /.col-sm-2 --> > >@@ -987,9 +987,9 @@ > <span class="label">Delete selected</span> > <input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> > <input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> >- <fieldset class="action"> >- <button type="submit" class="btn btn-primary" value="delete">Delete</button> >- </fieldset> >+ </fieldset> >+ <fieldset class="action"> >+ <button type="submit" class="btn btn-primary" value="delete">Delete</button> > </fieldset> > </div> <!-- /.col-sm-2 --> > </div> <!-- /.row --> >@@ -1048,17 +1048,17 @@ > </select> > </li> > </ol> >- <fieldset class="action"> >- <input type="submit" class="btn btn-primary" value="Go" /> >- </fieldset> > </fieldset> <!-- /.brief --> >+ <fieldset class="action"> >+ <input type="submit" class="btn btn-primary" value="Go" /> >+ </fieldset> > > <fieldset class="brief"> > <h4>Filter by: <a style="font-size:80%;font-weight:normal;" href="/cgi-bin/koha/suggestion/suggestion.pl">[clear]</a></h4> > > <div id="limits"> > <h4 class="local_collapse"><a href="#" data-target="biblio_information">Bibliographic information</a></h4> >- <fieldset class="brief" id="biblio_information"> >+ <fieldset class="brief biblio_information"> > <ol> > <li> > <label for="title"> Title:</label> >@@ -1085,13 +1085,13 @@ > <input type="text" id="collectiontitle" name="collectiontitle" value="[% collectiontitle | html %]" /> > </li> > </ol> >- <fieldset class="action"> >- <input type="submit" value="Go" /> >- </fieldset> >- </fieldset> <!-- /#biblio_information --> >+ </fieldset> <!-- /.biblio_information --> >+ <fieldset class="action biblio_information"> >+ <input type="submit" value="Go" /> >+ </fieldset> > > <h4 class="local_collapse"><a href="#" data-target="suggestion_information">Suggestion information</a></h4> >- <fieldset class="brief" id="suggestion_information"> >+ <fieldset class="brief suggestion_information"> > <ol> > <li> > <label for="archived" style="display: inline;">Include archived:</label> >@@ -1209,15 +1209,15 @@ > <input type="text" id="accepteddate_to" size="10" name="accepteddate_to" value="[% accepteddate_to | html %]" class="flatpickr" /> > </li> > </ol> >- <fieldset class="action"> >- <input type="submit" value="Go" /> >- </fieldset> > </fieldset> <!-- /#suggestion_information --> >+ <fieldset class="action suggestion_information"> >+ <input type="submit" value="Go" /> >+ </fieldset> > > <h4 class="local_collapse"> > <a href="#" data-target="acquisition_information">Acquisition information</a> > </h4> >- <fieldset class="brief" id="acquisition_information"> >+ <fieldset class="brief acquisition_information"> > <ol> > <li> > <label for="budgetid"> Book fund:</label> >@@ -1238,10 +1238,10 @@ > </select> > </li> > </ol> >- <fieldset class="action"> >- <input type="submit" value="Go" /> >- </fieldset> > </fieldset> <!-- /#acquisition_information --> >+ <fieldset class="action acquisition_information"> >+ <input type="submit" value="Go" /> >+ </fieldset> > </div> <!-- /#limits --> > </fieldset> <!-- /.brief --> > </form> <!-- /suggestionsfilter --> >@@ -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 @@ > <textarea rows="10" cols="30" id="barcodelist" name="barcodelist"></textarea> > </li> > </ol> >+ <input type="hidden" name="op" value="show" /> > </fieldset> >- <input type="hidden" name="op" value="show" /> > > [% UNLESS del %] > <fieldset class="rows"> >@@ -79,10 +79,10 @@ > </fieldset> > [% END %] > >- [% IF ( del ) %]<input type="hidden" name="del" value="1" />[% END %] > <fieldset class="action"> >+ [% IF ( del ) %]<input type="hidden" name="del" value="1" />[% END %] > <input type="submit" class="btn btn-primary" value="Continue" /> >- <a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">Cancel</a> >+ <a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">Cancel</a> > </fieldset> > > </form> >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 @@ > <input type="checkbox" name="CSVexport" id="CSVexport" /> > </li> > </ol> >- </fieldset> > <input type="hidden" name="op" value="do_it" /> >+ </fieldset> > > <fieldset class="action"><input type="submit" class="btn btn-primary" value="Submit" /></fieldset> > </form> >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 @@ > </div> > </li> > </ol> >+</fieldset> > <fieldset class="action"> > <button id="fileuploadbutton" class="btn btn-primary">Upload file</button> > <button id="fileuploadcancel">Cancel</button> > </fieldset> >-</fieldset> > > <div id="fileuploadpanel"> > <div id="fileuploadstatus" class="progress_panel">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 %] > </li> > </ol> >+ </fieldset> > <fieldset class="action"> > <button id="fileuploadbutton" class="btn btn-primary">Upload</button> > <button id="fileuploadcancel">Cancel</button> > </fieldset> >- </fieldset> > <div id="fileuploadpanel"> > <div id="fileuploadstatus" class="progress_panel">Upload progress: > <progress id="fileuploadprogress" max="100" value="0"> >@@ -135,10 +135,10 @@ > </select> > </li> > </ol> >+ </fieldset> > <fieldset class="action"> > <button id="browsebutton" class="btn btn-primary">Search</button> > </fieldset> >- </fieldset> > </form> > [% END %] > [% END %] >@@ -155,10 +155,10 @@ > <input type="text" id="term" name="term" value=""/> > </li> > </ol> >+ </fieldset> > <fieldset class="action"> > <button id="searchbutton" class="btn btn-primary">Search</button> > </fieldset> >- </fieldset> > </form> > [% END %] > >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 32954
:
146591
|
146613
|
147407
|
148515