1 [% USE AuthorisedValues %]
4 name: the name of the select element
5 category: the authorised value category
6 default: the default authorised value to select
7 class: the CSS class of the select element
8 size: the size to use for the input (generated if the authorised value category does not exist).
11 [% SET avs = AuthorisedValues.GetAuthValueDropbox( category ) %]
18 <select id="[% name %]" name="[% name %]" class="[% class %]" >
20 [% IF av.authorised_value == default %]
21 <option value="[% av.authorised_value %]" selected="selected">[% av.lib | html_entity %]</option>
23 <option value="[% av.authorised_value %]">[% av.lib | html_entity %]</option>
28 <input type="text" id="[% name %]" name="[% name %]" size="[% size %]" value="[% default | html_entity %]" class="[% class %]" />