diff --git a/application/Espo/Modules/Crm/Resources/metadata/clientDefs/Call.json b/application/Espo/Modules/Crm/Resources/metadata/clientDefs/Call.json index fd53928e7d..8e167b6c0f 100644 --- a/application/Espo/Modules/Crm/Resources/metadata/clientDefs/Call.json +++ b/application/Espo/Modules/Crm/Resources/metadata/clientDefs/Call.json @@ -5,8 +5,9 @@ "detail":"crm:views/call/detail" }, "recordViews":{ - "list":"crm:views/call/record/list", - "detail":"crm:views/call/record/detail" + "list": "crm:views/call/record/list", + "detail": "crm:views/call/record/detail", + "editSmall": "crm:views/call/record/edit-small" }, "modalViews": { "detail":"crm:views/meeting/modals/detail" @@ -71,6 +72,14 @@ "disabled": true, "order": 1 } + ], + "editSmall": [ + { + "name": "scheduler", + "label": "Scheduler", + "view": "crm:views/meeting/record/panels/scheduler", + "order": 1 + } ] }, "filterList": [ @@ -100,6 +109,11 @@ "selectHandler": "handlers/select-related/same-account-many" } }, + "additionalLayouts": { + "bottomPanelsEditSmall": { + "type": "bottomPanelsEditSmall" + } + }, "dynamicLogic":{ "fields":{ "reminders": { diff --git a/application/Espo/Modules/Crm/Resources/metadata/clientDefs/Meeting.json b/application/Espo/Modules/Crm/Resources/metadata/clientDefs/Meeting.json index 42f529acb0..70add0626a 100644 --- a/application/Espo/Modules/Crm/Resources/metadata/clientDefs/Meeting.json +++ b/application/Espo/Modules/Crm/Resources/metadata/clientDefs/Meeting.json @@ -6,7 +6,8 @@ }, "recordViews":{ "list":"crm:views/meeting/record/list", - "detail": "crm:views/meeting/record/detail" + "detail": "crm:views/meeting/record/detail", + "editSmall": "crm:views/meeting/record/edit-small" }, "modalViews": { "detail":"crm:views/meeting/modals/detail" @@ -76,6 +77,14 @@ "view": "crm:views/meeting/record/panels/scheduler", "order": 1 } + ], + "editSmall": [ + { + "name": "scheduler", + "label": "Scheduler", + "view": "crm:views/meeting/record/panels/scheduler", + "order": 1 + } ] }, "filterList": [ @@ -105,6 +114,11 @@ "selectHandler": "handlers/select-related/same-account-many" } }, + "additionalLayouts": { + "bottomPanelsEditSmall": { + "type": "bottomPanelsEditSmall" + } + }, "dynamicLogic":{ "fields":{ "reminders": { diff --git a/client/modules/crm/src/views/call/record/edit-small.js b/client/modules/crm/src/views/call/record/edit-small.js new file mode 100644 index 0000000000..8d8a78dd40 --- /dev/null +++ b/client/modules/crm/src/views/call/record/edit-small.js @@ -0,0 +1,34 @@ +/************************************************************************ + * This file is part of EspoCRM. + * + * EspoCRM - Open Source CRM application. + * Copyright (C) 2014-2022 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko + * Website: https://www.espocrm.com + * + * EspoCRM is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * EspoCRM is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with EspoCRM. If not, see http://www.gnu.org/licenses/. + * + * The interactive user interfaces in modified source and object code versions + * of this program must display Appropriate Legal Notices, as required under + * Section 5 of the GNU General Public License version 3. + * + * In accordance with Section 7(b) of the GNU General Public License version 3, + * these Appropriate Legal Notices must retain the display of the "EspoCRM" word. + ************************************************************************/ + +define('crm:views/call/record/edit-small', ['views/record/edit'], function (Dep) { + + return Dep.extend({ + + }); +}); diff --git a/client/modules/crm/src/views/meeting/record/edit-small.js b/client/modules/crm/src/views/meeting/record/edit-small.js new file mode 100644 index 0000000000..b9fe1aa31b --- /dev/null +++ b/client/modules/crm/src/views/meeting/record/edit-small.js @@ -0,0 +1,35 @@ +/************************************************************************ + * This file is part of EspoCRM. + * + * EspoCRM - Open Source CRM application. + * Copyright (C) 2014-2022 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko + * Website: https://www.espocrm.com + * + * EspoCRM is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * EspoCRM is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with EspoCRM. If not, see http://www.gnu.org/licenses/. + * + * The interactive user interfaces in modified source and object code versions + * of this program must display Appropriate Legal Notices, as required under + * Section 5 of the GNU General Public License version 3. + * + * In accordance with Section 7(b) of the GNU General Public License version 3, + * these Appropriate Legal Notices must retain the display of the "EspoCRM" word. + ************************************************************************/ + +define('crm:views/meeting/record/edit-small', ['views/record/edit'], function (Dep) { + + return Dep.extend({ + + }); +}); + diff --git a/client/src/views/admin/layouts/bottom-panels-edit-small.js b/client/src/views/admin/layouts/bottom-panels-edit-small.js new file mode 100644 index 0000000000..ba59b562d0 --- /dev/null +++ b/client/src/views/admin/layouts/bottom-panels-edit-small.js @@ -0,0 +1,35 @@ +/************************************************************************ + * This file is part of EspoCRM. + * + * EspoCRM - Open Source CRM application. + * Copyright (C) 2014-2022 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko + * Website: https://www.espocrm.com + * + * EspoCRM is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * EspoCRM is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with EspoCRM. If not, see http://www.gnu.org/licenses/. + * + * The interactive user interfaces in modified source and object code versions + * of this program must display Appropriate Legal Notices, as required under + * Section 5 of the GNU General Public License version 3. + * + * In accordance with Section 7(b) of the GNU General Public License version 3, + * these Appropriate Legal Notices must retain the display of the "EspoCRM" word. + ************************************************************************/ + +define('views/admin/layouts/bottom-panels-edit-small', ['views/admin/layouts/bottom-panels-edit'], function (Dep) { + + return Dep.extend({ + + viewType: 'editSmall', + }); +}); diff --git a/client/src/views/record/edit-small.js b/client/src/views/record/edit-small.js index 8af2b38c69..1776291e41 100644 --- a/client/src/views/record/edit-small.js +++ b/client/src/views/record/edit-small.js @@ -26,11 +26,10 @@ * these Appropriate Legal Notices must retain the display of the "EspoCRM" word. ************************************************************************/ -define('views/record/edit-small', 'views/record/edit', function (Dep) { +define('views/record/edit-small', ['views/record/edit'], function (Dep) { return Dep.extend({ bottomView: null, - }); });