diff options
Diffstat (limited to 'src/usr/local/www/pkg_edit.php')
-rw-r--r-- | src/usr/local/www/pkg_edit.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/usr/local/www/pkg_edit.php b/src/usr/local/www/pkg_edit.php index f046748..4f17b1e 100644 --- a/src/usr/local/www/pkg_edit.php +++ b/src/usr/local/www/pkg_edit.php @@ -304,13 +304,20 @@ function display_row($trc, $value, $fieldname, $type, $rowhelper, $description, switch ($type) { case "input": - $group->add(new Form_Input( + $inpt = new Form_Input( $fieldname . $trc, null, 'text', $value - ))->setHelp($description); + ); + + $inpt->setHelp($description); + + if ($width) { + $inpt->setWidth($width); + } + $group->add($inpt); break; case "checkbox": $group->add(new Form_Checkbox( |