summaryrefslogtreecommitdiff
path: root/httemplate/elements/select-agent.html
blob: 78ec25f826a74c50443ee576f2202b5d1155219d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<%
  my( $agentnum, %opt ) = @_;

  my %select_opt = ();
  $select_opt{'records'} = $opt{'agents'}
    if $opt{'agents'};

%><%= include( '/elements/select-table.html',
                 'table'       => 'agent',
                 'name_col'    => 'agent',
                 'value'       => $agentnum,
                 'empty_label' => 'all',
                 'hashref'     => { 'disabled' => '' },
                 'extra_sql'   => ' AND '.
                                  $FS::CurrentUser::CurrentUser->agentnums_sql,
                 %select_opt,
             )
%>