|
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 %]" > |