Bug 24953: Minor corrections to hold ratios report sidebar

This patch makes some minor corrections to the sidebar form on the hold
ratios report page:

 - Correct markup errors
 - Change the text of labels from "included" to "include"
 - Move checkboxes to the left of labels

To test, apply the patch and rebuild the staff client CSS
(https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_client)

 - Go to Circulation -> Hold ratios
 - In the sidebar, confirm that the labels "Include ordered" and
   "Include suspended" appear to the right of their associated
   checkboxes.
 - Validate the source of the page. There should be no errors.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Owen Leonard 2020-03-23 12:24:34 +00:00 committed by Martin Renvoize
parent 637bb133da
commit 2502a54682
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
2 changed files with 8 additions and 7 deletions

View File

@ -149,6 +149,7 @@ aside {
&.checkbox {
label {
display: inline;
margin-left: 0;
}
}

View File

@ -129,25 +129,25 @@
<li>
<label for="ratio">Hold ratio:</label>
<input type="text" size="5" id="ratio" name="ratio" value="[% ratio | html %]" />
<li>
</li>
<li>
<label for="include_ordered">Included ordered:</label>
<li class="checkbox">
[% IF include_ordered %]
<input id="include_ordered" name="include_ordered" type="checkbox" checked="checked"/>
[% ELSE %]
<input id="include_ordered" name="include_ordered" type="checkbox"/>
[% END %]
<li>
<label for="include_ordered">Include ordered</label>
</li>
<li>
<label for="include_suspended">Included suspended:</label>
<li class="checkbox">
[% IF include_suspended %]
<input id="include_suspended" name="include_suspended" type="checkbox" checked="checked"/>
[% ELSE %]
<input id="include_suspended" name="include_suspended" type="checkbox"/>
[% END %]
<li>
<label for="include_suspended">Include suspended</label>
</li>
<li>
<label for="from">Start date:</label>