mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-05 20:49:09 -04:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user