summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-select-part_svc.html
blob: efe18a0e603c2a971a6aa3c7664d7f783461da5a (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>
    <TH ALIGN="right"><% $opt{'label'} || 'Service definition' %></TH>
    <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>