projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
scanning daemon and network status map, goal 1C
[freeside.git]
/
httemplate
/
view
/
svc_hardware.cgi
diff --git
a/httemplate/view/svc_hardware.cgi
b/httemplate/view/svc_hardware.cgi
index
d982bc8
..
eef1c11
100644
(file)
--- a/
httemplate/view/svc_hardware.cgi
+++ b/
httemplate/view/svc_hardware.cgi
@@
-6,23
+6,36
@@
%>
<%init>
%>
<%init>
+my $conf = new FS::Conf;
my $fields = FS::svc_hardware->table_info->{'fields'};
my %labels = map { $_ => ( ref($fields->{$_})
? $fields->{$_}{'label'}
: $fields->{$_}
);
} keys %$fields;
my $fields = FS::svc_hardware->table_info->{'fields'};
my %labels = map { $_ => ( ref($fields->{$_})
? $fields->{$_}{'label'}
: $fields->{$_}
);
} keys %$fields;
+
+$labels{'display_hw_addr'} = 'Hardware address';
+
my $model = { field => 'typenum',
type => 'text',
my $model = { field => 'typenum',
type => 'text',
- value
=> sub { $_[0]->hardware_type->model
}
+ value
_callback => sub { $_[0]->hardware_type->description
}
};
my $status = { field => 'statusnum',
type => 'text',
};
my $status = { field => 'statusnum',
type => 'text',
- value => sub { $_[0]->status_label }
+ value
_callback
=> sub { $_[0]->status_label }
};
my $note = { field => 'note',
type => 'text',
};
my $note = { field => 'note',
type => 'text',
- value => sub { encode_entities($_[0]->note) }
+ value
_callback
=> sub { encode_entities($_[0]->note) }
};
};
-my @fields = ($model, qw( serial hw_addr ip_addr smartcard ), $status, $note );
+
+my @fields = (
+ $model,
+ 'serial',
+ 'display_hw_addr',
+ 'ip_addr',
+ 'smartcard',
+ $status,
+ $note,
+);
</%init>
</%init>