Merge pull request #32790 from hregis/fix_dev_add_help_text
QUAL add help text for default values (for newbies !)
This commit is contained in:
commit
156b537296
2 changed files with 3 additions and 1 deletions
|
|
@ -311,7 +311,7 @@ if ($mode != 'focus' && $mode != 'mandatory') {
|
|||
foreach ($substitutionarray as $key => $val) {
|
||||
$texthelp .= $key.' -> '.$val.'<br>';
|
||||
}
|
||||
$textvalue = $form->textwithpicto($langs->trans("Value"), $texthelp, 1, 'help', '', 0, 2, 'subsitutiontooltip');
|
||||
$textvalue = $form->textwithpicto($langs->trans("Value"), $langs->trans("DefaultValuesHelpText"));
|
||||
} else {
|
||||
$texthelp = 'ASC or DESC';
|
||||
$textvalue = $form->textwithpicto($langs->trans("SortOrder"), $texthelp);
|
||||
|
|
@ -345,6 +345,7 @@ print '</td>';
|
|||
if ($mode != 'focus' && $mode != 'mandatory') {
|
||||
print '<td>';
|
||||
print '<input type="text" class="flat maxwidth100onsmartphone" name="defaultvalue" value="'.dol_escape_htmltag($defaultvalue).'">';
|
||||
print $form->textwithpicto('', $texthelp, 1, 'list-alt', 'paddingleftimp cursorpointer', 0, 2, 'subsitutiontooltip');
|
||||
print '</td>';
|
||||
}
|
||||
// Limit to superadmin
|
||||
|
|
|
|||
|
|
@ -1723,6 +1723,7 @@ CompressionOfResources=Compression of HTTP responses
|
|||
CompressionOfResourcesDesc=For example using the Apache directive "AddOutputFilterByType DEFLATE"
|
||||
TestNotPossibleWithCurrentBrowsers=Such an automatic detection is not possible with current browsers
|
||||
DefaultValuesDesc=Here you may define the default value you wish to use when creating a new record, and/or default filters or the sort order when you list records.
|
||||
DefaultValuesHelpText=You can use a single value or comma-separated values for multiple choices. You can also use substitution tags (see list below).
|
||||
DefaultCreateForm=Default values (to use on forms)
|
||||
DefaultSearchFilters=Default search filters
|
||||
DefaultSortOrder=Default sort orders
|
||||
|
|
|
|||
Loading…
Reference in a new issue