View | Details | Raw Unified | Return to bug 27297
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/av-build-dropbox.inc (-1 / +8 lines)
Lines 10-17 Link Here
10
[% DEFAULT class = '' size = 20 %]
10
[% DEFAULT class = '' size = 20 %]
11
11
12
[% IF avs %]
12
[% IF avs %]
13
  <select id="[% name | html %]" name="[% name | html %]" class="[% class | html %]" >
13
  [% IF required %]
14
      <select id="[% name | html %]" name="[% name | html %]" class="[% class | html %]" required="required">
15
  [% ELSE %]
16
      <select id="[% name | html %]" name="[% name | html %]" class="[% class | html %]">
17
  [% END %]
14
  [% FOR av IN avs %]
18
  [% FOR av IN avs %]
19
    [% IF blank %]
20
      <option value="">None</option>
21
    [% END %]
15
    [% IF av.authorised_value == default %]
22
    [% IF av.authorised_value == default %]
16
      <option value="[% av.authorised_value | html %]" selected="selected">[% av.lib | html_entity %]</option>
23
      <option value="[% av.authorised_value | html %]" selected="selected">[% av.lib | html_entity %]</option>
17
    [% ELSE %]
24
    [% ELSE %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt (-2 / +1 lines)
Lines 166-172 Link Here
166
                                            <li>
166
                                            <li>
167
                                            [% IF ( itemtype_required ) %]
167
                                            [% IF ( itemtype_required ) %]
168
                                                <label for="itemtype" class="required">Item type:</label>
168
                                                <label for="itemtype" class="required">Item type:</label>
169
                                                [% PROCESS 'av-build-dropbox.inc' name="itemtype", category="SUGGEST_FORMAT", size = 20 %]
169
                                                [% PROCESS 'av-build-dropbox.inc' name="itemtype", category="SUGGEST_FORMAT", size = 20, required = 1, blank = 1 %]
170
                                                <span class="required">Required</span>
170
                                                <span class="required">Required</span>
171
                                            [% ELSE %]
171
                                            [% ELSE %]
172
                                                <label for="itemtype">Item type:</label>
172
                                                <label for="itemtype">Item type:</label>
173
- 

Return to bug 27297