]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/modules/UpgradeWizard/SugarMerge/ce_metadata_files/custom/modules/Contacts/metadata/detailviewdefs.php
Added unit tests.
[Github/sugarcrm.git] / tests / modules / UpgradeWizard / SugarMerge / ce_metadata_files / custom / modules / Contacts / metadata / detailviewdefs.php
1 <?php
2 $viewdefs ['Contacts'] = 
3 array (
4   'DetailView' => 
5   array (
6     'templateMeta' => 
7     array (
8       'form' => 
9       array (
10         'buttons' => 
11         array (
12           0 => 'EDIT',
13           1 => 'DUPLICATE',
14           2 => 'DELETE',
15           3 => 'FIND_DUPLICATES',
16           4 => 
17           array (
18             'customCode' => '<input title="{$APP.LBL_MANAGE_SUBSCRIPTIONS}" class="button" onclick="this.form.return_module.value=\'Contacts\'; this.form.return_action.value=\'DetailView\'; this.form.return_id.value=\'{$fields.id.value}\'; this.form.action.value=\'Subscriptions\'; this.form.module.value=\'Campaigns\'; this.form.module_tab.value=\'Contacts\';" type="submit" name="Manage Subscriptions" value="{$APP.LBL_MANAGE_SUBSCRIPTIONS}">',
19           ),
20         ),
21       ),
22       'maxColumns' => '2',
23       'widths' => 
24       array (
25         0 => 
26         array (
27           'label' => '10',
28           'field' => '30',
29         ),
30         1 => 
31         array (
32           'label' => '10',
33           'field' => '30',
34         ),
35       ),
36       'includes' => 
37       array (
38         0 => 
39         array (
40           'file' => 'modules/Leads/Lead.js',
41         ),
42       ),
43       'useTabs' => false,
44     ),
45     'panels' => 
46     array (
47       'lbl_contact_information' => 
48       array (
49         0 => 
50         array (
51           0 => 
52           array (
53             'name' => 'full_name',
54             'label' => 'LBL_NAME',
55           ),
56         ),
57         1 => 
58         array (
59           0 => 
60           array (
61             'name' => 'phone_mobile',
62             'label' => 'LBL_MOBILE_PHONE',
63           ),
64           1 => 
65           array (
66             'name' => 'title',
67             'comment' => 'The title of the contact',
68             'label' => 'LBL_TITLE',
69           ),
70         ),
71         2 => 
72         array (
73           0 => 
74           array (
75             'name' => 'department',
76             'comment' => 'The department of the contact',
77             'label' => 'LBL_DEPARTMENT',
78           ),
79           1 => 
80           array (
81             'name' => 'phone_work',
82             'label' => 'LBL_OFFICE_PHONE',
83           ),
84         ),
85         3 => 
86         array (
87           0 => 
88           array (
89             'name' => 'account_name',
90             'label' => 'LBL_ACCOUNT_NAME',
91             'displayParams' => 
92             array (
93               'enableConnectors' => true,
94               'module' => 'Contacts',
95               'connectors' => 
96               array (
97                 0 => 'ext_rest_linkedin',
98               ),
99             ),
100           ),
101           1 => 
102           array (
103             'name' => 'phone_fax',
104             'label' => 'LBL_FAX_PHONE',
105           ),
106         ),
107         4 => 
108         array (
109           0 => 
110           array (
111             'name' => 'primary_address_street',
112             'label' => 'LBL_PRIMARY_ADDRESS',
113             'type' => 'address',
114             'displayParams' => 
115             array (
116               'key' => 'primary',
117             ),
118           ),
119           1 => 
120           array (
121             'name' => 'alt_address_street',
122             'label' => 'LBL_ALTERNATE_ADDRESS',
123             'type' => 'address',
124             'displayParams' => 
125             array (
126               'key' => 'alt',
127             ),
128           ),
129         ),
130         5 => 
131         array (
132           0 => 
133           array (
134             'name' => 'email1',
135             'studio' => 'false',
136             'label' => 'LBL_EMAIL_ADDRESS',
137           ),
138         ),
139         6 => 
140         array (
141           0 => 
142           array (
143             'name' => 'description',
144             'comment' => 'Full text of the note',
145             'label' => 'LBL_DESCRIPTION',
146           ),
147         ),
148       ),
149       'lbl_detailview_panel1' => 
150       array (
151         0 => 
152         array (
153           0 => 
154           array (
155             'name' => 'test_c',
156             'label' => 'LBL_TEST',
157           ),
158           1 => 
159           array (
160             'name' => 'test2_c',
161             'label' => 'LBL_TEST2',
162           ),
163         ),
164       ),
165       'LBL_PANEL_ADVANCED' => 
166       array (
167         0 => 
168         array (
169           0 => 
170           array (
171             'name' => 'report_to_name',
172             'label' => 'LBL_REPORTS_TO',
173           ),
174           1 => 
175           array (
176             'name' => 'sync_contact',
177             'comment' => 'Synch to outlook?  (Meta-Data only)',
178             'label' => 'LBL_SYNC_CONTACT',
179           ),
180         ),
181         1 => 
182         array (
183           0 => 
184           array (
185             'name' => 'lead_source',
186             'comment' => 'How did the contact come about',
187             'label' => 'LBL_LEAD_SOURCE',
188           ),
189           1 => 
190           array (
191             'name' => 'do_not_call',
192             'comment' => 'An indicator of whether contact can be called',
193             'label' => 'LBL_DO_NOT_CALL',
194           ),
195         ),
196         2 => 
197         array (
198           0 => 
199           array (
200             'name' => 'campaign_name',
201             'label' => 'LBL_CAMPAIGN',
202           ),
203         ),
204       ),
205       'LBL_PANEL_ASSIGNMENT' => 
206       array (
207         0 => 
208         array (
209           0 => 
210           array (
211             'name' => 'assigned_user_name',
212             'label' => 'LBL_ASSIGNED_TO_NAME',
213           ),
214           1 => 
215           array (
216             'name' => 'date_modified',
217             'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}',
218             'label' => 'LBL_DATE_MODIFIED',
219           ),
220         ),
221         1 => 
222         array (
223           0 => 
224           array (
225             'name' => 'date_entered',
226             'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}',
227             'label' => 'LBL_DATE_ENTERED',
228           ),
229         ),
230       ),
231     ),
232   ),
233 );
234 ?>