agent virtualization, take one (stuff from "inactive" changeset snuck into cust_main...
[freeside.git] / httemplate / elements / select-agent.html
1 <%
2   my( $agentnum, %opt ) = @_;
3
4   my %select_opt = ();
5   $select_opt{'records'} = $opt{'agents'}
6     if $opt{'agents'};
7
8 %><%= include( '/elements/select-table.html',
9                  'table'       => 'agent',
10                  'name_col'    => 'agent',
11                  'value'       => $agentnum,
12                  'empty_label' => 'all',
13                  'hashref'     => { 'disabled' => '' },
14                  'extra_sql'   => ' AND '.
15                                   $FS::CurrentUser::CurrentUser->agentnums_sql,
16                  %select_opt,
17              )
18 %>