%doc>
Example:
<& /elements/tr-select-agent-sales.html,
'agent_empty_label' => '(any)', #defaults to "all"
'sales_disable_empty' => 1, #defaults with empty enabled
&>
%doc>
% if ( $curuser->report_salesnum ) {
% } else {
<& /elements/tr-select-agent.html,
'onchange' => 'agent_changed(this)',
'empty_label' => $opt{agent_empty_label},
&>
<& /elements/tr-select-sales.html,
'empty_label' => 'all',
'disable_empty' => $opt{sales_disable_empty},
&>
% }
<%init>
my %opt = @_;
my $curuser = $FS::CurrentUser::CurrentUser;
%init>