]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/modules/UpgradeWizard/SugarMerge/ce_metadata_files/custom/modules/Contacts/metadata/editviewdefs.php
Added unit tests.
[Github/sugarcrm.git] / tests / modules / UpgradeWizard / SugarMerge / ce_metadata_files / custom / modules / Contacts / metadata / editviewdefs.php
1 <?php
2 $viewdefs ['Contacts'] = 
3 array (
4   'EditView' => 
5   array (
6     'templateMeta' => 
7     array (
8       'form' => 
9       array (
10         'hidden' => 
11         array (
12           0 => '<input type="hidden" name="opportunity_id" value="{$smarty.request.opportunity_id}">',
13           1 => '<input type="hidden" name="case_id" value="{$smarty.request.case_id}">',
14           2 => '<input type="hidden" name="bug_id" value="{$smarty.request.bug_id}">',
15           3 => '<input type="hidden" name="email_id" value="{$smarty.request.email_id}">',
16           4 => '<input type="hidden" name="inbound_email_id" value="{$smarty.request.inbound_email_id}">',
17         ),
18       ),
19       'maxColumns' => '2',
20       'widths' => 
21       array (
22         0 => 
23         array (
24           'label' => '10',
25           'field' => '30',
26         ),
27         1 => 
28         array (
29           'label' => '10',
30           'field' => '30',
31         ),
32       ),
33       'useTabs' => false,
34     ),
35     'panels' => 
36     array (
37       'lbl_contact_information' => 
38       array (
39         0 => 
40         array (
41           0 => 
42           array (
43             'name' => 'first_name',
44             'customCode' => '{html_options name="salutation" options=$fields.salutation.options selected=$fields.salutation.value}&nbsp;<input name="first_name" size="25" maxlength="25" type="text" value="{$fields.first_name.value}">',
45           ),
46         ),
47         1 => 
48         array (
49           0 => 
50           array (
51             'name' => 'last_name',
52             'displayParams' => 
53             array (
54               'required' => true,
55             ),
56           ),
57           1 => 
58           array (
59             'name' => 'phone_mobile',
60             'comment' => 'Mobile phone number of the contact',
61             'label' => 'LBL_MOBILE_PHONE',
62           ),
63         ),
64         2 => 
65         array (
66           0 => 
67           array (
68             'name' => 'title',
69             'comment' => 'The title of the contact',
70             'label' => 'LBL_TITLE',
71           ),
72           1 => 
73           array (
74             'name' => 'phone_work',
75             'comment' => 'Work phone number of the contact',
76             'label' => 'LBL_OFFICE_PHONE',
77           ),
78         ),
79         3 => 
80         array (
81           0 => 
82           array (
83             'name' => 'department',
84             'comment' => 'The department of the contact',
85             'label' => 'LBL_DEPARTMENT',
86           ),
87           1 => 
88           array (
89             'name' => 'phone_fax',
90             'comment' => 'Contact fax number',
91             'label' => 'LBL_FAX_PHONE',
92           ),
93         ),
94         4 => 
95         array (
96           0 => 
97           array (
98             'name' => 'account_name',
99             'displayParams' => 
100             array (
101               'key' => 'billing',
102               'copy' => 'primary',
103               'billingKey' => 'primary',
104               'additionalFields' => 
105               array (
106                 'phone_office' => 'phone_work',
107               ),
108             ),
109           ),
110         ),
111         5 => 
112         array (
113           0 => 
114           array (
115             'name' => 'primary_address_street',
116             'hideLabel' => true,
117             'type' => 'address',
118             'displayParams' => 
119             array (
120               'key' => 'primary',
121               'rows' => 2,
122               'cols' => 30,
123               'maxlength' => 150,
124             ),
125           ),
126           1 => 
127           array (
128             'name' => 'alt_address_street',
129             'hideLabel' => true,
130             'colspan' => 2,
131             'type' => 'address',
132             'displayParams' => 
133             array (
134               'key' => 'alt',
135               'copy' => 'primary',
136               'rows' => 2,
137               'cols' => 30,
138               'maxlength' => 150,
139             ),
140           ),
141         ),
142         6 => 
143         array (
144           0 => 
145           array (
146             'name' => 'email1',
147             'studio' => 'false',
148             'label' => 'LBL_EMAIL_ADDRESS',
149           ),
150         ),
151         7 => 
152         array (
153           0 => 
154           array (
155             'name' => 'description',
156             'label' => 'LBL_DESCRIPTION',
157           ),
158         ),
159       ),
160       'lbl_editview_panel1' => 
161       array (
162         0 => 
163         array (
164           0 => 
165           array (
166             'name' => 'test_c',
167             'label' => 'LBL_TEST',
168           ),
169           1 => 
170           array (
171             'name' => 'test2_c',
172             'label' => 'LBL_TEST2',
173           ),
174         ),
175       ),
176       'LBL_PANEL_ADVANCED' => 
177       array (
178         0 => 
179         array (
180           0 => 
181           array (
182             'name' => 'report_to_name',
183             'label' => 'LBL_REPORTS_TO',
184           ),
185           1 => 
186           array (
187             'name' => 'sync_contact',
188             'comment' => 'Synch to outlook?  (Meta-Data only)',
189             'label' => 'LBL_SYNC_CONTACT',
190           ),
191         ),
192         1 => 
193         array (
194           0 => 
195           array (
196             'name' => 'lead_source',
197             'comment' => 'How did the contact come about',
198             'label' => 'LBL_LEAD_SOURCE',
199           ),
200           1 => 
201           array (
202             'name' => 'do_not_call',
203             'comment' => 'An indicator of whether contact can be called',
204             'label' => 'LBL_DO_NOT_CALL',
205           ),
206         ),
207         2 => 
208         array (
209           0 => 
210           array (
211             'name' => 'campaign_name',
212             'comment' => 'The first campaign name for Contact (Meta-data only)',
213             'label' => 'LBL_CAMPAIGN',
214           ),
215         ),
216       ),
217       'LBL_PANEL_ASSIGNMENT' => 
218       array (
219         0 => 
220         array (
221           0 => 
222           array (
223             'name' => 'assigned_user_name',
224             'label' => 'LBL_ASSIGNED_TO_NAME',
225           ),
226         ),
227       ),
228     ),
229   ),
230 );
231 ?>