1 <& /elements/select-tiered.html, tiers => [
4 table => 'hardware_class',
5 hashref => ($classnum ? { classnum => $classnum } : {}),
6 name_col => 'classname',
7 empty_label => '(all)',
11 table => 'hardware_type',
12 select => 'classnum, model',
15 link_col => 'classnum',
17 extra_sql => 'GROUP BY classnum, model',
18 empty_label => '(all)',
21 table => 'hardware_type',
22 name_col => 'revision',
23 value_col => 'typenum',
25 empty_label => $opt{'empty_label'},
33 my $hashref = $opt{'hashref'} || {};
34 my $classnum = $hashref->{classnum};