]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/modules/UpgradeWizard/SugarMerge/siupgrade_metadata_files/custom/modules/Contacts/metadata/detailviewdefs.php
Release 6.2.0
[Github/sugarcrm.git] / tests / modules / UpgradeWizard / SugarMerge / siupgrade_metadata_files / custom / modules / Contacts / metadata / detailviewdefs.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 = array (
38   'Contacts' => 
39   array (
40     'DetailView' => 
41     array (
42       'templateMeta' => 
43       array (
44         'preForm' => '<form name="vcard" action="index.php"><input type="hidden" name="entryPoint" value="vCard"><input type="hidden" name="contact_id" value="{$fields.id.value}"><input type="hidden" name="module" value="Contacts"></form>',
45         'form' => 
46         array (
47           'buttons' => 
48           array (
49             0 => 'EDIT',
50             1 => 'DUPLICATE',
51             2 => 'DELETE',
52             3 => 'FIND_DUPLICATES',
53             4 => 
54             array (
55               'customCode' => '<input title="{$APP.LBL_MANAGE_SUBSCRIPTIONS}" class="button" onclick="this.form.return_module.value=\'Contacts\'; this.form.return_action.value=\'DetailView\'; this.form.return_id.value=\'{$fields.id.value}\'; this.form.action.value=\'Subscriptions\'; this.form.module.value=\'Campaigns\';" type="submit" name="Manage Subscriptions" value="{$APP.LBL_MANAGE_SUBSCRIPTIONS}">',
56             ),
57           ),
58         ),
59         'maxColumns' => '2',
60         'widths' => 
61         array (
62           0 => 
63           array (
64             'label' => '10',
65             'field' => '30',
66           ),
67           1 => 
68           array (
69             'label' => '10',
70             'field' => '30',
71           ),
72         ),
73         'includes' => 
74         array (
75           0 => 
76           array (
77             'file' => 'modules/Leads/Lead.js',
78           ),
79         ),
80       ),
81       'panels' => 
82       array (
83         'default' => 
84         array (
85           0 => 
86           array (
87             0 => 
88             array (
89               'name' => 'full_name',
90               'customCode' => '{$fields.full_name.value}&nbsp;&nbsp;<input type="button" class="button" name="vCardButton" value="{$MOD.LBL_VCARD}" onClick="document.vcard.submit();">',
91               'label' => 'LBL_NAME',
92               'displayParams' => 
93               array (
94               ),
95             ),
96             1 => 
97             array (
98               'name' => 'phone_work',
99               'label' => 'LBL_OFFICE_PHONE',
100             ),
101           ),
102           1 => 
103           array (
104             0 => 'score_c',
105             1 => 
106             array (
107               'name' => 'phone_mobile',
108               'label' => 'LBL_MOBILE_PHONE',
109             ),
110           ),
111           2 => 
112           array (
113             0 => 
114             array (
115               'name' => 'account_name',
116               'label' => 'LBL_ACCOUNT_NAME',
117             ),
118             1 => 
119             array (
120               'name' => 'phone_home',
121               'label' => 'LBL_HOME_PHONE',
122             ),
123           ),
124           3 => 
125           array (
126             0 => 
127             array (
128               'name' => 'lead_source',
129               'label' => 'LBL_LEAD_SOURCE',
130             ),
131             1 => 
132             array (
133               'name' => 'phone_other',
134               'label' => 'LBL_OTHER_PHONE',
135             ),
136           ),
137           4 => 
138           array (
139             0 => 
140             array (
141               'name' => 'title',
142               'label' => 'LBL_TITLE',
143             ),
144             1 => 
145             array (
146               'name' => 'phone_fax',
147               'label' => 'LBL_FAX_PHONE',
148             ),
149           ),
150           5 => 
151           array (
152             0 => 
153             array (
154               'name' => 'department',
155               'label' => 'LBL_DEPARTMENT',
156             ),
157             1 => 
158             array (
159               'name' => 'email1',
160               'label' => 'LBL_EMAIL_ADDRESS',
161             ),
162           ),
163           6 => 
164           array (
165             0 => 
166             array (
167               'name' => 'birthdate',
168               'label' => 'LBL_BIRTHDATE',
169             ),
170             1 => NULL,
171           ),
172           7 => 
173           array (
174             0 => 
175             array (
176               'name' => 'report_to_name',
177               'label' => 'LBL_REPORTS_TO',
178             ),
179             1 => 
180             array (
181               'name' => 'assistant',
182               'label' => 'LBL_ASSISTANT',
183             ),
184           ),
185           8 => 
186           array (
187             0 => 
188             array (
189               'name' => 'technical_proficiency_',
190               'label' => 'LBL_TECHNICAL_PROFICIENCY_',
191             ),
192             1 => 
193             array (
194               'name' => 'assistant_phone',
195               'label' => 'LBL_ASSISTANT_PHONE',
196             ),
197           ),
198           9 => 
199           array (
200             0 => 
201             array (
202               'name' => 'do_not_call',
203               'label' => 'LBL_DO_NOT_CALL',
204             ),
205             1 => NULL,
206           ),
207           10 => 
208           array (
209             0 => 
210             array (
211               'name' => 'sync_contact',
212               'label' => 'LBL_SYNC_CONTACT',
213             ),
214             1 => NULL,
215           ),
216           11 => 
217           array (
218             0 => NULL,
219             1 => 
220             array (
221               'name' => 'primary_business_c',
222               'label' => 'Primary_Business_Contact__c',
223             ),
224           ),
225           12 => 
226           array (
227             0 => NULL,
228             1 => 
229             array (
230               'name' => 'support_authorized_c',
231               'label' => 'Support_Authorized_Contact__c',
232             ),
233           ),
234           13 => 
235           array (
236             0 => NULL,
237             1 => 
238             array (
239               'name' => 'university_enabled_c',
240               'label' => 'LBL_UNIVERSITY_ENABLED',
241             ),
242           ),
243           14 => 
244           array (
245             0 => NULL,
246             1 => 
247             array (
248               'name' => 'billing_contact_c',
249               'label' => 'Billing_Contact__c',
250             ),
251           ),
252           15 => 
253           array (
254             0 => NULL,
255             1 => 
256             array (
257               'name' => 'oppq_active_c',
258               'label' => 'LBL_OPPQ_ACTIVE_C',
259             ),
260           ),
261           16 => 
262           array (
263             0 => 
264             array (
265               'name' => 'team_name',
266               'label' => 'LBL_TEAM',
267             ),
268             1 => 
269             array (
270               'name' => 'date_modified',
271               'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}',
272               'label' => 'LBL_DATE_MODIFIED',
273             ),
274           ),
275           17 => 
276           array (
277             0 => 
278             array (
279               'name' => 'assigned_user_name',
280               'label' => 'LBL_ASSIGNED_TO_NAME',
281             ),
282             1 => 
283             array (
284               'name' => 'date_entered',
285               'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}',
286               'label' => 'LBL_DATE_ENTERED',
287             ),
288           ),
289           18 => 
290           array (
291             0 => 
292             array (
293               'name' => 'primary_address_street',
294               'label' => 'LBL_PRIMARY_ADDRESS',
295               'type' => 'address',
296               'displayParams' => 
297               array (
298                 'key' => 'primary',
299               ),
300             ),
301             1 => 
302             array (
303               'name' => 'alt_address_street',
304               'label' => 'LBL_ALTERNATE_ADDRESS',
305               'type' => 'address',
306               'displayParams' => 
307               array (
308                 'key' => 'alt',
309               ),
310             ),
311           ),
312           19 => 
313           array (
314             0 => 
315             array (
316               'name' => 'portal_name',
317               'customCode' => '{if $PORTAL_ENABLED}{$fields.portal_name.value}{/if}',
318               'customLabel' => '{if $PORTAL_ENABLED}{sugar_translate label="LBL_PORTAL_NAME" module="Contacts"}{/if}',
319               'label' => 'LBL_PORTAL_NAME',
320             ),
321             1 => 
322             array (
323               'name' => 'portal_active',
324               'customCode' => '{if $PORTAL_ENABLED}
325                                          {if strval($fields.portal_active.value) == "1" || strval($fields.portal_active.value) == "yes" || strval($fields.portal_active.value) == "on"}
326                                          {assign var="checked" value="CHECKED"}
327                              {else}
328                              {assign var="checked" value=""}
329                              {/if}
330                              <input type="checkbox" class="checkbox" name="{$fields.portal_active.name}" size="{$displayParams.size}" disabled="true" {$checked}>
331                              {/if}',
332               'customLabel' => '{if $PORTAL_ENABLED}{sugar_translate label="LBL_PORTAL_ACTIVE" module="Contacts"}{/if}',
333               'label' => 'LBL_PORTAL_ACTIVE',
334             ),
335           ),
336           20 => 
337           array (
338             0 => 
339             array (
340               'name' => 'description',
341               'label' => 'LBL_DESCRIPTION',
342             ),
343           ),
344         ),
345         'lbl_panel1' => 
346         array (
347           0 => 
348           array (
349             0 => 
350             array (
351               'name' => 'dce_user_name_c',
352               'label' => 'LBL_DCE_USER_NAME',
353             ),
354             1 => 
355             array (
356               'name' => 'licensing_rights_c',
357               'label' => 'LBL_LICENSING_RIGHTS',
358             ),
359           ),
360         ),
361       ),
362     ),
363   ),
364 );
365 ?>