mirror of
https://github.com/espocrm/espocrm.git
synced 2026-07-01 08:26:04 +00:00
inline edit disabled param
This commit is contained in:
@@ -447,16 +447,20 @@ class FieldManager
|
||||
{
|
||||
$additionalParamList = [
|
||||
'type' => [
|
||||
'type' => 'varchar',
|
||||
'type' => 'varchar'
|
||||
],
|
||||
'isCustom' => [
|
||||
'type' => 'bool',
|
||||
'default' => false,
|
||||
'default' => false
|
||||
],
|
||||
'isPersonalData' => [
|
||||
'type' => 'bool',
|
||||
'default' => false,
|
||||
'default' => false
|
||||
],
|
||||
'inlineEditDisabled' => [
|
||||
'type' => 'bool',
|
||||
'default' => false
|
||||
]
|
||||
];
|
||||
|
||||
$fieldDefsByType = $this->getMetadataHelper()->getFieldDefsByType($fieldDefs);
|
||||
|
||||
@@ -177,7 +177,8 @@
|
||||
"useIframe": "Use Iframe",
|
||||
"useNumericFormat": "Use Numeric Format",
|
||||
"strip": "Strip",
|
||||
"minuteStep": "Minutes Step"
|
||||
"minuteStep": "Minutes Step",
|
||||
"inlineEditDisabled": "Disable Inline Edit"
|
||||
},
|
||||
"messages": {
|
||||
"upgradeVersion": "EspoCRM will be upgraded to version <strong>{version}</strong>. Please be patient as this may take a while.",
|
||||
|
||||
@@ -152,6 +152,11 @@ Espo.define('views/admin/field-manager/edit', ['view', 'model'], function (Dep,
|
||||
});
|
||||
}
|
||||
|
||||
this.paramList.push({
|
||||
name: 'inlineEditDisabled',
|
||||
type: 'bool'
|
||||
});
|
||||
|
||||
this.paramList.forEach(function (o) {
|
||||
this.model.defs.fields[o.name] = o;
|
||||
}, this);
|
||||
@@ -178,6 +183,8 @@ Espo.define('views/admin/field-manager/edit', ['view', 'model'], function (Dep,
|
||||
this.createFieldView('bool', 'isPersonalData', null, {});
|
||||
}
|
||||
|
||||
this.createFieldView('bool', 'inlineEditDisabled', null, {});
|
||||
|
||||
this.createFieldView('text', 'tooltipText', null, {
|
||||
trim: true,
|
||||
rows: 1
|
||||
|
||||
@@ -232,6 +232,12 @@ Espo.define('views/fields/base', 'view', function (Dep) {
|
||||
}
|
||||
}, this);
|
||||
|
||||
var additionaParamList = ['inlineEditDisabled'];
|
||||
|
||||
additionaParamList.forEach(function (item) {
|
||||
this.params[item] = this.model.getFieldParam(this.name, item) || null;
|
||||
}, this);
|
||||
|
||||
this.mode = this.options.mode || this.mode;
|
||||
|
||||
this.readOnly = this.readOnly || this.params.readOnly || this.model.getFieldParam(this.name, 'readOnly') || this.model.getFieldParam(this.name, 'clientReadOnly');
|
||||
|
||||
Reference in New Issue
Block a user