]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/modules/UpgradeWizard/SugarMerge/siupgrade_metadata_files/custom/modules/Contacts/metadata/editviewdefs.php
Added unit tests.
[Github/sugarcrm.git] / tests / modules / UpgradeWizard / SugarMerge / siupgrade_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             'label' => 'LBL_FIRST_NAME',
45           ),
46           1 => 
47           array (
48             'name' => 'phone_work',
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             'label' => 'LBL_LAST_NAME',
62           ),
63           1 => 
64           array (
65             'name' => 'phone_mobile',
66             'label' => 'LBL_MOBILE_PHONE',
67           ),
68         ),
69         2 => 
70         array (
71           0 => 
72           array (
73             'name' => 'account_name',
74             'displayParams' => 
75             array (
76               'key' => 'billing',
77               'copy' => 'primary',
78               'billingKey' => 'primary',
79               'additionalFields' => 
80               array (
81                 'phone_office' => 'phone_work',
82               ),
83             ),
84             'label' => 'LBL_ACCOUNT_NAME',
85           ),
86           1 => 
87           array (
88             'name' => 'phone_home',
89             'label' => 'LBL_HOME_PHONE',
90           ),
91         ),
92         3 => 
93         array (
94           0 => 
95           array (
96             'name' => 'lead_source',
97             'label' => 'LBL_LEAD_SOURCE',
98           ),
99           1 => 
100           array (
101             'name' => 'phone_other',
102             'label' => 'LBL_OTHER_PHONE',
103           ),
104         ),
105         4 => 
106         array (
107           0 => 
108           array (
109             'name' => 'title',
110             'label' => 'LBL_TITLE',
111           ),
112           1 => 
113           array (
114             'name' => 'phone_fax',
115             'label' => 'LBL_FAX_PHONE',
116           ),
117         ),
118         5 => 
119         array (
120           0 => 
121           array (
122             'name' => 'department',
123             'label' => 'LBL_DEPARTMENT',
124           ),
125           1 => NULL,
126         ),
127         6 => 
128         array (
129           0 => 
130           array (
131             'name' => 'birthdate',
132             'label' => 'LBL_BIRTHDATE',
133           ),
134           1 => NULL,
135         ),
136         7 => 
137         array (
138           0 => 
139           array (
140             'name' => 'report_to_name',
141             'label' => 'LBL_REPORTS_TO',
142           ),
143           1 => 
144           array (
145             'name' => 'assistant',
146             'label' => 'LBL_ASSISTANT',
147           ),
148         ),
149         8 => 
150         array (
151           0 => 
152           array (
153             'name' => 'technical_proficiency_',
154             'label' => 'LBL_TECHNICAL_PROFICIENCY_',
155           ),
156           1 => 
157           array (
158             'name' => 'assistant_phone',
159             'label' => 'LBL_ASSISTANT_PHONE',
160           ),
161         ),
162         9 => 
163         array (
164           0 => 
165           array (
166             'name' => 'do_not_call',
167             'label' => 'LBL_DO_NOT_CALL',
168           ),
169           1 => NULL,
170         ),
171         10 => 
172         array (
173           0 => 
174           array (
175             'name' => 'team_name',
176             'displayParams' => 
177             array (
178               'display' => true,
179             ),
180             'label' => 'LBL_TEAM',
181           ),
182           1 => 
183           array (
184             'name' => 'sync_contact',
185             'label' => 'LBL_SYNC_CONTACT',
186           ),
187         ),
188         11 => 
189         array (
190           0 => 
191           array (
192             'name' => 'assigned_user_name',
193             'label' => 'LBL_ASSIGNED_TO_NAME',
194           ),
195           1 => NULL,
196         ),
197         12 => 
198         array (
199           0 => NULL,
200           1 => 
201           array (
202             'name' => 'primary_business_c',
203             'label' => 'Primary_Business_Contact__c',
204           ),
205         ),
206         13 => 
207         array (
208           0 => NULL,
209           1 => 
210           array (
211             'name' => 'support_authorized_c',
212             'label' => 'Support_Authorized_Contact__c',
213           ),
214         ),
215         14 => 
216         array (
217           0 => NULL,
218           1 => 
219           array (
220             'name' => 'university_enabled_c',
221             'label' => 'LBL_UNIVERSITY_ENABLED',
222           ),
223         ),
224         15 => 
225         array (
226           0 => NULL,
227           1 => 
228           array (
229             'name' => 'billing_contact_c',
230             'label' => 'Billing_Contact__c',
231           ),
232         ),
233         16 => 
234         array (
235           0 => NULL,
236           1 => 
237           array (
238             'name' => 'oppq_active_c',
239             'label' => 'LBL_OPPQ_ACTIVE_C',
240           ),
241         ),
242       ),
243       'lbl_email_addresses' => 
244       array (
245         0 => 
246         array (
247           0 => 
248           array (
249             'name' => 'email1',
250             'label' => 'LBL_EMAIL_ADDRESS',
251           ),
252         ),
253       ),
254       'lbl_address_information' => 
255       array (
256         0 => 
257         array (
258           0 => 
259           array (
260             'name' => 'primary_address_street',
261             'hideLabel' => true,
262             'type' => 'address',
263             'displayParams' => 
264             array (
265               'key' => 'primary',
266               'rows' => 2,
267               'cols' => 30,
268               'maxlength' => 150,
269             ),
270             'label' => 'LBL_PRIMARY_ADDRESS_STREET',
271           ),
272           1 => 
273           array (
274             'name' => 'alt_address_street',
275             'hideLabel' => true,
276             'type' => 'address',
277             'displayParams' => 
278             array (
279               'key' => 'alt',
280               'copy' => 'primary',
281               'rows' => 2,
282               'cols' => 30,
283               'maxlength' => 150,
284             ),
285             'label' => 'LBL_ALT_ADDRESS_STREET',
286           ),
287         ),
288       ),
289       'lbl_description_information' => 
290       array (
291         0 => 
292         array (
293           0 => 
294           array (
295             'name' => 'description',
296             'displayParams' => 
297             array (
298               'rows' => 6,
299               'cols' => 80,
300             ),
301             'label' => 'LBL_DESCRIPTION',
302           ),
303         ),
304       ),
305       'lbl_portal_information' => 
306       array (
307         0 => 
308         array (
309           0 => 
310           array (
311             'name' => 'portal_name',
312                  
313             'customCode' => '<table border="0" cellspacing="0" cellpadding="0"><tr><td>
314 <input id="portal_name" name="portal_name" type="text" size="30" maxlength="30" value="{$fields.portal_name.value}">
315 <input type="hidden" id="portal_name_existing" value="{$fields.portal_name.value}">
316
317 <input type="button" name="btn_{$fields.portal_name.name}" title="{$APP.LBL_SELECT_BUTTON_TITLE}" accessKey="{$APP.LBL_SELECT_BUTTON_KEY}" class="button" value="{$APP.LBL_SELECT_BUTTON_LABEL}" onclick=\'window.open("custom/si_custom_files/choose_portal_name_popup.php?check_email="+this.form.emailAddress0.value, "choose_popup", "status=1, toolbar=1, menubar=1, location=1, scrollbars=1, width=600, height=400"); return false;\'>
318
319 <input type="button" name="btn_clr_{$fields.portal_name.name}" tabindex="2" title="{$APP.LBL_CLEAR_BUTTON_TITLE}" accessKey="{$APP.LBL_CLEAR_BUTTON_KEY}" class="button" onclick="this.form.{$fields.portal_name.name}.value = \'\';" value="{$APP.LBL_CLEAR_BUTTON_LABEL}">
320
321 </td><tr><tr><td><input type="hidden" id="portal_name_verified" value="true"></td></tr></table>',
322                  
323             'label' => 'LBL_PORTAL_NAME',
324           ),
325           1 => 
326           array (
327             'name' => 'portal_active',
328             'label' => 'LBL_PORTAL_ACTIVE',
329           ),
330         ),
331         1 => 
332         array (
333           0 => 
334           array (
335             'name' => 'portal_password1',
336             'type' => 'password',
337             'customCode' => '<input id="portal_password1" name="portal_password1" type="password" size="32" maxlength="32" value="{$fields.portal_password.value}">',
338             'label' => 'LBL_PORTAL_PASSWORD',
339           ),
340         ),
341         2 => 
342         array (
343           0 => 
344           array (
345             'name' => 'portal_password',
346             'customCode' => '<input id="portal_password" name="portal_password" type="password" size="32" maxlength="32" value="{$fields.portal_password.value}"><input name="old_portal_password" type="hidden" value="{$fields.portal_password.value}">',
347             'label' => 'LBL_CONFIRM_PORTAL_PASSWORD',
348           ),
349         ),
350       ),
351       'lbl_panel1' => 
352       array (
353         0 => 
354         array (
355           0 => 
356           array (
357             'name' => 'dce_user_name_c',
358             'label' => 'LBL_DCE_USER_NAME',
359           ),
360           1 => 
361           array (
362             'name' => 'licensing_rights_c',
363             'label' => 'LBL_LICENSING_RIGHTS',
364           ),
365         ),
366       ),
367     ),
368   ),
369 );
370 ?>