Merge pull request #9947 from bafbes/abb80042

New : help picto for fields in creation
This commit is contained in:
Laurent Destailleur 2018-11-05 09:54:42 +01:00 committed by GitHub
commit 1afdf7a961
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 -->