]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/ProjectTask/metadata/subpaneldefs.php
Release 6.5.0
[Github/sugarcrm.git] / modules / ProjectTask / 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['ProjectTask'] = array(
42         // list of what Subpanels to show in the DetailView
43         'subpanel_setup' => array(
44
45         'activities' => array(
46                         'order' => 20,
47                         'sort_order' => 'desc',
48                         'sort_by' => 'date_start',
49                         'title_key' => 'LBL_ACTIVITIES_SUBPANEL_TITLE',
50                         'type' => 'collection',
51                         'subpanel_name' => 'activities',   //this values is not associated with a physical file.
52                         'module'=>'Activities',
53
54                         'top_buttons' => array(
55                                 array('widget_class' => 'SubPanelTopCreateTaskButton'),
56                                 array('widget_class' => 'SubPanelTopScheduleMeetingButton'),
57                                 array('widget_class' => 'SubPanelTopScheduleCallButton'),
58                                 array('widget_class' => 'SubPanelTopComposeEmailButton'),
59                         ),
60
61                         'collection_list' => array(
62                                 'meetings' => array(
63                                         'module' => 'Meetings',
64                                         'subpanel_name' => 'ForActivities',
65                                         'get_subpanel_data' => 'meetings',
66                                 ),
67                                 'tasks' => array(
68                                         'module' => 'Tasks',
69                                         'subpanel_name' => 'ForActivities',
70                                         'get_subpanel_data' => 'tasks',
71                                 ),
72                                 'calls' => array(
73                                         'module' => 'Calls',
74                                         'subpanel_name' => 'ForActivities',
75                                         'get_subpanel_data' => 'calls',
76                                 ),
77                         )
78                 ),
79
80                 'history' => array(
81                         'order' => 30,
82                         'sort_order' => 'desc',
83                         'sort_by' => 'date_entered',
84                         'title_key' => 'LBL_HISTORY_SUBPANEL_TITLE',
85                         'type' => 'collection',
86                         'subpanel_name' => 'history',   //this values is not associated with a physical file.
87                         'module'=>'Activities',
88
89                         'top_buttons' => array(
90                         array('widget_class' => 'SubPanelTopCreateNoteButton'),
91                         array('widget_class' => 'SubPanelTopArchiveEmailButton'),
92             array('widget_class' => 'SubPanelTopSummaryButton'),
93                         ),
94
95                         'collection_list' => array(
96                                 'meetings' => array(
97                                         'module' => 'Meetings',
98                                         'subpanel_name' => 'ForHistory',
99                                         'get_subpanel_data' => 'meetings',
100                                 ),
101                                 'tasks' => array(
102                                         'module' => 'Tasks',
103                                         'subpanel_name' => 'ForHistory',
104                                         'get_subpanel_data' => 'tasks',
105                                 ),
106                                 'calls' => array(
107                                         'module' => 'Calls',
108                                         'subpanel_name' => 'ForHistory',
109                                         'get_subpanel_data' => 'calls',
110                                 ),
111                                 'notes' => array(
112                                         'module' => 'Notes',
113                                         'subpanel_name' => 'ForHistory',
114                                         'get_subpanel_data' => 'notes',
115                                 ),
116                                 'emails' => array(
117                                         'module' => 'Emails',
118                                         'subpanel_name' => 'ForHistory',
119                                         'get_subpanel_data' => 'emails',
120                                 ),
121                         )
122                 ),
123         ),
124 );
125 ?>