2 if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 /*********************************************************************************
4 * SugarCRM is a customer relationship management program developed by
5 * SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
7 * This program is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU Affero General Public License version 3 as published by the
9 * Free Software Foundation with the addition of the following permission added
10 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
11 * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
12 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
14 * This program is distributed in the hope that it will be useful, but WITHOUT
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16 * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
19 * You should have received a copy of the GNU Affero General Public License along with
20 * this program; if not, see http://www.gnu.org/licenses or write to the Free
21 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
24 * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
25 * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
27 * The interactive user interfaces in modified source and object code versions
28 * of this program must display Appropriate Legal Notices, as required under
29 * Section 5 of the GNU Affero General Public License version 3.
31 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
32 * these Appropriate Legal Notices must retain the display of the "Powered by
33 * SugarCRM" logo. If the display of the logo is not reasonably feasible for
34 * technical reasons, the Appropriate Legal Notices must display the words
35 * "Powered by SugarCRM".
36 ********************************************************************************/
41 $layout_defs['Activities'] = array( // the key to the layout_defs must be the name of the module dir
42 'default_subpanel_define' => array(
43 'subpanel_title' => 'LBL_DEFAULT_SUBPANEL_TITLE',
44 'top_buttons' => array(
45 array('widget_class' => 'SubPanelTopCreateTaskButton'),
46 array('widget_class' => 'SubPanelTopScheduleMeetingButton'),
47 array('widget_class' => 'SubPanelTopScheduleCallButton'),
48 array('widget_class' => 'SubPanelTopComposeEmailButton'),
50 'list_fields' => array(
54 //TODO remove name=nothing and make it safe
55 //TODO update layout editor to match new file structure
58 'widget_class' => 'SubPanelIcon',
59 'module' => 'Meetings',
64 'widget_class' => 'SubPanelCloseButton',
65 'module' => 'Meetings',
66 'vname' => 'LBL_LIST_CLOSE',
71 'vname' => 'LBL_LIST_SUBJECT',
72 'widget_class' => 'SubPanelDetailViewLink',
77 'widget_class' => 'SubPanelActivitiesStatusField',
78 'vname' => 'LBL_LIST_STATUS',
82 'name' => 'contact_name',
83 'module' => 'Contacts',
84 'widget_class' => 'SubPanelDetailViewLink',
85 'target_record_key' => 'contact_id',
86 'target_module' => 'Contacts',
87 'vname' => 'LBL_LIST_CONTACT',
91 'name' => 'parent_name',
92 'module' => 'Meetings',
93 'vname' => 'LBL_LIST_RELATED_TO',
97 'name' => 'date_start',
98 //'db_alias_to' => 'the_date',
99 'vname' => 'LBL_LIST_DUE_DATE',
104 'widget_class' => 'SubPanelEditButton',
105 'module' => 'Meetings',
110 'widget_class' => 'SubPanelRemoveButton',
111 'linked_field' => 'meetings',
112 'module' => 'Meetings',
116 'where' => "(meetings.status='Planned')",
117 'order_by' => 'meetings.date_start',
123 'widget_class' => 'SubPanelIcon',
129 'widget_class' => 'SubPanelCloseButton',
131 'vname' => 'LBL_LIST_CLOSE',
136 'vname' => 'LBL_LIST_SUBJECT',
137 'widget_class' => 'SubPanelDetailViewLink',
142 'widget_class' => 'SubPanelActivitiesStatusField',
143 'vname' => 'LBL_LIST_STATUS',
147 'name' => 'contact_name',
148 'module' => 'Contacts',
149 'widget_class' => 'SubPanelDetailViewLink',
150 'target_record_key' => 'contact_id',
151 'target_module' => 'Contacts',
152 'vname' => 'LBL_LIST_CONTACT',
156 'name' => 'parent_name',
158 'vname' => 'LBL_LIST_RELATED_TO',
162 'name' => 'date_start',
163 //'db_alias_to' => 'the_date',
164 'vname' => 'LBL_LIST_DUE_DATE',
169 'widget_class' => 'SubPanelEditButton',
175 'widget_class' => 'SubPanelRemoveButton',
176 'linked_field' => 'tasks',
181 'where' => "(tasks.status='Not Started' OR tasks.status='In Progress' OR tasks.status='Pending Input')",
182 'order_by' => 'tasks.date_start',
188 'widget_class' => 'SubPanelIcon',
194 'widget_class' => 'SubPanelCloseButton',
196 'vname' => 'LBL_LIST_CLOSE',
201 'vname' => 'LBL_LIST_SUBJECT',
202 'widget_class' => 'SubPanelDetailViewLink',
207 'widget_class' => 'SubPanelActivitiesStatusField',
208 'vname' => 'LBL_LIST_STATUS',
212 'name' => 'contact_name',
213 'module' => 'Contacts',
214 'widget_class' => 'SubPanelDetailViewLink',
215 'target_record_key' => 'contact_id',
216 'target_module' => 'Contacts',
217 'vname' => 'LBL_LIST_CONTACT',
221 'name' => 'parent_name',
223 'vname' => 'LBL_LIST_RELATED_TO',
227 'name' => 'date_start',
228 //'db_alias_to' => 'the_date',
229 'vname'=>'LBL_LIST_DUE_DATE',
234 'widget_class' => 'SubPanelEditButton',
240 'widget_class' => 'SubPanelRemoveButton',
241 'linked_field' => 'calls',
246 'where' => "(calls.status='Planned')",
247 'order_by' => 'calls.date_start',