1 <% include('elements/svc_Common.html',
2 'table' => 'svc_hardware',
9 my $fields = FS::svc_hardware->table_info->{'fields'};
10 my %labels = map { $_ => ( ref($fields->{$_})
11 ? $fields->{$_}{'label'}
15 my $model = { field => 'typenum',
17 value => sub { $_[0]->hardware_type->model }
19 my $status = { field => 'statusnum',
21 value => sub { $_[0]->status_label }
23 my @fields = ($model, qw( serial hw_addr ip_addr smartcard ), $status, 'note' );