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