1 % if ( scalar(@agents) == 1 ) {
3 <INPUT TYPE="hidden" NAME="<% $opt{'field'} || 'agentnum' %>" VALUE="<% $agents[0]->agentnum %>">
5 %# YUCK. empty row so we don't throw g_row in edit.html off :/
11 <TD ALIGN="right"><% $opt{'label'} || 'Agent' %></TD>
13 <% include( '/elements/select-agent.html',
14 'curr_value' => $agentnum,
27 my $agentnum = $opt{'curr_value'} || $opt{'value'};
29 my @agents = $opt{'agents'}
31 : $FS::CurrentUser::CurrentUser->agents;