.inactive-hold { background: [% css_colors.accent_lightest %]; }
#hold-items-list td { padding: 5px; margin-bottom: 20px; }
-.hold-items-list-title { font-size: [% css_fonts.size_bigger %]; }
+.hold-items-list-title {
+ font-size: [% css_fonts.size_bigger %];
+ margin-bottom: 20px;
+}
.hold-items-list-problem { color: [% css_colors.text_alert %]; }
+.parts-radio { display: inline-block; }
+
.mr_holds_no_formats {
padding: 5px;
margin-left: 25px;
# TIME_FORMAT = '%H:%M'; # for 16:32 (24 hour) format
##############################################################################
+##############################################################################
+# Format of parts selection on Place Holds screen
+# Set to true to use radio buttons for parts selection on the Place Holds
+# screen. The default behavior is to to display them in a select menu.
+#############################################################################
+enable.radio.parts = 'false';
+
%]
<div class='hold-items-list-title'>[% attrs.title_extended | html %]</div>
[% IF hdata.parts AND !this_hold_disallowed %]
[% IF hdata.parts.size > 0 %]
- <div style='padding-left: 10px'>
- <span><label for='select_hold_part'>[%
+ <div style='padding-left: 10px; padding-bottom: 15px;'>
+ [% IF enable.radio.parts == 'true' %]
+ <span style='font-weight: bold;'><label for='select_hold_part'>[%
+ 'Select a Part:'
+ %]</label></span>
+ [% FOR part IN hdata.parts %]
+ <span class='parts-radio'><input type='radio' name='part' id=[% part.id %] value=[% part.id %]>
+ <label for=[% part.id %]>[% part.label | html %]</label></span>
+ [% END %]
+ [% IF !hdata.part_required %]
+ <input type='radio' name='part' value='' required>[% l('All Parts') %]
+ [% END %]
+ [% ELSE %]
+ <span style='font-weight: bold;'><label for='select_hold_part'>[%
hdata.part_required ? l('Select a Part:') : l('Select a Part (optional):')
%]</label></span>
<select id='select_hold_part' name='part'>
<option value='[% part.id %]'>[% part.label | html %]</option>
[% END %]
</select>
+ [% END %]
</div>
[% ELSE %]
<input type='hidden' name='part' value=''/>