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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/av-build-dropbox.inc (-13 / +8 lines)
Lines 1-19 Link Here
1
[% USE AuthorisedValues %]
1
[% USE AuthorisedValues %]
2
[%#
2
[%# Parameters: %]
3
    Parameters:
3
[%# name: the name of the select element %]
4
    name: the name of the select element
4
[%# category: the authorised value category %]
5
    category: the authorised value category
5
[%# default: the default authorised value to select %]
6
    default: the default authorised value to select
6
[%# class: the CSS class of the select element %]
7
    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). %]
8
    size: the size to use for the input (generated if the authorised value category does not exist).
8
[%# all: add a "All" entry %]
9
    all: add a "All" entry
10
%]
11
9
12
[% SET avs = AuthorisedValues.GetAuthValueDropbox( category ) %]
10
[% SET avs = AuthorisedValues.GetAuthValueDropbox( category ) %]
13
[% DEFAULT
11
[% DEFAULT class = '' size = 20 %]
14
    class = ''
15
    size = 20
16
%]
17
12
18
[% IF avs %]
13
[% IF avs %]
19
  <select id="[% name %]" name="[% name %]" class="[% class %]" >
14
  <select id="[% name %]" name="[% name %]" class="[% class %]" >
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/av-build-dropbox.inc (-13 / +7 lines)
Lines 1-18 Link Here
1
[% USE AuthorisedValues %]
1
[% USE AuthorisedValues %]
2
[%#
2
[%# Parameters: %] 
3
    Parameters:
3
[%# name: the name of the select element %]
4
    name: the name of the select element
4
[%# category: the authorised value category %]
5
    category: the authorised value category
5
[%# default: the default authorised value to select %]
6
    default: the default authorised value to select
6
[%# class: the CSS class of the select element %]
7
    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). %]
8
    size: the size to use for the input (generated if the authorised value category does not exist).
9
%]
10
8
11
[% SET avs = AuthorisedValues.GetAuthValueDropbox( category ) %]
9
[% SET avs = AuthorisedValues.GetAuthValueDropbox( category ) %]
12
[% DEFAULT
10
[% DEFAULT class = '' size = 20 %]
13
    class = ''
14
    size = 20
15
%]
16
11
17
[% IF avs %]
12
[% IF avs %]
18
  <select id="[% name %]" name="[% name %]" class="[% class %]" >
13
  <select id="[% name %]" name="[% name %]" class="[% class %]" >
19
- 

Return to bug 18682