diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-12-03 15:13:42 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-12-03 15:13:42 -0500 |
commit | bb69870b249c8359f458cda63df4428919cec7db (patch) | |
tree | 4ac9bf8dceaba59a5c3e9ea2ee29758e12560567 /src/usr/local | |
parent | d47bc2cea9246888652630d3218caf84d820c417 (diff) | |
download | pfsense-bb69870b249c8359f458cda63df4428919cec7db.zip pfsense-bb69870b249c8359f458cda63df4428919cec7db.tar.gz |
Support the fieldtype "<sethelp>" for checkboxes.
Diffstat (limited to 'src/usr/local')
-rw-r--r-- | src/usr/local/www/pkg_edit.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/usr/local/www/pkg_edit.php b/src/usr/local/www/pkg_edit.php index 17dff6e..8f10a18 100644 --- a/src/usr/local/www/pkg_edit.php +++ b/src/usr/local/www/pkg_edit.php @@ -948,7 +948,8 @@ foreach ($pkg['fields']['field'] as $pkga) { ($value == "on"), 'on' ))->setOnclick($onclick) - ->setOnchange($onchange); + ->setOnchange($onchange) + ->setHelp($pkga['sethelp']; } else { if (isset($pkga['advancedfield']) && isset($advfield_count)) { $advanced->addInput(new Form_Checkbox( @@ -958,7 +959,8 @@ foreach ($pkg['fields']['field'] as $pkga) { ($value == "on"), 'on' ))->setOnclick($onclick) - ->setOnchange($onchange); + ->setOnchange($onchange) + ->setHelp($pkga['sethelp']; } else { $section->addInput(new Form_Checkbox( $pkga['fieldname'], @@ -968,7 +970,7 @@ foreach ($pkg['fields']['field'] as $pkga) { 'on' ))->setOnclick($onclick) ->setOnchange($onchange) - ->setHelp($pkga['comment']); + ->setHelp($pkga['sethelp']); } } |