blob: 959ac8dd939e52e1efe3e33eb9986c6da1d54c88 (
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
|
% if ( scalar(@{ $opt{'part_svc'} }) == 0 ) {
<INPUT TYPE="hidden" NAME="<% $opt{'field'} || 'svcpart' %>" VALUE="">
% } else {
<TR>
<TD ALIGN="right"><% $opt{'label'} || 'Service definition' %></TD>
<TD>
<% include( '/elements/select-part_svc.html',
'multiple' => 1,
%opt,
)
%>
</TD>
</TR>
% }
<%init>
my( %opt ) = @_;
my %hash = ();
$hash{'svcdb'} = $opt{'svcdb'} if $opt{'svcdb'};
$opt{'part_svc'} ||= [ qsearch( 'part_svc', \%hash ) ]; # { disabled=>'' } )
</%init>
|