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'}
17 $labels{'display_hw_addr'} = 'Hardware address';
19 my $model = { field => 'typenum',
21 value_callback => sub { $_[0]->hardware_type->description }
23 my $status = { field => 'statusnum',
25 value_callback => sub { $_[0]->status_label }
27 my $note = { field => 'note',
29 value_callback => sub { encode_entities($_[0]->note) }