forked from GNUsocial/gnu-social
get rid of label on checkbox, just include it as contents
darcs-hash:20080626181726-34904-c21801c5f2a74b6e66130308cdc106429cf7f43c.gz
This commit is contained in:
parent
db2d79cd31
commit
c20bcca0c5
@ -322,7 +322,6 @@ function common_input($id, $label, $value=NULL,$instructions=NULL) {
|
||||
function common_checkbox($id, $label, $instructions=NULL, $value='true')
|
||||
{
|
||||
common_element_start('p');
|
||||
common_element('label', array('for' => $id), $label);
|
||||
$attrs = array('name' => $id,
|
||||
'type' => 'checkbox',
|
||||
'id' => $id,
|
||||
@ -330,7 +329,7 @@ function common_checkbox($id, $label, $instructions=NULL, $value='true')
|
||||
if ($value) {
|
||||
$attrs['value'] = htmlspecialchars($value);
|
||||
}
|
||||
common_element('input', $attrs);
|
||||
common_element('input', $attrs, $label);
|
||||
if ($instructions) {
|
||||
common_element('span', 'input_instructions', $instructions);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user