blob: 400b453b3b7eac4725c850d09a416419a5b76ae2 (
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
27
28
29
30
|
%# if ( $cgi->param('clone') ) { #XXX
% if ( $opt{'disabled'} ) {
<INPUT TYPE="hidden" NAME="agent_type" VALUE="">
% } elsif ( scalar(@all_agent_types) == 1) {
<INPUT TYPE="hidden" NAME="agent_type" VALUE="<% $all_agent_types[0] %>">
% } else {
<% include( 'select-table.html',
'element_name' => 'agent_type',
'table' => 'agent_type',
'name_col' => 'atype',
#'value' => \@agent_type,
'element_etc' => 'size="10"',
%opt,
'multiple' => '1', #cause edit.html is dum
)
%>
% }
<%init>
my %opt = @_;
my @all_agent_types = map {$_->typenum} qsearch('agent_type',{});
</%init>
|