X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fsvc_hardware.cgi;h=eef1c11407e6327522312fec1f4511f922600279;hp=725358cad5bd08b91633a1803133a68424d8a7d9;hb=f822e27a1e00594332ffa487a1c284234c5580a6;hpb=7d68066ea33f9f85fe14ce663372642d7ec2ad20 diff --git a/httemplate/view/svc_hardware.cgi b/httemplate/view/svc_hardware.cgi index 725358cad..eef1c1140 100644 --- a/httemplate/view/svc_hardware.cgi +++ b/httemplate/view/svc_hardware.cgi @@ -13,31 +13,26 @@ my %labels = map { $_ => ( ref($fields->{$_}) : $fields->{$_} ); } keys %$fields; + +$labels{'display_hw_addr'} = 'Hardware address'; + my $model = { field => 'typenum', type => 'text', - value => sub { $_[0]->hardware_type->description } + value_callback => sub { $_[0]->hardware_type->description } }; my $status = { field => 'statusnum', type => 'text', - value => sub { $_[0]->status_label } + value_callback => sub { $_[0]->status_label } }; my $note = { field => 'note', type => 'text', - value => sub { encode_entities($_[0]->note) } + value_callback => sub { encode_entities($_[0]->note) } }; -my $hw_addr ={ field => 'hw_addr', - type => 'text', - value => sub { - my $hw_addr = $_[0]->hw_addr; - $conf->exists('svc_hardware-check_mac_addr') ? - join(':', $hw_addr =~ /../g) : $hw_addr - }, - }; my @fields = ( $model, 'serial', - $hw_addr, + 'display_hw_addr', 'ip_addr', 'smartcard', $status,