1 % if ( scalar(@agent_types) == 1 ) {
3 <INPUT TYPE="hidden" NAME="<% $opt{'field'} || 'typenum' %>" VALUE="<% $agent_types[0]->typenum %>">
8 <TD ALIGN="right"><% $opt{'label'} || 'Agent Type' %></TD>
10 <& /elements/select-agent_type.html,
11 'curr_value' => $typenum,
22 my $typenum = $opt{'curr_value'} || $opt{'value'};
24 my @agent_types = qsearch('agent_type', { 'disabled' => '' });