projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
prevent browsers from saving passwords
[freeside.git]
/
httemplate
/
view
/
svc_hardware.cgi
diff --git
a/httemplate/view/svc_hardware.cgi
b/httemplate/view/svc_hardware.cgi
index
8201e9d
..
7f5e889
100644
(file)
--- a/
httemplate/view/svc_hardware.cgi
+++ b/
httemplate/view/svc_hardware.cgi
@@
-6,19
+6,33
@@
%>
<%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;
-my $model = { field => 'typenum',
- type => 'text',
-
value => sub { $_[0]->hardware_type->model
}
- };
+my $model =
{ field => 'typenum',
+
type => 'text',
+
value => sub { $_[0]->hardware_type->description
}
+
};
my $status = { field => 'statusnum',
type => 'text',
value => sub { $_[0]->status_label }
my $status = { field => 'statusnum',
type => 'text',
value => sub { $_[0]->status_label }
- };
-my @fields = ($model, qw( serial hw_addr ip_addr smartcard ), $status, 'note' );
+ };
+my $note = { field => 'note',
+ type => 'text',
+ value => sub { encode_entities($_[0]->note) }
+ };
+
+my @fields = (
+ $model,
+ 'serial',
+ 'display_hw_addr',
+ 'ip_addr',
+ 'smartcard',
+ $status,
+ $note,
+);
</%init>
</%init>