[%# category: the authorised value category %]
[%# default: the default authorised value to select %]
[%# class: the CSS class of the select element %]
-[%# size: the size to use for the input (generated if the authorised value category does not exist). %]
-[%# all: add a "All" entry %]
+[%# size: the size to use for the input (generated if the authorised value category does not exist). %]
+[%# all: add a "All" entry. All and empty should not be used at the same time. %]
+[%# empty: add an empty entry. All and empty should not be used at the same time. %]
[% SET avs = AuthorisedValues.GetAuthValueDropbox( category ) %]
[% DEFAULT class = '' size = 20 %]
[% IF avs %]
<select id="[% name | html %]" name="[% name | html %]" class="[% class | html %]" >
[% IF all %]<option value="">All</option>[% END %]
+ [% IF empty %]<option value=""></option>[% END %]
[% FOR av IN avs %]
[% IF av.authorised_value == default %]
<option value="[% av.authorised_value | html %]" selected="selected">[% av.lib | html_entity %]</option>
[% END %]
Sort 1:
</label>
- [% PROCESS 'av-build-dropbox.inc' name="sort1", category="Bsort1", default=sort1, size = 20 %]
+ [% PROCESS 'av-build-dropbox.inc' name="sort1", category="Bsort1", default=sort1, empty=1, size = 20 %]
[% IF ( mandatorysort1 ) %]
<span class="required">Required</span>
[% END %]
[% END %]
Sort 2:
</label>
- [% PROCESS 'av-build-dropbox.inc' name="sort2", category="Bsort2", default=sort2, size = 20 %]
+ [% PROCESS 'av-build-dropbox.inc' name="sort2", category="Bsort2", default=sort2, empty=1, size = 20 %]
[% IF ( mandatorysort2 ) %]
<span class="required">Required</span>
[% END %]