campaign dev

This commit is contained in:
yuri
2015-03-02 12:24:57 +02:00
parent d1fe581706
commit 16ce5385f4
11 changed files with 73 additions and 14 deletions
@@ -0,0 +1,28 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2015 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://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/.
************************************************************************/
namespace Espo\Modules\Crm\Entities;
class CampaignLogRecord extends \Espo\Core\ORM\Entity
{
}
@@ -14,7 +14,7 @@
"contacts": "Contacts",
"leads": "Leads",
"opportunities": "Opportunities",
"campaignLogs": "Log"
"campaignLogRecords": "Log"
},
"options": {
"type": {
@@ -1,3 +1,3 @@
[
"campaignLogRecords"
]
@@ -16,7 +16,14 @@
"recordViews": {
"detail": "Crm:Campaign.Record.Detail"
},
"presetFilters": [
"relationshipPanels": {
"campaignLogRecords": {
"view": "Crm:Campaign.Record.Panels.CampaignLogRecords",
"select": false,
"create": false
}
},
"presetFilters": [
{
"name":"active",
"style": "primary",
@@ -93,9 +93,9 @@
"entity": "Opportunity",
"foreign": "campaign"
},
"campaignLogs": {
"campaignLogRecords": {
"type": "hasMany",
"entity": "CampaignLog",
"entity": "CampaignLogRecord",
"foreign": "campaign"
}
},
@@ -44,7 +44,7 @@
"campaign": {
"type": "belongsTo",
"entity": "Campaign",
"foreign": "campaignLogs"
"foreign": "campaignLogRecords"
},
"parent": {
"type": "belongsToParent",
@@ -24,13 +24,6 @@ Espo.define('Crm:Views.Campaign.Record.DetailBottom', 'Views.Record.DetailBottom
return Dep.extend({
setup: function () {
Dep.prototype.setup.call(this);
this.panels.unshift({
});
}
});
});
@@ -24,7 +24,7 @@ Espo.define('Crm:Views.Campaign.Record.Detail', 'Views.Record.Detail', function
return Dep.extend({
bottomView: 'Crm:Campaign.Record.DetailSide',
bottomView: 'Crm:Campaign.Record.DetailBottom',
});
});
@@ -0,0 +1,31 @@
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2015 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://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/.
************************************************************************/
Espo.define('Crm:Views.Campaign.Record.Panels.CampaignLogRecords', 'Views.Record.Panels.Relationship', function (Dep) {
return Dep.extend({
});
});