Bug 30579: (follow-up) Style selections as buttons

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Nick Clemens 2024-05-07 12:35:04 +00:00 committed by Katrin Fischer
parent e2c4b292d4
commit 14675bea56
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

@ -613,18 +613,20 @@
</fieldset> </fieldset>
<fieldset class="rows"> <fieldset class="rows">
<legend> <legend>
<label for="requestany" class="inline"> <button type="button">
Hold next available item [% IF force_hold_level == 'item' || force_hold_level == 'item_group' %]
</label> <input type="radio" id="requestany" name="request" disabled="true" />
[% IF force_hold_level == 'item' || force_hold_level == 'item_group' %] [% ELSIF force_hold_level == 'record' %]
<input type="radio" id="requestany" name="request" disabled="true" /> <input type="radio" id="requestany" checked="checked" value="Any" disabled="true"/>
[% ELSIF force_hold_level == 'record' %] <input type="hidden" name="request" value="Any"/>
<input type="radio" id="requestany" checked="checked" value="Any" disabled="true"/> <span class="error"><i>(Required)</i></span>
<input type="hidden" name="request" value="Any"/> [% ELSE %]
<span class="error"><i>(Required)</i></span> <input type="radio" id="requestany" name="request" checked="checked" value="Any" />
[% ELSE %] [% END %]
<input type="radio" id="requestany" name="request" checked="checked" value="Any" /> <label for="requestany" class="inline">
[% END %] Hold next available item
</label>
</button>
</legend> </legend>
<input type="hidden" name="alreadyreserved" value="[% alreadyreserved | html %]" /> <input type="hidden" name="alreadyreserved" value="[% alreadyreserved | html %]" />
<fieldset class="enable_request_any disable_request_group disable_request_specific"> <fieldset class="enable_request_any disable_request_group disable_request_specific">
@ -695,17 +697,19 @@
[% IF Koha.Preference('EnableItemGroupHolds') && biblio_info.object.item_groups.count %] [% IF Koha.Preference('EnableItemGroupHolds') && biblio_info.object.item_groups.count %]
<fieldset class="rows"> <fieldset class="rows">
<legend> <legend>
<label for="requestgrp" class="inline"> <button type="button">
Hold next available item from an item group [% IF force_hold_level == 'item_group' %]
</label> <input type="radio" class="requestgrp" id="requestgrp" name="request" checked="checked" disabled="true" />
[% IF force_hold_level == 'item_group' %] <span class="error"><i>(Required)</i></span>
<input type="radio" class="requestgrp" id="requestgrp" name="request" checked="checked" disabled="true" /> [% ELSIF force_hold_level == 'item' || force_hold_level == 'record' %]
<span class="error"><i>(Required)</i></span> <input type="radio" class="requestgrp" id="requestgrp" name="request" disabled="true" />
[% ELSIF force_hold_level == 'item' || force_hold_level == 'record' %] [% ELSE %]
<input type="radio" class="requestgrp" id="requestgrp" name="request" disabled="true" /> <input type="radio" class="requestgrp" id="requestgrp" name="request" />
[% ELSE %] [% END %]
<input type="radio" class="requestgrp" id="requestgrp" name="request" /> <label for="requestgrp" class="inline">
[% END %] Hold next available item from an item group
</label>
</button>
</legend> </legend>
<fieldset class="enable_request_group disable_request_any disable_request_specific"> <fieldset class="enable_request_group disable_request_any disable_request_specific">
@ -792,17 +796,19 @@
<fieldset class="rows"> <fieldset class="rows">
<legend> <legend>
<label for="requestspecificitem" class="inline"> <button type="button">
Hold a specific item [% IF force_hold_level == 'item' %]
</label> <input type="radio" id="requestspecificitem" name="request" class="requestspecific" checked="checked" disabled='disabled'/>
[% IF force_hold_level == 'item' %] <span class="error"><em>(Required)</em></span>
<input type="radio" id="requestspecificitem" name="request" class="requestspecific" checked="checked" disabled='disabled'/> [% ELSIF force_hold_level == 'record' || force_hold_level == 'item_group' %]
<span class="error"><em>(Required)</em></span> <input type="radio" id="requestspecificitem" name="request" class="requestspecific" disabled='disabled'/>
[% ELSIF force_hold_level == 'record' || force_hold_level == 'item_group' %] [% ELSE %]
<input type="radio" id="requestspecificitem" name="request" class="requestspecific" disabled='disabled'/> <input type="radio" id="requestspecificitem" name="request" class="requestspecific"/>
[% ELSE %] [% END %]
<input type="radio" id="requestspecificitem" name="request" class="requestspecific"/> <label for="requestspecificitem" class="inline">
[% END %] Hold a specific item
</label>
</button>
</legend> </legend>
<fieldset class="enable_request_specific disable_request_any disable_request_group"> <fieldset class="enable_request_specific disable_request_any disable_request_group">