|
Lines 8-14
Link Here
|
| 8 |
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 |
%] |
9 |
%] |
| 10 |
|
10 |
|
| 11 |
[% SET avs = AuthorisedValues.GetAuthValueDropbox( category, default ) %] |
11 |
[% SET avs = AuthorisedValues.GetAuthValueDropbox( category ) %] |
| 12 |
[% DEFAULT |
12 |
[% DEFAULT |
| 13 |
class = '' |
13 |
class = '' |
| 14 |
size = 20 |
14 |
size = 20 |
|
Lines 17-26
Link Here
|
| 17 |
[% IF avs %] |
17 |
[% IF avs %] |
| 18 |
<select id="[% name %]" name="[% name %]" class="[% class %]" > |
18 |
<select id="[% name %]" name="[% name %]" class="[% class %]" > |
| 19 |
[% FOR av IN avs %] |
19 |
[% FOR av IN avs %] |
| 20 |
[% IF av.default %] |
20 |
[% IF av.authorised_value == default %] |
| 21 |
<option value="[% av.value %]" selected="selected">[% av.label | html_entity %]</option> |
21 |
<option value="[% av.authorised_value %]" selected="selected">[% av.lib | html_entity %]</option> |
| 22 |
[% ELSE %] |
22 |
[% ELSE %] |
| 23 |
<option value="[% av.value %]">[% av.label | html_entity %]</option> |
23 |
<option value="[% av.authorised_value %]">[% av.lib | html_entity %]</option> |
| 24 |
[% END %] |
24 |
[% END %] |
| 25 |
[% END %] |
25 |
[% END %] |
| 26 |
</select> |
26 |
</select> |
| 27 |
- |
|
|