summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/classes
diff options
context:
space:
mode:
authorNewEraCracker <neweracracker@gmail.com>2016-07-13 08:53:21 +0100
committerStephen Beaver <sbeaver@netgate.com>2016-08-03 07:43:51 -0400
commit21915c632c9d1645003fe3121cb7607d14408e7e (patch)
tree2009a95a4ce13688342fa6fbb10652c13bb391b9 /src/usr/local/www/classes
parentaf18691bc624764cf98dc51de6266db1611b10c6 (diff)
downloadpfsense-21915c632c9d1645003fe3121cb7607d14408e7e.zip
pfsense-21915c632c9d1645003fe3121cb7607d14408e7e.tar.gz
Some tweaks to improve alignment in table with checkbox
1) If a checkbox does not have a description (even if it is empty), layout will be broken as checkbox won't be aligned correctly 2) UPnP checkbox looks better with description instead of help This commit fixes the two issues (cherry picked from commit 1a8e5f2f67fdc18080eeac47dc4ed0bdfacc66b9)
Diffstat (limited to 'src/usr/local/www/classes')
-rw-r--r--src/usr/local/www/classes/Form/Checkbox.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/classes/Form/Checkbox.class.php b/src/usr/local/www/classes/Form/Checkbox.class.php
index cdd5b54..5dc32f3 100644
--- a/src/usr/local/www/classes/Form/Checkbox.class.php
+++ b/src/usr/local/www/classes/Form/Checkbox.class.php
@@ -89,7 +89,7 @@ class Form_Checkbox extends Form_Input
$input = parent::_getInput();
if (empty($this->_description))
- return $input;
+ return '<label class="chkboxlbl">'. $input .'</label>';
return '<label class="chkboxlbl">'. $input .' '. htmlspecialchars(gettext($this->_description)) .'</label>';
}
OpenPOWER on IntegriCloud