summaryrefslogtreecommitdiffstats
path: root/src/usr/local
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-12-22 12:54:05 -0500
committerStephen Beaver <sbeaver@netgate.com>2015-12-22 12:54:05 -0500
commitbd0d36bd2a6098e7c8beca29c923c65fe72aa315 (patch)
tree4838faff7d8bc50f96c619d666848440226b2788 /src/usr/local
parente5274f512d9e5c590cf117fc3bf1ac04e3a4100f (diff)
downloadpfsense-bd0d36bd2a6098e7c8beca29c923c65fe72aa315.zip
pfsense-bd0d36bd2a6098e7c8beca29c923c65fe72aa315.tar.gz
Accommodate <width> XML tag in rowhelper input fields
Diffstat (limited to 'src/usr/local')
-rw-r--r--src/usr/local/www/pkg_edit.php11
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(
OpenPOWER on IntegriCloud