summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlezvous.ca>2008-06-26 14:22:31 -0400
committerEvan Prodromou <evan@controlezvous.ca>2008-06-26 14:22:31 -0400
commit1152a0f6803291db3d905aed47989bcccf9f9f72 (patch)
tree2496ceb94ae6c8bd2f4eb1f73d1669f456cc9ec3 /lib
parentc20bcca0c59f77fbc899f779cbeffd7925f86720 (diff)
move text out of input, into a separate span
darcs-hash:20080626182231-34904-e8d139c2a8b5cd07fa0179b0bcf5cd41f1a1217b.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/util.php6
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);
}