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