move text out of input, into a separate span

darcs-hash:20080626182231-34904-e8d139c2a8b5cd07fa0179b0bcf5cd41f1a1217b.gz
This commit is contained in:
Evan Prodromou 2008-06-26 14:22:31 -04:00
parent c20bcca0c5
commit 1152a0f680

View File

@ -329,7 +329,11 @@ function common_checkbox($id, $label, $instructions=NULL, $value='true')
if ($value) {
$attrs['value'] = htmlspecialchars($value);
}
common_element('input', $attrs, $label);
common_element('input', $attrs);
# XXX: use a <label>
common_text(' ');
common_element('span', 'checkbox_label', $label);
common_text(' ');
if ($instructions) {
common_element('span', 'input_instructions', $instructions);
}