Commit 303720fb authored by Dries's avatar Dries

- Patch #15609 by m3avrck: get rid of forced <br />-tag after <label>-tags. ...

- Patch #15609 by m3avrck: get rid of forced <br />-tag after <label>-tags.  Makes it easier to theme forms.
parent 6c20d333
......@@ -595,10 +595,10 @@ function theme_form_element($title, $value, $description = NULL, $id = NULL, $re
if ($title) {
if ($id) {
$output .= ' <label for="'. form_clean_id($id) .'">'. $title .':</label>'. $required ."<br />\n";
$output .= ' <label for="'. form_clean_id($id) .'">'. $title .":$required</label>\n";
}
else {
$output .= ' <label>'. $title .':</label>'. $required ."<br />\n";
$output .= ' <label>'. $title .":$required</label>\n";
}
}
......
......@@ -148,6 +148,7 @@ tr.odd .form-item, tr.even .form-item {
font-size: 0.85em;
}
.form-item label {
display: block;
font-weight: bold;
}
.form-item label.option {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment