X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select-agent.html;fp=httemplate%2Felements%2Ftr-select-agent.html;h=321bd6b32de3e09fe8b7da5e13b2d0b70a3b204f;hp=ce03c40f5f60a10d07de1af8f985d5fec4c115c4;hb=49fc33db77d202f175a4d8a33e3eab1e52080a4d;hpb=1ae273f69e5bf2b46c9c5fcd990ad923770ace56 diff --git a/httemplate/elements/tr-select-agent.html b/httemplate/elements/tr-select-agent.html index ce03c40f5..321bd6b32 100644 --- a/httemplate/elements/tr-select-agent.html +++ b/httemplate/elements/tr-select-agent.html @@ -22,7 +22,7 @@ Example: ); -% if ( scalar(@agents) == 1 ) { +% if ( scalar(@agents) == 1 || $opt{'fixed'} ) { -%# YUCK. empty row so we don't throw g_row in edit.html off :/ - - +% if ( scalar(@agents) != 1 ) { + + <% $opt{'label'} || emt('Agent') %> + > +% my $agent = qsearchs('agent', { 'agentnum' => $agentnum }); + <% $agent ? $agent->agent : '(all)' |h %> + + + +% } else { # YUCK. empty row so we don't throw g_row in edit.html off :/ + + +% } +% % } else {