RT# 80555 freeside_upgrade for invalid ip addresses
[freeside.git] / httemplate / elements / select-part_svc.html
1 <% include( '/elements/select-table.html',
2               'table'         => 'part_svc',
3               'name_col'      => 'svc',
4               'label_showkey' => 1,
5               #N/A 'empty_label' => '(none)',
6               %opt,
7           )
8 %>
9 <%init>
10
11 my( %opt ) = @_;
12
13 $opt{'records'} = delete $opt{'part_svc'}
14   if $opt{'part_svc'};
15
16 my %hash = ();
17 $hash{'svcdb'} = $opt{'svcdb'} if $opt{'svcdb'};
18
19 $opt{'records'} ||= [ qsearch( 'part_svc', \%hash ) ]; # { disabled=>'' } )
20
21 </%init>