summaryrefslogtreecommitdiff
path: root/httemplate/elements/select-part_svc_class.html
blob: 280e3e17db7bbc3409b1d8ff32a661b463431333 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<% include( '/elements/select-table.html',
                 'table'       => 'part_svc_class',
                 'name_col'    => 'classname',
                 'value'       => $classnum,
                 'empty_label' => '(none)',
                 'hashref'     => \%hash,
                 %opt,
             )
%>
<%init>

my %opt = @_;
my $classnum = $opt{'curr_value'} || $opt{'value'};

my %hash = ();
$hash{'disabled'} = '' unless $opt{'showdisabled'};


$opt{'records'} = delete $opt{'part_svc_class'}
  if $opt{'part_svc_class'};

</%init>