]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Accounts/metadata/detailviewdefs.php
Release 6.5.0
[Github/sugarcrm.git] / modules / Accounts / metadata / detailviewdefs.php
1 <?php
2 /*********************************************************************************
3  * SugarCRM Community Edition is a customer relationship management program developed by
4  * SugarCRM, Inc. Copyright (C) 2004-2012 SugarCRM Inc.
5  * 
6  * This program is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU Affero General Public License version 3 as published by the
8  * Free Software Foundation with the addition of the following permission added
9  * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
10  * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
11  * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
12  * 
13  * This program is distributed in the hope that it will be useful, but WITHOUT
14  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15  * FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
16  * details.
17  * 
18  * You should have received a copy of the GNU Affero General Public License along with
19  * this program; if not, see http://www.gnu.org/licenses or write to the Free
20  * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21  * 02110-1301 USA.
22  * 
23  * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
24  * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
25  * 
26  * The interactive user interfaces in modified source and object code versions
27  * of this program must display Appropriate Legal Notices, as required under
28  * Section 5 of the GNU Affero General Public License version 3.
29  * 
30  * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
31  * these Appropriate Legal Notices must retain the display of the "Powered by
32  * SugarCRM" logo. If the display of the logo is not reasonably feasible for
33  * technical reasons, the Appropriate Legal Notices must display the words
34  * "Powered by SugarCRM".
35  ********************************************************************************/
36
37 $viewdefs['Accounts']['DetailView'] = array(
38     'templateMeta' => array('form' => array('buttons'=>array('EDIT', 
39     'DUPLICATE', 
40     'DELETE', 
41     'FIND_DUPLICATES',
42 )),
43                             'maxColumns' => '2',
44                             'widths' => array(
45                                             array('label' => '10', 'field' => '30'), 
46                                             array('label' => '10', 'field' => '30')
47                                             ),
48                             'includes'=> array(
49                                             array('file'=>'modules/Accounts/Account.js'),
50                                          ),                                            
51                            ),    
52     'panels' => 
53     array (
54       'lbl_account_information' => 
55       array (
56         array (
57           array (
58             'name' => 'name',
59             'comment' => 'Name of the Company',
60             'label' => 'LBL_NAME',
61             'displayParams' => 
62               array (
63                 'enableConnectors' => true,
64                 'module' => 'Accounts',
65                 'connectors' => 
66                 array (
67                   0 => 'ext_rest_linkedin',
68                 ),
69             ),          
70           ),
71           array (
72             'name' => 'phone_office',
73             'comment' => 'The office phone number',
74             'label' => 'LBL_PHONE_OFFICE',
75           ),
76         ),
77
78         array (
79
80           array (
81             'name' => 'website',
82             'type' => 'link',
83             'label' => 'LBL_WEBSITE',
84             'displayParams' => 
85             array (
86               'link_target' => '_blank',
87             ),
88           ),
89           array (
90             'name' => 'phone_fax',
91             'comment' => 'The fax phone number of this company',
92             'label' => 'LBL_FAX',
93           ),
94         ),
95
96         array (
97           array (
98             'name' => 'billing_address_street',
99             'label' => 'LBL_BILLING_ADDRESS',
100             'type' => 'address',
101             'displayParams' => 
102             array (
103               'key' => 'billing',
104             ),
105           ),
106
107           array (
108             'name' => 'shipping_address_street',
109             'label' => 'LBL_SHIPPING_ADDRESS',
110             'type' => 'address',
111             'displayParams' => 
112             array (
113               'key' => 'shipping',
114             ),
115           ),
116         ),
117
118         array (
119           array (
120             'name' => 'email1',
121             'studio' => 'false',
122             'label' => 'LBL_EMAIL',
123           ),
124         ),
125         array (
126           array (
127             'name' => 'description',
128             'comment' => 'Full text of the note',
129             'label' => 'LBL_DESCRIPTION',
130           ),
131         ),
132       ),
133       'LBL_PANEL_ADVANCED' => 
134       array (
135
136         array (
137           array (
138             'name' => 'account_type',
139             'comment' => 'The Company is of this type',
140             'label' => 'LBL_TYPE',
141           ),
142           array (
143             'name' => 'industry',
144             'comment' => 'The company belongs in this industry',
145             'label' => 'LBL_INDUSTRY',
146           ),
147         ),
148
149         array (
150           array (
151             'name' => 'annual_revenue',
152             'comment' => 'Annual revenue for this company',
153             'label' => 'LBL_ANNUAL_REVENUE',
154           ),
155           array (
156             'name' => 'employees',
157             'comment' => 'Number of employees, varchar to accomodate for both number (100) or range (50-100)',
158             'label' => 'LBL_EMPLOYEES',
159           ),
160         ),
161
162         array (
163           array (
164             'name' => 'sic_code',
165             'comment' => 'SIC code of the account',
166             'label' => 'LBL_SIC_CODE',
167           ),
168           array (
169             'name' => 'ticker_symbol',
170             'comment' => 'The stock trading (ticker) symbol for the company',
171             'label' => 'LBL_TICKER_SYMBOL',
172           ),
173         ),
174
175         array (
176           array (
177             'name' => 'parent_name',
178             'label' => 'LBL_MEMBER_OF',
179           ),
180           array (
181             'name' => 'ownership',
182             'comment' => '',
183             'label' => 'LBL_OWNERSHIP',
184           ),
185         ),
186
187         array (
188           'campaign_name',
189         
190           array (
191             'name' => 'rating',
192             'comment' => 'An arbitrary rating for this company for use in comparisons with others',
193             'label' => 'LBL_RATING',
194           ),
195         ),
196       ),
197       'LBL_PANEL_ASSIGNMENT' => 
198       array (
199         array (
200           array (
201             'name' => 'assigned_user_name',
202             'label' => 'LBL_ASSIGNED_TO',
203           ),
204           array (
205             'name' => 'date_modified',
206             'label' => 'LBL_DATE_MODIFIED',
207             'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}',
208           ),
209         ),
210         array (
211           array (
212             'name' => 'date_entered',
213             'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}',
214           ),
215         ),
216       ),
217     )
218 );
219 ?>