1 <SELECT NAME="<% $opt{'field'} || 'status' %>"
2 <% $opt{'multiple'} ? 'MULTIPLE' : '' %>
8 % foreach my $option ( @{ $opt{'statuses'} } ) {
10 <OPTION VALUE="<% $option %>"
11 <% ref($value) && $value->{$option} || $option eq $value
24 $opt{'statuses'} ||= [ FS::cust_main->statuses() ]; # { disabled=>'' } )
26 my $onchange = $opt{'onchange'}
27 ? 'onChange="'. $opt{'onchange'}. '(this)"'
30 my $value = $opt{'curr_value'} || $opt{'value'};
31 $value = [ split(/\s*,\s*/, $value) ] if $opt{'multiple'} && $value =~ /,/;