diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-01-30 14:14:49 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-01-30 14:14:49 +0000 |
commit | b925d9da5320790d7a1e6aaa7d6d80b1eea1a67d (patch) | |
tree | 1a75fd49a8017994fdfc53fb9768b2018759adf5 /modules | |
parent | a3aef693177547f47ab01a7f4c690b2935ed2114 (diff) |
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.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/forge/libraries/Form_Checkbox.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 '<label>'.form::input($data).$label.'</label>'; + return '<label>'.$label.'</label>'.form::input($data); } protected function load_value() |