summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authormark <mark>2011-07-31 01:00:52 +0000
committermark <mark>2011-07-31 01:00:52 +0000
commit8540e77a4e36da552b518c13200e07570182676b (patch)
tree03d56c5071c48ac936a51025861021d92243a9b6 /httemplate
parent007fd3026ade508a9d88b436575a4797d003280a (diff)
more tolerant installation note fields, #13827
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/edit/svc_dish.cgi4
-rw-r--r--httemplate/edit/svc_hardware.cgi4
-rw-r--r--httemplate/view/svc_dish.cgi4
-rw-r--r--httemplate/view/svc_hardware.cgi16
4 files changed, 17 insertions, 11 deletions
diff --git a/httemplate/edit/svc_dish.cgi b/httemplate/edit/svc_dish.cgi
index 57df49846..f70846454 100644
--- a/httemplate/edit/svc_dish.cgi
+++ b/httemplate/edit/svc_dish.cgi
@@ -28,8 +28,8 @@ my @fields = (
{
field => 'note',
type => 'textarea',
- rows => 4,
- cols => 30,
+ rows => 8,
+ cols => 50,
label => 'Installation notes',
},
diff --git a/httemplate/edit/svc_hardware.cgi b/httemplate/edit/svc_hardware.cgi
index cde74490e..dcf83de37 100644
--- a/httemplate/edit/svc_hardware.cgi
+++ b/httemplate/edit/svc_hardware.cgi
@@ -51,8 +51,8 @@ my @fields = (
{
field => 'note',
type => 'textarea',
- rows => 4,
- cols => 30,
+ rows => 8,
+ cols => 50,
label => 'Installation notes',
},
diff --git a/httemplate/view/svc_dish.cgi b/httemplate/view/svc_dish.cgi
index 768c1372f..58da7075a 100644
--- a/httemplate/view/svc_dish.cgi
+++ b/httemplate/view/svc_dish.cgi
@@ -14,6 +14,8 @@ my %labels = map { $_ => ( ref($fields->{$_})
} keys %$fields;
my @fields = ('acctnum',
{ field => 'installdate', type => 'date' },
- 'note'
+ { field => 'note',
+ value => sub { encode_entities($_[0]->note) }
+ },
);
</%init>
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>