diff options
Diffstat (limited to 'httemplate/view/svc_hardware.cgi')
| -rw-r--r-- | httemplate/view/svc_hardware.cgi | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/httemplate/view/svc_hardware.cgi b/httemplate/view/svc_hardware.cgi index 8201e9db0..d982bc8a6 100644 --- a/httemplate/view/svc_hardware.cgi +++ b/httemplate/view/svc_hardware.cgi @@ -12,13 +12,17 @@ my %labels = map { $_ => ( ref($fields->{$_}) : $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->model } + }; 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, qw( serial hw_addr ip_addr smartcard ), $status, $note ); </%init> |
