summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorivan <ivan>2008-12-03 05:54:56 +0000
committerivan <ivan>2008-12-03 05:54:56 +0000
commitfd2f5af1240d64dc710b25bd9e4b7ffa5878c568 (patch)
treead8fba98f3ca7b0a3f9b834cb3aee84f3f6be5d1 /httemplate
parent4e77f6927631e226e13da84082be66867b71330f (diff)
60 char soft max length for packages, so invoices don't wrap, RT#4328
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/edit/elements/edit.html1
-rwxr-xr-xhttemplate/edit/part_pkg.cgi6
2 files changed, 6 insertions, 1 deletions
diff --git a/httemplate/edit/elements/edit.html b/httemplate/edit/elements/edit.html
index 33e4b0d..6c70d66 100644
--- a/httemplate/edit/elements/edit.html
+++ b/httemplate/edit/elements/edit.html
@@ -208,6 +208,7 @@ Example:
%
% #text and derivitives
% 'size' => $f->{'size'},
+% 'maxlength' => $f->{'maxlength'},
%
% #checkbox, title, fixed, fixedhidden
% #& deprecated weird value hashref used only by reason.html
diff --git a/httemplate/edit/part_pkg.cgi b/httemplate/edit/part_pkg.cgi
index db706ab..8fd3ed3 100755
--- a/httemplate/edit/part_pkg.cgi
+++ b/httemplate/edit/part_pkg.cgi
@@ -47,7 +47,11 @@
{ type => 'columnstart' },
- {field=>'pkg', type=>'text', size=>40 }, #32
+ { field => 'pkg',
+ type => 'text',
+ size => 40, #32
+ maxlength => 60,
+ },
{field=>'comment', type=>'text', size=>40 }, #32
{field=>'classnum', type=>'select-pkg_class' },
{field=>'disabled', type=>'checkbox', value=>'Y'},