summaryrefslogtreecommitdiff
path: root/httemplate/elements/select-agent_type.html
blob: ba59cd397a854a1f1f7aee2544be5204a40dec04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<% include( '/elements/select-table.html',
                 'table'       => 'agent_type',
                 'name_col'    => 'atype',
                 'value'       => $typenum || '',
                 'empty_label' => 'all',
                 'hashref'     => { 'disabled' => '' },
                 #'extra_sql'   => ' AND '.
                 #                 $FS::CurrentUser::CurrentUser->agentnums_sql.
                 #                 ' ORDER BY agent',
                 %opt,
             )
%>
<%init>

my %opt = @_;
my $typenum = $opt{'curr_value'} || $opt{'value'};

$opt{'records'} = delete $opt{'agent_types'}
  if $opt{'agent_types'};

</%init>