template fix
This commit is contained in:
@@ -6,6 +6,16 @@
|
||||
},
|
||||
"dynamicLogic": {
|
||||
"fields": {
|
||||
"entityType": {
|
||||
"readOnly": {
|
||||
"conditionGroup": [
|
||||
{
|
||||
"type": "isNotEmpty",
|
||||
"attribute": "id"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"footer": {
|
||||
"visible": {
|
||||
"conditionGroup": [
|
||||
|
||||
@@ -26,17 +26,13 @@
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
Espo.define('views/template/record/detail', 'views/record/detail', function (Dep) {
|
||||
define('views/template/record/detail', 'views/record/detail', function (Dep) {
|
||||
|
||||
return Dep.extend({
|
||||
|
||||
setup: function () {
|
||||
Dep.prototype.setup.call(this);
|
||||
|
||||
if (!this.model.isNew()) {
|
||||
this.setFieldReadOnly('entityType');
|
||||
}
|
||||
|
||||
this.hideField('variables');
|
||||
|
||||
this.on('after:set-edit-mode', function () {
|
||||
@@ -45,8 +41,7 @@ Espo.define('views/template/record/detail', 'views/record/detail', function (Dep
|
||||
this.on('after:set-detail-mode', function () {
|
||||
this.hideField('variables');
|
||||
}, this);
|
||||
}
|
||||
},
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
Espo.define('views/template/record/edit', 'views/record/edit', function (Dep) {
|
||||
define('views/template/record/edit', 'views/record/edit', function (Dep) {
|
||||
|
||||
return Dep.extend({
|
||||
|
||||
@@ -115,8 +115,7 @@ Espo.define('views/template/record/edit', 'views/record/edit', function (Dep) {
|
||||
};
|
||||
}, this);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user