field manager custom field tooltip
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user