Merge branch 'master' of git.freeside.biz:/home/git/freeside
[freeside.git] / httemplate / elements / select-part_svc_class.html
1 <% include( '/elements/select-table.html',
2                  'table'       => 'part_svc_class',
3                  'name_col'    => 'classname',
4                  'value'       => $classnum,
5                  'empty_label' => '(none)',
6                  'hashref'     => \%hash,
7                  %opt,
8              )
9 %>
10 <%init>
11
12 my %opt = @_;
13 my $classnum = $opt{'curr_value'} || $opt{'value'};
14
15 my %hash = ();
16 $hash{'disabled'} = '' unless $opt{'showdisabled'};
17
18
19 $opt{'records'} = delete $opt{'part_svc_class'}
20   if $opt{'part_svc_class'};
21
22 </%init>