]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/modules/UpgradeWizard/SugarMerge/siupgrade_metadata_files/custom/modules/Accounts/metadata/detailviewdefs.php
Release 6.2.0
[Github/sugarcrm.git] / tests / modules / UpgradeWizard / SugarMerge / siupgrade_metadata_files / custom / 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-2011 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 = array (
38   'Accounts' => 
39   array (
40     'DetailView' => 
41     array (
42       'templateMeta' => 
43       array (
44         'form' => 
45         array (
46           'buttons' => 
47           array (
48             0 => 'EDIT',
49             1 => 'DUPLICATE',
50             2 => 'DELETE',
51             3 => 'FIND_DUPLICATES',
52           ),
53         ),
54         'maxColumns' => '2',
55         'widths' => 
56         array (
57           0 => 
58           array (
59             'label' => '10',
60             'field' => '30',
61           ),
62           1 => 
63           array (
64             'label' => '10',
65             'field' => '30',
66           ),
67         ),
68         'includes' => 
69         array (
70           0 => 
71           array (
72             'file' => 'modules/Accounts/Account.js',
73           ),
74         ),
75       ),
76       'panels' => 
77       array (
78         'DEFAULT' => 
79         array (
80           0 => 
81           array (
82             0 => 
83             array (
84               'name' => 'name',
85               'label' => 'LBL_NAME',
86               'displayParams' => 
87               array (
88               ),
89             ),
90             1 => 
91             array (
92               'name' => 'subscription_expiration_c',
93               'label' => 'Subscription_Expiration__c',
94             ),
95           ),
96           1 => 
97           array (
98             0 => 
99             array (
100               'name' => 'high_prio_c',
101               'label' => 'High_Priority_Account_c',
102             ),
103             1 => 
104             array (
105               'name' => 'phone_office',
106               'label' => 'LBL_PHONE_OFFICE',
107             ),
108           ),
109           2 => 
110           array (
111             0 => 
112             array (
113               'name' => 'website',
114               'type' => 'link',
115               'label' => 'LBL_WEBSITE',
116               'customCode' => '<a href="http://{$fields.website.value}" target="_blank">{$fields.website.value}</a>',
117             ),
118             1 => 
119             array (
120               'name' => 'phone_fax',
121               'label' => 'LBL_PHONE_FAX',
122             ),
123           ),
124           3 => 
125           array (
126             0 => 
127             array (
128               'name' => 'ticker_symbol',
129               'label' => 'LBL_TICKER_SYMBOL',
130             ),
131             1 => 
132             array (
133               'name' => 'phone_alternate',
134               'label' => 'LBL_OTHER_PHONE',
135             ),
136           ),
137           4 => 
138           array (
139             0 => 
140             array (
141               'name' => 'parent_name',
142               'label' => 'LBL_MEMBER_OF',
143             ),
144             1 => 
145             array (
146               'name' => 'email1',
147               'label' => 'LBL_EMAIL',
148             ),
149           ),
150           5 => 
151           array (
152             0 => 
153             array (
154               'name' => 'employees',
155               'label' => 'LBL_EMPLOYEES',
156             ),
157             1 => 
158             array (
159               'name' => 'LBL_FILLER',
160               'label' => 'LBL_FILLER',
161             ),
162           ),
163           6 => 
164           array (
165             0 => 
166             array (
167               'name' => 'ownership',
168               'label' => 'LBL_OWNERSHIP',
169             ),
170             1 => 
171             array (
172               'name' => 'rating',
173               'label' => 'LBL_RATING',
174             ),
175           ),
176           7 => 
177           array (
178             0 => 
179             array (
180               'name' => 'industry',
181               'label' => 'LBL_INDUSTRY',
182             ),
183             1 => 
184             array (
185               'name' => 'sic_code',
186               'label' => 'LBL_SIC_CODE',
187             ),
188           ),
189           8 => 
190           array (
191             0 => 
192             array (
193               'name' => 'account_type',
194               'label' => 'LBL_TYPE',
195             ),
196             1 => 
197             array (
198               'name' => 'annual_revenue',
199               'label' => 'LBL_ANNUAL_REVENUE',
200             ),
201           ),
202           9 => 
203           array (
204             0 => 
205             array (
206               'name' => 'reference_code_c',
207               'label' => 'LBL_REFERENCE_CODE',
208             ),
209             1 => 
210             array (
211               'name' => 'ref_code_expiration_c',
212               'label' => 'LBL_REF_CODE_EXPIRATION',
213             ),
214           ),
215           10 => 
216           array (
217             0 => 
218             array (
219               'name' => 'contract_version',
220               'label' => 'LBL_CONTRACT_VERSION',
221             ),
222             1 => 
223             array (
224               'name' => 'code_customized_by_c',
225               'label' => 'LBL_CODE_CUSTOMIZED_BY',
226             ),
227           ),
228           11 => 
229           array (
230             0 => 
231             array (
232               'name' => 'resell_discount',
233               'label' => 'LBL_RESELL_DISCOUNT',
234             ),
235             1 => 
236             array (
237               'name' => 'Support_Service_Level_c',
238               'label' => 'Support Service Level_0',
239             ),
240           ),
241           12 => 
242           array (
243             0 => NULL,
244             1 => 
245             array (
246               'name' => 'deployment_type_c',
247               'label' => 'Deployment_Type__c',
248             ),
249           ),
250           13 => 
251           array (
252             0 => 
253             array (
254               'name' => 'Partner_Type_c',
255               'label' => 'partner_Type__c',
256             ),
257             1 => 
258             array (
259               'default' => 'false',
260               'customCode' => '{ if $fields.deployment_type_c.value == "ondemand" || $fields.deployment_type_c.value == "ondemand_ded" || $fields.deployment_type_c.value == ""}<a href="http://www.sugarcrm.com/sugarshop/ion3-tools/display.php?arid={$id}" onclick="window.open(this.href,\'window\',\'width=350,height=90,resizable,menubar\'); return false;">On-Demand Account URL</a>{/if}',
261             ),
262           ),
263           14 => 
264           array (
265             0 => 
266             array (
267               'name' => 'auto_send_renewal_emails_c',
268               'label' => 'LBL_AUTO_SEND_RENEWAL_EMAILS',
269             ),
270             1 => 
271             array (
272               'name' => 'renewal_contact_c',
273               'label' => 'LBL_RENEWAL_CONTACT_C',
274             ),
275           ),
276           15 => 
277           array (
278             0 => 
279             array (
280               'name' => 'team_name',
281               'label' => 'LBL_LIST_TEAM',
282             ),
283             1 => 
284             array (
285               'name' => 'date_modified',
286               'label' => 'LBL_DATE_MODIFIED',
287               'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}',
288             ),
289           ),
290           16 => 
291           array (
292             0 => 
293             array (
294               'name' => 'assigned_user_name',
295               'label' => 'LBL_ASSIGNED_TO',
296             ),
297             1 => 
298             array (
299               'name' => 'date_entered',
300               'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}',
301               'label' => 'LBL_DATE_ENTERED',
302             ),
303           ),
304           17 => 
305           array (
306             0 => 
307             array (
308               'name' => 'billing_address_street',
309               'label' => 'LBL_BILLING_ADDRESS',
310               'type' => 'address',
311               'displayParams' => 
312               array (
313                 'key' => 'billing',
314               ),
315             ),
316             1 => 
317             array (
318               'name' => 'shipping_address_street',
319               'label' => 'LBL_SHIPPING_ADDRESS',
320               'type' => 'address',
321               'displayParams' => 
322               array (
323                 'key' => 'shipping',
324               ),
325             ),
326           ),
327           18 => 
328           array (
329             0 => 
330             array (
331               'name' => 'description',
332               'label' => 'LBL_DESCRIPTION',
333             ),
334           ),
335           19 => 
336           array (
337             0 => 
338             array (
339               'name' => 'id',
340               'type' => 'link',
341               'label' => 'LBL_USAGE_GRAPH',
342               'customCode' => '<a href="https://sugarinternal.sugarondemand.com/index.php?action=SubscriptionUsageReport&module=Accounts&record={$fields.id.value}">Usage Graph</a>',
343             ),
344           ),
345         ),
346         'lbl_panel7' => 
347         array (
348           0 => 
349           array (
350             0 => 
351             array (
352               'name' => 'customer_reference_c',
353               'label' => 'LBL_CUSTOMER_REFERENCE',
354             ),
355             1 => 
356             array (
357               'name' => 'type_of_reference_c',
358               'label' => 'LBL_TYPE_OF_REFERENCE',
359             ),
360           ),
361           1 => 
362           array (
363             0 => 
364             array (
365               'name' => 'reference_contact_c',
366               'label' => 'LBL_REFERENCE_CONTACT',
367             ),
368             1 => 
369             array (
370               'name' => 'last_used_as_reference_c',
371               'label' => 'LBL_LAST_USED_AS_REFERENCE',
372             ),
373           ),
374           2 => 
375           array (
376             0 => NULL,
377             1 => 
378             array (
379               'name' => 'reference_status_c',
380               'label' => 'LBL_REFERENCE_STATUS',
381             ),
382           ),
383           3 => 
384           array (
385             0 => 
386             array (
387               'name' => 'reference_notes_c',
388               'label' => 'LBL_REFERENCE_NOTES',
389             ),
390             1 => 
391             array (
392               'name' => 'last_used_reference_notes_c',
393               'label' => 'LBL_LAST_USED_REFERENCE_NOTES',
394             ),
395           ),
396         ),
397         'LBL_PANEL1' => 
398         array (
399           0 => 
400           array (
401             0 => 
402             array (
403               'name' => 'training_credits_purchased_c',
404               'label' => 'Learning_Credits_Purchased__c',
405             ),
406             1 => 
407             array (
408               'name' => 'remaining_training_credits_c',
409               'label' => 'Remaining_Learning_Credits__c',
410             ),
411           ),
412           1 => 
413           array (
414             0 => 
415             array (
416               'name' => 'training_credits_pur_date_c',
417               'label' => 'Most_Recent_Credits_Purchase_Date_c',
418             ),
419             1 => 
420             array (
421               'name' => 'training_credits_exp_date_c',
422               'label' => 'Upcoming_Credits_Expiration_Date__c',
423             ),
424           ),
425         ),
426         'LBL_PANEL6' => 
427         array (
428           0 => 
429           array (
430             0 => 
431             array (
432               'name' => 'support_cases_purchased_c',
433               'label' => 'Support_Cases_Purchased__c',
434             ),
435             1 => 
436             array (
437               'name' => 'remaining_support_cases_c',
438               'label' => 'Remaining_Support_Cases__c',
439             ),
440           ),
441         ),
442         'LBL_PANEL4' => 
443         array (
444           0 => 
445           array (
446             0 => 
447             array (
448               'name' => 'dce_auth_user_c',
449               'label' => 'LBL_DCE_AUTH_USER',
450             ),
451             1 => 
452             array (
453               'name' => 'dce_app_id_c',
454               'label' => 'LBL_DCE_APP_ID',
455             ),
456           ),
457         ),
458       ),
459     ),
460   ),
461 );
462 ?>