inline edit disabled param

This commit is contained in:
yuri
2018-11-13 16:38:08 +02:00
parent 520b3c5e89
commit b6653f99be
4 changed files with 22 additions and 4 deletions

View File

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

View File

@@ -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.",

View File

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

View File

@@ -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');