Merge pull request #6480 from dolibarr95/patch-2

Add label tag
This commit is contained in:
Laurent Destailleur 2017-03-05 21:40:31 +01:00 committed by GitHub
commit 52a4863ed8

View File

@ -1018,8 +1018,9 @@ class ExtraFields
{
$out.='<input class="flat '.$showsize.'" type="radio" name="'.$keysuffix.'options_'.$key.$keyprefix.'" '.($moreparam?$moreparam:'');
$out.=' value="'.$keyopt.'"';
$out.=' id="'.$keysuffix.'options_'.$key.$keyprefix.'_'.$keyopt.'"';
$out.= ($value==$keyopt?'checked':'');
$out.='/>'.$val.'<br>';
$out.='/><label for="'.$keysuffix.'options_'.$key.$keyprefix.'_'.$keyopt.'">'.$val.'</label><br>';
}
}
elseif ($type == 'chkbxlst')