From b925d9da5320790d7a1e6aaa7d6d80b1eea1a67d Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Fri, 30 Jan 2009 14:14:49 +0000 Subject: Make the rendering of a checkbox consistent with other Forge controls. Checkbox originally rendered the input box as a child element of the label element, which resulted in the label appearing under the checkbox. All the other controls render the label element first and then the input control as a peer. This change just makes it consistent. --- modules/forge/libraries/Form_Checkbox.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/forge') diff --git a/modules/forge/libraries/Form_Checkbox.php b/modules/forge/libraries/Form_Checkbox.php index c015e437..23b423b4 100644 --- a/modules/forge/libraries/Form_Checkbox.php +++ b/modules/forge/libraries/Form_Checkbox.php @@ -68,7 +68,7 @@ class Form_Checkbox_Core extends Form_Input { $label = ' '.ltrim($label); } - return ''; + return ''.form::input($data); } protected function load_value() -- cgit v1.2.3