X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Fselect-agent_type.html;fp=httemplate%2Felements%2Fselect-agent_type.html;h=ba59cd397a854a1f1f7aee2544be5204a40dec04;hp=0000000000000000000000000000000000000000;hb=eb4ff7f73c5d4bdf74a3472448b5a195598ff4cd;hpb=32b5d3a31f112a381f0a15ac5e3a2204242f3405 diff --git a/httemplate/elements/select-agent_type.html b/httemplate/elements/select-agent_type.html new file mode 100644 index 000000000..ba59cd397 --- /dev/null +++ b/httemplate/elements/select-agent_type.html @@ -0,0 +1,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'}; + +