template fix

This commit is contained in:
Yuri Kuznetsov
2020-04-24 16:18:24 +03:00
parent 663fc784c1
commit 75fb028f1a
3 changed files with 14 additions and 10 deletions
@@ -6,6 +6,16 @@
},
"dynamicLogic": {
"fields": {
"entityType": {
"readOnly": {
"conditionGroup": [
{
"type": "isNotEmpty",
"attribute": "id"
}
]
}
},
"footer": {
"visible": {
"conditionGroup": [
+2 -7
View File
@@ -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);
}
},
});
});
+2 -3
View File
@@ -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);
}
}
},
});
});