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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/av-build-dropbox.inc (-2 / +4 lines)
Lines 4-11 Link Here
4
[%# category: the authorised value category %]
4
[%# category: the authorised value category %]
5
[%# default: the default authorised value to select %]
5
[%# default: the default authorised value to select %]
6
[%# class: the CSS class of the select element %]
6
[%# class: the CSS class of the select element %]
7
[%#  size: the size to use for the input (generated if the authorised value category does not exist). %]
7
[%# size: the size to use for the input (generated if the authorised value category does not exist). %]
8
[%# all: add a "All" entry %]
8
[%# all: add a "All" entry. All and empty should not be used at the same time. %]
9
[%# empty: add an empty entry. All and empty should not be used at the same time. %]
9
10
10
[% SET avs = AuthorisedValues.GetAuthValueDropbox( category ) %]
11
[% SET avs = AuthorisedValues.GetAuthValueDropbox( category ) %]
11
[% DEFAULT class = '' size = 20 %]
12
[% DEFAULT class = '' size = 20 %]
Lines 13-18 Link Here
13
[% IF avs %]
14
[% IF avs %]
14
  <select id="[% name | html %]" name="[% name | html %]" class="[% class | html %]" >
15
  <select id="[% name | html %]" name="[% name | html %]" class="[% class | html %]" >
15
  [% IF all %]<option value="">All</option>[% END %]
16
  [% IF all %]<option value="">All</option>[% END %]
17
  [% IF empty %]<option value=""></option>[% END %]
16
  [% FOR av IN avs %]
18
  [% FOR av IN avs %]
17
    [% IF av.authorised_value == default %]
19
    [% IF av.authorised_value == default %]
18
      <option value="[% av.authorised_value | html %]" selected="selected">[% av.lib | html_entity %]</option>
20
      <option value="[% av.authorised_value | html %]" selected="selected">[% av.lib | html_entity %]</option>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-3 / +2 lines)
Lines 847-853 legend:hover { Link Here
847
                                                [% END %]
847
                                                [% END %]
848
                                                    Sort 1:
848
                                                    Sort 1:
849
                                                </label>
849
                                                </label>
850
                                                [% PROCESS 'av-build-dropbox.inc' name="sort1", category="Bsort1", default=sort1, size = 20 %]
850
                                                [% PROCESS 'av-build-dropbox.inc' name="sort1", category="Bsort1", default=sort1, empty=1, size = 20 %]
851
                                                [% IF ( mandatorysort1 ) %]
851
                                                [% IF ( mandatorysort1 ) %]
852
                                                    <span class="required">Required</span>
852
                                                    <span class="required">Required</span>
853
                                                [% END %]
853
                                                [% END %]
Lines 863-869 legend:hover { Link Here
863
                                                [% END %]
863
                                                [% END %]
864
                                                    Sort 2:
864
                                                    Sort 2:
865
                                                </label>
865
                                                </label>
866
                                                [% PROCESS 'av-build-dropbox.inc' name="sort2", category="Bsort2", default=sort2, size = 20 %]
866
                                                [% PROCESS 'av-build-dropbox.inc' name="sort2", category="Bsort2", default=sort2, empty=1, size = 20 %]
867
                                                [% IF ( mandatorysort2 ) %]
867
                                                [% IF ( mandatorysort2 ) %]
868
                                                    <span class="required">Required</span>
868
                                                    <span class="required">Required</span>
869
                                                [% END %]
869
                                                [% END %]
870
- 

Return to bug 18680