]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/modules/UpgradeWizard/SugarMerge/metadata_files/custom/modules/Contacts/metadata/editviewdefs.php
Added unit tests.
[Github/sugarcrm.git] / tests / modules / UpgradeWizard / SugarMerge / 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     ),
34     'panels' => 
35     array (
36       'lbl_contact_information' => 
37       array (
38         0 => 
39         array (
40           0 => 
41           array (
42             'name' => 'first_name',
43             '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}">',
44           ),
45           1 => 
46           array (
47             'name' => 'phone_work',
48             'comment' => 'Work phone number of the contact',
49             'label' => 'LBL_OFFICE_PHONE',
50           ),
51         ),
52         1 => 
53         array (
54           0 => 
55           array (
56             'name' => 'last_name',
57             'displayParams' => 
58             array (
59               'required' => true,
60             ),
61           ),
62           1 => 
63           array (
64             'name' => 'phone_mobile',
65             'comment' => 'Mobile phone number of the contact',
66             'label' => 'LBL_MOBILE_PHONE',
67           ),
68         ),
69         2 => 
70         array (
71           0 => 
72           array (
73             'name' => 'test_c',
74             'label' => 'LBL_TEST',
75           ),
76         ),
77         3 => 
78         array (
79           0 => 
80           array (
81             'name' => 'account_name',
82             'displayParams' => 
83             array (
84               'key' => 'billing',
85               'copy' => 'primary',
86               'billingKey' => 'primary',
87               'additionalFields' => 
88               array (
89                 'phone_office' => 'phone_work',
90               ),
91             ),
92           ),
93           1 => 
94           array (
95             'name' => 'phone_home',
96             'comment' => 'Home phone number of the contact',
97             'label' => 'LBL_HOME_PHONE',
98           ),
99         ),
100         4 => 
101         array (
102           0 => 
103           array (
104             'name' => 'lead_source',
105             'comment' => 'How did the contact come about',
106             'label' => 'LBL_LEAD_SOURCE',
107           ),
108           1 => 
109           array (
110             'name' => 'phone_other',
111             'comment' => 'Other phone number for the contact',
112             'label' => 'LBL_OTHER_PHONE',
113           ),
114         ),
115         5 => 
116         array (
117           0 => 
118           array (
119             'name' => 'campaign_name',
120             'comment' => 'The first campaign name for Contact (Meta-data only)',
121             'label' => 'LBL_CAMPAIGN',
122           ),
123           1 => 
124           array (
125             'name' => 'phone_fax',
126             'comment' => 'Contact fax number',
127             'label' => 'LBL_FAX_PHONE',
128           ),
129         ),
130         6 => 
131         array (
132           0 => 
133           array (
134             'name' => 'title',
135             'comment' => 'The title of the contact',
136             'label' => 'LBL_TITLE',
137           ),
138           1 => 
139           array (
140             'name' => 'birthdate',
141             'comment' => 'The birthdate of the contact',
142             'label' => 'LBL_BIRTHDATE',
143           ),
144         ),
145         7 => 
146         array (
147           0 => 
148           array (
149             'name' => 'department',
150             'comment' => 'The department of the contact',
151             'label' => 'LBL_DEPARTMENT',
152           ),
153         ),
154         8 => 
155         array (
156           0 => 
157           array (
158             'name' => 'report_to_name',
159             'label' => 'LBL_REPORTS_TO',
160           ),
161           1 => 
162           array (
163             'name' => 'assistant',
164             'comment' => 'Name of the assistant of the contact',
165             'label' => 'LBL_ASSISTANT',
166           ),
167         ),
168         9 => 
169         array (
170           0 => 
171           array (
172             'name' => 'sync_contact',
173             'comment' => 'Synch to outlook?  (Meta-Data only)',
174             'label' => 'LBL_SYNC_CONTACT',
175           ),
176           1 => 
177           array (
178             'name' => 'assistant_phone',
179             'comment' => 'Phone number of the assistant of the contact',
180             'label' => 'LBL_ASSISTANT_PHONE',
181           ),
182         ),
183         10 => 
184         array (
185           0 => 
186           array (
187             'name' => 'do_not_call',
188             'comment' => 'An indicator of whether contact can be called',
189             'label' => 'LBL_DO_NOT_CALL',
190           ),
191         ),
192         11 => 
193         array (
194           0 => 
195           array (
196             'name' => 'team_name',
197             'displayParams' => 
198             array (
199               'display' => true,
200             ),
201           ),
202         ),
203         12 => 
204         array (
205           0 => 
206           array (
207             'name' => 'assigned_user_name',
208             'label' => 'LBL_ASSIGNED_TO_NAME',
209           ),
210         ),
211       ),
212       'lbl_email_addresses' => 
213       array (
214         0 => 
215         array (
216           0 => 
217           array (
218             'name' => 'email1',
219             'studio' => 'false',
220             'label' => 'LBL_EMAIL_ADDRESS',
221           ),
222         ),
223       ),
224       'lbl_address_information' => 
225       array (
226         0 => 
227         array (
228           0 => 
229           array (
230             'name' => 'primary_address_street',
231             'hideLabel' => true,
232             'type' => 'address',
233             'displayParams' => 
234             array (
235               'key' => 'primary',
236               'rows' => 2,
237               'cols' => 30,
238               'maxlength' => 150,
239             ),
240           ),
241           1 => 
242           array (
243             'name' => 'alt_address_street',
244             'hideLabel' => true,
245             'type' => 'address',
246             'displayParams' => 
247             array (
248               'key' => 'alt',
249               'copy' => 'primary',
250               'rows' => 2,
251               'cols' => 30,
252               'maxlength' => 150,
253             ),
254           ),
255         ),
256       ),
257       'lbl_description_information' => 
258       array (
259         0 => 
260         array (
261           0 => 
262           array (
263             'name' => 'description',
264             'displayParams' => 
265             array (
266               'rows' => 6,
267               'cols' => 80,
268             ),
269             'label' => 'LBL_DESCRIPTION',
270           ),
271           
272           array (
273             'name' => 'custom_description_c',
274             'displayParams' => 
275             array (
276               'rows' => 10,
277               'cols' => 100,
278             ),
279             'label' => 'LBL_DESCRIPTION',
280           ),          
281         ),
282       ),
283     ),
284   ),
285 );
286 ?>