wrap a span around the checkbox label and remove bogus nbsp

This commit is contained in:
Mathias Kresin 2015-04-13 14:15:35 +02:00
parent ca8061a415
commit 67d97bb096
2 changed files with 2 additions and 1 deletions

View File

@ -158,6 +158,7 @@ label {
input[type="checkbox"] {
border: 1px solid #ccc;
margin-right: 0.5em;
}
input[type="email"],

View File

@ -245,7 +245,7 @@ function form_radio($name, $label, $value, $checked = false, $class = '')
function form_checkbox($name, $label, $value, $checked = false, $class = '')
{
return '<label><input type="checkbox" name="'.$name.'" class="'.$class.'" value="'.escape($value).'" '.($checked ? 'checked="checked"' : '').'>&nbsp;'.escape($label).'</label>';
return '<label><input type="checkbox" name="'.$name.'" class="'.$class.'" value="'.escape($value).'" '.($checked ? 'checked="checked"' : '').'><span>'.escape($label).'</span></label>';
}
function form_label($label, $name, $class = '')