diff options
author | Evan Prodromou <evan@controlezvous.ca> | 2008-06-26 14:22:31 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlezvous.ca> | 2008-06-26 14:22:31 -0400 |
commit | 1152a0f6803291db3d905aed47989bcccf9f9f72 (patch) | |
tree | 2496ceb94ae6c8bd2f4eb1f73d1669f456cc9ec3 | |
parent | c20bcca0c59f77fbc899f779cbeffd7925f86720 (diff) |
move text out of input, into a separate span
darcs-hash:20080626182231-34904-e8d139c2a8b5cd07fa0179b0bcf5cd41f1a1217b.gz
-rw-r--r-- | lib/util.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php index 2c2ee4c0c..a20f64c85 100644 --- a/lib/util.php +++ b/lib/util.php @@ -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); } |