]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Activities/metadata/subpaneldefs.php
Release 6.5.0
[Github/sugarcrm.git] / modules / Activities / metadata / subpaneldefs.php
1 <?php
2 if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 /*********************************************************************************
4  * SugarCRM Community Edition is a customer relationship management program developed by
5  * SugarCRM, Inc. Copyright (C) 2004-2012 SugarCRM Inc.
6  * 
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.
13  * 
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
17  * details.
18  * 
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
22  * 02110-1301 USA.
23  * 
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.
26  * 
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.
30  * 
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  ********************************************************************************/
37
38
39
40
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'),
49                 ),
50                 'list_fields' => array(
51                         'Meetings' => array(
52                                 'columns' => array(
53                                         array(
54 //TODO remove name=nothing and make it safe
55 //TODO update layout editor to match new file structure
56                                         
57                                                 'name' => 'nothing',
58                                                 'widget_class' => 'SubPanelIcon',
59                                                 'module' => 'Meetings',
60                                                 'width' => '2%',
61                                         ),
62                                         array(
63                                                 'name' => 'name',
64                                                 'vname' => 'LBL_LIST_SUBJECT',
65                                                 'widget_class' => 'SubPanelDetailViewLink',
66                                                 'width' => '30%',
67                                         ),
68                                         array(
69                                                 'name' => 'status',
70                                                 'widget_class' => 'SubPanelActivitiesStatusField',
71                                                 'vname' => 'LBL_LIST_STATUS',
72                                                 'width' => '15%',
73                                         ),
74                                         array(
75                                                 'name' => 'contact_name',
76                                                 'module' => 'Contacts',
77                                                 'widget_class' => 'SubPanelDetailViewLink',
78                                                 'target_record_key' => 'contact_id',
79                                                 'target_module' => 'Contacts',
80                                                 'vname' => 'LBL_LIST_CONTACT',
81                                                 'width' => '11%',
82                                         ),
83                                         array(
84                                                 'name' => 'parent_name',
85                                                 'module' => 'Meetings',
86                                                 'vname' => 'LBL_LIST_RELATED_TO',
87                                                 'width' => '22%',
88                                         ),
89                                         array(
90                                                 'name' => 'date_start',
91                                                 //'db_alias_to' => 'the_date',
92                                                 'vname' => 'LBL_LIST_DUE_DATE',
93                                                 'width' => '10%',
94                                         ),
95                                         array(
96                                                 'name' => 'nothing',
97                                                 'widget_class' => 'SubPanelCloseButton',
98                                                 'module' => 'Meetings',
99                                                 'vname' => 'LBL_LIST_CLOSE',
100                                                 'width' => '6%',
101                                         ),
102                                         array(
103                                                 'name' => 'nothing',
104                                                 'widget_class' => 'SubPanelEditButton',
105                                                 'module' => 'Meetings',
106                                                 'width' => '2%',
107                                         ),
108                                         array(
109                                                 'name' => 'nothing',
110                                                 'widget_class' => 'SubPanelRemoveButton',
111                                                 'linked_field' => 'meetings',
112                                                 'module' => 'Meetings',
113                                                 'width' => '2%',
114                                         ),
115                                 ),
116                                 'where' => "(meetings.status='Planned')",
117                                 'order_by' => 'meetings.date_start',
118                         ),
119                         'Tasks' => array(
120                                 'columns' => array(
121                                         array(
122                                                 'name' => 'nothing',
123                                                 'widget_class' => 'SubPanelIcon',
124                                                 'module' => 'Tasks',
125                                                 'width' => '2%',
126                                         ),
127                                         array(
128                                                 'name' => 'nothing',
129                                                 'widget_class' => 'SubPanelCloseButton',
130                                                 'module' => 'Tasks',
131                                                 'vname' => 'LBL_LIST_CLOSE',
132                                                 'width' => '6%',
133                                         ),
134                                         array(
135                                                 'name' => 'name',
136                                                 'vname' => 'LBL_LIST_SUBJECT',
137                                                 'widget_class' => 'SubPanelDetailViewLink',
138                                                 'width' => '30%',
139                                         ),
140                                         array(
141                                                 'name' => 'status',
142                                                 'widget_class' => 'SubPanelActivitiesStatusField',
143                                                 'vname' => 'LBL_LIST_STATUS',
144                                                 'width' => '15%',
145                                         ),
146                                         array(
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',
153                                                 'width' => '11%',
154                                         ),
155                                         array(
156                                                 'name' => 'parent_name',
157                                                 'module' => 'Tasks',
158                                                 'vname' => 'LBL_LIST_RELATED_TO',
159                                                 'width' => '22%',
160                                         ),
161                                         array(
162                                                 'name' => 'date_start',
163                                                 //'db_alias_to' => 'the_date',
164                                                 'vname' => 'LBL_LIST_DUE_DATE',
165                                                 'width' => '10%',
166                                         ),
167                                         array(
168                                                 'name' => 'nothing',
169                                                 'widget_class' => 'SubPanelEditButton',
170                                                 'module' => 'Tasks',
171                                                 'width' => '2%',
172                                         ),
173                                         array(
174                                                 'name' => 'nothing',
175                                                 'widget_class' => 'SubPanelRemoveButton',
176                                                 'linked_field' => 'tasks',
177                                                 'module' => 'Tasks',
178                                                 'width' => '2%',
179                                         ),
180                                 ),
181                                 'where' => "(tasks.status='Not Started' OR tasks.status='In Progress' OR tasks.status='Pending Input')",
182                                 'order_by' => 'tasks.date_start',
183                         ),
184                         'Calls' => array(
185                                 'columns' => array(
186                                         array(
187                                                 'name' => 'nothing',
188                                                 'widget_class' => 'SubPanelIcon',
189                                                 'module' => 'Calls',
190                                                 'width' => '2%',
191                                         ),
192                                         array(
193                                                 'name' => 'nothing',
194                                                 'widget_class' => 'SubPanelCloseButton',
195                                                 'module' => 'Calls',
196                                                 'vname' => 'LBL_LIST_CLOSE',
197                                                 'width' => '6%',
198                                         ),
199                                         array(
200                                                 'name' => 'name',
201                                                 'vname' => 'LBL_LIST_SUBJECT',
202                                                 'widget_class' => 'SubPanelDetailViewLink',
203                                                 'width' => '30%',
204                                         ),
205                                         array(
206                                                 'name' => 'status',
207                                                 'widget_class' => 'SubPanelActivitiesStatusField',
208                                                 'vname' => 'LBL_LIST_STATUS',
209                                                 'width' => '15%',
210                                         ),
211                                         array(
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',
218                                                 'width' => '11%',
219                                         ),
220                                         array(
221                                                 'name' => 'parent_name',
222                                                 'module' => 'Calls',
223                                                 'vname' => 'LBL_LIST_RELATED_TO',
224                                                 'width' => '20%',
225                                         ),
226                                         array(
227                                                 'name' => 'date_start',
228                                                 //'db_alias_to' => 'the_date',
229                                                 'vname'=>'LBL_LIST_DUE_DATE',
230                                                 'width' => '22%',
231                                         ),
232                                         array(
233                                                 'name' => 'nothing',
234                                                 'widget_class' => 'SubPanelEditButton',
235                                                 'module' => 'Calls',
236                                                 'width' => '2%',
237                                         ),
238                                         array(
239                                                 'name' => 'nothing',
240                                                 'widget_class' => 'SubPanelRemoveButton',
241                                                 'linked_field' => 'calls',
242                                                 'module' => 'Calls',
243                                                 'width' => '2%',
244                                         ),
245                                 ),
246                                 'where' => "(calls.status='Planned')",
247                                 'order_by' => 'calls.date_start',
248                         ),
249                 ),
250         ),
251 );
252 ?>