Bug 32952: Standardize action fieldsets in authorities, cataloging, and circulation

This patch updates some templates in authorities, cataloging, and
circulation so that fieldsets with the "action" class are placed outside
the form's main fieldset.

To test, apply the patch and check the following pages to confirm that
changes to form structure look correct:

- Authorities -> Authority search -> Merge
- Catalog -> Search -> Merge records
- Catalog -> Bibliographic record details -> Edit -> Attach item
- Circulation -> Check out to patron -> Batch check out
- Circulation -> Overdues -> Sidebar filter
- Circulation -> Holds to pull -> Sidebar filter

Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit b27dd883ca)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
This commit is contained in:
Owen Leonard 2023-02-01 11:58:04 +00:00 committed by Matt Blenkinsop
parent 840fa94ff1
commit 34b57877f3
6 changed files with 20 additions and 12 deletions

View File

@ -94,7 +94,9 @@ div#result { margin-top: 1em; }
<input type="hidden" name="authid" value="[% recordid1 | html %]" />
<input type="hidden" name="authid" value="[% recordid2 | html %]" />
<fieldset class="action"><input type="submit" class="btn btn-primary" value="Next" /></fieldset>
</fieldset>
<fieldset class="action">
<input type="submit" class="btn btn-primary" value="Next" />
</fieldset>
</form>

View File

@ -137,10 +137,10 @@ div#result { margin-top: 1em; }
[% FOREACH record IN records %]
<input type="hidden" name="biblionumber" value="[% record.biblionumber | html %]" />
[% END %]
</fieldset>
<fieldset class="action">
<input type="submit" class="btn btn-primary" value="Next" />
</fieldset>
</fieldset>
</form>
<div id="dataPreview" class="modal" tabindex="-1" role="dialog" aria-labelledby="dataPreviewLabel" aria-hidden="true">

View File

@ -109,8 +109,10 @@
<label for="biblionumber">Select the biblionumber to attach the item to</label>
<div class="hint">Enter biblionumber:</div>
<input type="text" name="biblionumber" id="biblionumber" class="focus" size="14" />
<fieldset class="action"><input type="submit" class="btn btn-primary" value="Submit" /></fieldset>
</fieldset>
<fieldset class="action">
<input type="submit" class="btn btn-primary" value="Submit" />
</fieldset>
[% ELSE %]
<input type="hidden" name="biblionumber" id="biblionumber" value="[% biblionumber | html %]" />
[% END %]
@ -120,8 +122,10 @@
<label for="barcode">Enter the barcode of the item to attach:</label>
<p class="hint">The item you select will be moved to the target record.</p>
<input type="text" name="barcode" id="barcode" class="barcode focus" size="14" />
<fieldset class="action"><input type="submit" class="btn btn-primary" value="Submit" /></fieldset>
</fieldset>
<fieldset class="action">
<input type="submit" class="btn btn-primary" value="Submit" />
</fieldset>
[% ELSE %]
<input type="hidden" name="barcode" id="barcode" value="[% barcode | html %]" />
[% END %]

View File

@ -120,12 +120,12 @@
</fieldset>
[% END %]
<input type="hidden" name="op" value="show" />
<fieldset class="action">
</fieldset>
<fieldset class="action">
<input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" />
<input type="hidden" name="branch" value="[% branch | html %]" />
<input type="hidden" name="batch" value="1" />
<input type="submit" class="btn btn-primary" value="Check out" />
</fieldset>
</fieldset>
</form>

View File

@ -272,11 +272,11 @@
</li>
</ol>
<fieldset class="action">
<input type="submit" class="btn btn-primary" value="Apply filter" />
<input type="hidden" name="op" value="apply filter" />
</fieldset>
</fieldset>
<fieldset class="action">
<input type="submit" class="btn btn-primary" value="Apply filter" />
<input type="hidden" name="op" value="apply filter" />
</fieldset>
</form>
</aside>

View File

@ -300,9 +300,11 @@
[% ELSE %]
<p><em>(Inclusive, default is [% HoldsToPullStartDate | html %] days ago to today. Set other date ranges as needed.)</em></p>
[% END %]
<fieldset class="action"><input type="submit" name="run_report" value="Submit" class="btn btn-primary" /></fieldset>
</fieldset>
<fieldset class="action">
<input type="submit" name="run_report" value="Submit" class="btn btn-primary" />
</fieldset>
</form>
</div>