field manager custom field tooltip

This commit is contained in:
yuri
2019-09-13 14:57:47 +03:00
parent e319ead6a7
commit 0db2dbc0f3
4 changed files with 11 additions and 3 deletions
@@ -74,6 +74,7 @@
"before": "The date value should be before the date value of the specified field.",
"after": "The date value should be after the date value of the specified field.",
"readOnly": "Field value can't be specified by user. But can be calculated by formula.",
"fileAccept": "Which file types to accept. It's possible to add custom items.",
"maxFileSize": "If empty or 0 then no limit."
},
"fieldParts": {
@@ -32,7 +32,8 @@
"audio/*",
"video/*",
".pdf"
]
],
"tooltip": "fileAccept"
}
],
"actualFields":[
@@ -26,7 +26,8 @@
"audio/*",
"video/*",
".pdf"
]
],
"tooltip": "fileAccept"
},
{
"name":"audited",
+6 -1
View File
@@ -256,7 +256,12 @@ Espo.define('views/admin/field-manager/edit', ['view', 'model'], function (Dep,
var options = {};
if (o.tooltip || ~this.paramWithTooltipList.indexOf(o.name)) {
options.tooltip = true;
options.tooltipText = this.translate(o.name, 'tooltips', 'FieldManager');
var tooltip = o.name;
if (typeof o.tooltip == 'string') {
tooltip = o.tooltip;
}
options.tooltipText = this.translate(tooltip, 'tooltips', 'FieldManager');
}
this.createFieldView(o.type, o.name, null, o, options);
}, this);