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.

This commit is contained in:
Tim Almdal
2009-01-30 14:14:49 +00:00
parent a3aef69317
commit b925d9da53

View File

@@ -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()