Merge pull request #9947 from bafbes/abb80042
New : help picto for fields in creation
This commit is contained in:
commit
1afdf7a961
@ -19,6 +19,7 @@
|
||||
* $action
|
||||
* $conf
|
||||
* $langs
|
||||
* $form
|
||||
*/
|
||||
|
||||
// Protection to avoid direct call of template
|
||||
@ -49,6 +50,9 @@ foreach($object->fields as $key => $val)
|
||||
print '"';
|
||||
print '>';
|
||||
print $langs->trans($val['label']);
|
||||
if(!empty($val['help'])){
|
||||
print $form->textwithpicto('',$langs->trans($val['help']));
|
||||
}
|
||||
print '</td>';
|
||||
print '<td>';
|
||||
if (in_array($val['type'], array('int', 'integer'))) $value = GETPOST($key, 'int');
|
||||
@ -60,4 +64,4 @@ foreach($object->fields as $key => $val)
|
||||
}
|
||||
|
||||
?>
|
||||
<!-- END PHP TEMPLATE commonfields_add.tpl.php -->
|
||||
<!-- END PHP TEMPLATE commonfields_add.tpl.php -->
|
||||
|
||||
Loading…
Reference in New Issue
Block a user