Merge branch 'patch-1' of https://github.com/gjones2/Freeside
[freeside.git] / httemplate / elements / tr-select-part_svc.html
1 % if ( scalar(@{ $opt{'part_svc'} }) == 0 ) { 
2
3   <INPUT TYPE="hidden" NAME="<% $opt{'field'} || 'svcpart' %>" VALUE="">
4
5 % } else { 
6
7   <TR>
8     <TD ALIGN="right"><% $opt{'label'} || 'Package definition' %></TD>
9     <TD>
10       <% include( '/elements/select-part_svc.html',
11                     'multiple' => 1,
12                     %opt,
13                 )
14       %>
15     </TD>
16   </TR>
17
18 % } 
19
20 <%init>
21
22 my( %opt ) = @_;
23
24 $opt{'part_svc'} ||= [ qsearch( 'part_svc', {} ) ]; # { disabled=>'' } )
25
26 </%init>