X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select-agent.html;h=321bd6b32de3e09fe8b7da5e13b2d0b70a3b204f;hb=a6fe07e49e3fc12169e801b1ed6874c3a5bd8500;hp=0985d1aa78630cd5d4efe3766b75437fcbbee0f1;hpb=73ccbbf60928661e385c826de893e6fd57c7e364;p=freeside.git diff --git a/httemplate/elements/tr-select-agent.html b/httemplate/elements/tr-select-agent.html index 0985d1aa7..321bd6b32 100644 --- a/httemplate/elements/tr-select-agent.html +++ b/httemplate/elements/tr-select-agent.html @@ -22,13 +22,28 @@ Example: ); -% if ( scalar(@agents) == 1 ) { - - - -%# YUCK. empty row so we don't throw g_row in edit.html off :/ - - +% if ( scalar(@agents) == 1 || $opt{'fixed'} ) { + + + +% 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 {