enable CardFortress in test database, #71513
[freeside.git] / httemplate / elements / tr-select-agent_type.html
1 % if ( scalar(@agent_types) == 1 ) { 
2
3   <INPUT TYPE="hidden" NAME="<% $opt{'field'} || 'typenum' %>" VALUE="<% $agent_types[0]->typenum %>">
4
5 % } else { 
6
7   <TR>
8     <TD ALIGN="right"><% $opt{'label'} || 'Agent Type' %></TD>
9     <TD>
10       <& /elements/select-agent_type.html,
11            'curr_value'  => $typenum,
12            %opt,
13       &>
14     </TD>
15   </TR>
16
17 % } 
18
19 <%init>
20
21 my %opt = @_;
22 my $typenum = $opt{'curr_value'} || $opt{'value'};
23
24 my @agent_types = qsearch('agent_type', { 'disabled' => '' });
25
26 </%init>