1 <% include('elements/svc_Common.html',
2 'table' => 'svc_hardware',
9 my $conf = new FS::Conf;
10 my $fields = FS::svc_hardware->table_info->{'fields'};
11 my %labels = map { $_ => ( ref($fields->{$_})
12 ? $fields->{$_}{'label'}
16 my $model = { field => 'typenum',
18 value => sub { $_[0]->hardware_type->description }
20 my $status = { field => 'statusnum',
22 value => sub { $_[0]->status_label }
24 my $note = { field => 'note',
26 value => sub { encode_entities($_[0]->note) }