]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/modules/UpgradeWizard/SugarMerge/metadata_files/custom/modules/Contacts/metadata/editviewdefs.php
Release 6.2.0
[Github/sugarcrm.git] / tests / modules / UpgradeWizard / SugarMerge / 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           ),
80           1 => 
81           array (
82             'name' => 'phone_work',
83             'comment' => 'Work phone number of the contact',
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           ),
97           1 => 
98           array (
99             'name' => 'phone_mobile',
100             'comment' => 'Mobile phone number of the contact',
101             'label' => 'LBL_MOBILE_PHONE',
102           ),
103         ),
104         2 => 
105         array (
106           0 => 
107           array (
108             'name' => 'test_c',
109             'label' => 'LBL_TEST',
110           ),
111         ),
112         3 => 
113         array (
114           0 => 
115           array (
116             'name' => 'account_name',
117             'displayParams' => 
118             array (
119               'key' => 'billing',
120               'copy' => 'primary',
121               'billingKey' => 'primary',
122               'additionalFields' => 
123               array (
124                 'phone_office' => 'phone_work',
125               ),
126             ),
127           ),
128           1 => 
129           array (
130             'name' => 'phone_home',
131             'comment' => 'Home phone number of the contact',
132             'label' => 'LBL_HOME_PHONE',
133           ),
134         ),
135         4 => 
136         array (
137           0 => 
138           array (
139             'name' => 'lead_source',
140             'comment' => 'How did the contact come about',
141             'label' => 'LBL_LEAD_SOURCE',
142           ),
143           1 => 
144           array (
145             'name' => 'phone_other',
146             'comment' => 'Other phone number for the contact',
147             'label' => 'LBL_OTHER_PHONE',
148           ),
149         ),
150         5 => 
151         array (
152           0 => 
153           array (
154             'name' => 'campaign_name',
155             'comment' => 'The first campaign name for Contact (Meta-data only)',
156             'label' => 'LBL_CAMPAIGN',
157           ),
158           1 => 
159           array (
160             'name' => 'phone_fax',
161             'comment' => 'Contact fax number',
162             'label' => 'LBL_FAX_PHONE',
163           ),
164         ),
165         6 => 
166         array (
167           0 => 
168           array (
169             'name' => 'title',
170             'comment' => 'The title of the contact',
171             'label' => 'LBL_TITLE',
172           ),
173           1 => 
174           array (
175             'name' => 'birthdate',
176             'comment' => 'The birthdate of the contact',
177             'label' => 'LBL_BIRTHDATE',
178           ),
179         ),
180         7 => 
181         array (
182           0 => 
183           array (
184             'name' => 'department',
185             'comment' => 'The department of the contact',
186             'label' => 'LBL_DEPARTMENT',
187           ),
188         ),
189         8 => 
190         array (
191           0 => 
192           array (
193             'name' => 'report_to_name',
194             'label' => 'LBL_REPORTS_TO',
195           ),
196           1 => 
197           array (
198             'name' => 'assistant',
199             'comment' => 'Name of the assistant of the contact',
200             'label' => 'LBL_ASSISTANT',
201           ),
202         ),
203         9 => 
204         array (
205           0 => 
206           array (
207             'name' => 'sync_contact',
208             'comment' => 'Synch to outlook?  (Meta-Data only)',
209             'label' => 'LBL_SYNC_CONTACT',
210           ),
211           1 => 
212           array (
213             'name' => 'assistant_phone',
214             'comment' => 'Phone number of the assistant of the contact',
215             'label' => 'LBL_ASSISTANT_PHONE',
216           ),
217         ),
218         10 => 
219         array (
220           0 => 
221           array (
222             'name' => 'do_not_call',
223             'comment' => 'An indicator of whether contact can be called',
224             'label' => 'LBL_DO_NOT_CALL',
225           ),
226         ),
227         11 => 
228         array (
229           0 => 
230           array (
231             'name' => 'team_name',
232             'displayParams' => 
233             array (
234               'display' => true,
235             ),
236           ),
237         ),
238         12 => 
239         array (
240           0 => 
241           array (
242             'name' => 'assigned_user_name',
243             'label' => 'LBL_ASSIGNED_TO_NAME',
244           ),
245         ),
246       ),
247       'lbl_email_addresses' => 
248       array (
249         0 => 
250         array (
251           0 => 
252           array (
253             'name' => 'email1',
254             'studio' => 'false',
255             'label' => 'LBL_EMAIL_ADDRESS',
256           ),
257         ),
258       ),
259       'lbl_address_information' => 
260       array (
261         0 => 
262         array (
263           0 => 
264           array (
265             'name' => 'primary_address_street',
266             'hideLabel' => true,
267             'type' => 'address',
268             'displayParams' => 
269             array (
270               'key' => 'primary',
271               'rows' => 2,
272               'cols' => 30,
273               'maxlength' => 150,
274             ),
275           ),
276           1 => 
277           array (
278             'name' => 'alt_address_street',
279             'hideLabel' => true,
280             'type' => 'address',
281             'displayParams' => 
282             array (
283               'key' => 'alt',
284               'copy' => 'primary',
285               'rows' => 2,
286               'cols' => 30,
287               'maxlength' => 150,
288             ),
289           ),
290         ),
291       ),
292       'lbl_description_information' => 
293       array (
294         0 => 
295         array (
296           0 => 
297           array (
298             'name' => 'description',
299             'displayParams' => 
300             array (
301               'rows' => 6,
302               'cols' => 80,
303             ),
304             'label' => 'LBL_DESCRIPTION',
305           ),
306           
307           array (
308             'name' => 'custom_description_c',
309             'displayParams' => 
310             array (
311               'rows' => 10,
312               'cols' => 100,
313             ),
314             'label' => 'LBL_DESCRIPTION',
315           ),          
316         ),
317       ),
318     ),
319   ),
320 );
321 ?>