mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 12:41:30 +00:00
add attribute 'for' to label in formField()
This commit is contained in:
parent
4a5426a180
commit
c376e352b5
|
@ -1076,7 +1076,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
||||||
function formField($title, $value, $params=array()) { /* {{{ */
|
function formField($title, $value, $params=array()) { /* {{{ */
|
||||||
if($title !== null) {
|
if($title !== null) {
|
||||||
echo "<div class=\"control-group\">";
|
echo "<div class=\"control-group\">";
|
||||||
echo " <label class=\"control-label\"".(!empty($params['help']) ? " title=\"".$params['help']."\" style=\"cursor: help;\"" : "").">".$title.":</label>";
|
echo " <label class=\"control-label\"".(!empty($params['help']) ? " title=\"".$params['help']."\" style=\"cursor: help;\"" : "").(!empty($value['id']) ? ' for="'.$value['id'].'"' : '').">".$title.":</label>";
|
||||||
echo " <div class=\"controls\">";
|
echo " <div class=\"controls\">";
|
||||||
}
|
}
|
||||||
if(isset($params['field_wrap'][0]))
|
if(isset($params['field_wrap'][0]))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user