summaryrefslogtreecommitdiff
path: root/modules/forge
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-01-30 14:14:49 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-01-30 14:14:49 +0000
commitb925d9da5320790d7a1e6aaa7d6d80b1eea1a67d (patch)
tree1a75fd49a8017994fdfc53fb9768b2018759adf5 /modules/forge
parenta3aef693177547f47ab01a7f4c690b2935ed2114 (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/forge')
-rw-r--r--modules/forge/libraries/Form_Checkbox.php2
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()