X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select-agent_type.html;h=3e6ce0752f1a726baa3ece9dbf9257463fa63c29;hp=3fcbcd388e9de562f65bcca734583456d7dfcfea;hb=833cfe5c9938d33c3e6b97ed610c25a7afa6eb04;hpb=fb4ab1073f0d15d660c6cdc4e07afebf68ef3924 diff --git a/httemplate/elements/tr-select-agent_type.html b/httemplate/elements/tr-select-agent_type.html index 3fcbcd388..3e6ce0752 100644 --- a/httemplate/elements/tr-select-agent_type.html +++ b/httemplate/elements/tr-select-agent_type.html @@ -1,27 +1,26 @@ -%#% if ( scalar(@agent_types) == 1 ) { -%# -%# -%# -%#% } else { +% if ( scalar(@agent_types) == 1 ) { + + + +% } else { <% $opt{'label'} || 'Agent Type' %> - <% include( '/elements/select-agent_type.html', - 'curr_value' => $typenum, - %opt, - ) - %> + <& /elements/select-agent_type.html, + 'curr_value' => $typenum, + %opt, + &> -%#% } +% } <%init> my %opt = @_; my $typenum = $opt{'curr_value'} || $opt{'value'}; -delete $opt{'agent_types'} if $opt{'agent_types'}; #? +my @agent_types = qsearch('agent_type', { 'disabled' => '' });