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