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