2 /*********************************************************************************
3 * SugarCRM Community Edition is a customer relationship management program developed by
4 * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
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.
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
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
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.
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.
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 ********************************************************************************/
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>',
52 3 => 'FIND_DUPLICATES',
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}">',
77 'file' => 'modules/Leads/Lead.js',
89 'name' => 'full_name',
90 'customCode' => '{$fields.full_name.value} <input type="button" class="button" name="vCardButton" value="{$MOD.LBL_VCARD}" onClick="document.vcard.submit();">',
91 'label' => 'LBL_NAME',
98 'name' => 'phone_work',
99 'label' => 'LBL_OFFICE_PHONE',
107 'name' => 'phone_mobile',
108 'label' => 'LBL_MOBILE_PHONE',
115 'name' => 'account_name',
116 'label' => 'LBL_ACCOUNT_NAME',
120 'name' => 'phone_home',
121 'label' => 'LBL_HOME_PHONE',
128 'name' => 'lead_source',
129 'label' => 'LBL_LEAD_SOURCE',
133 'name' => 'phone_other',
134 'label' => 'LBL_OTHER_PHONE',
142 'label' => 'LBL_TITLE',
146 'name' => 'phone_fax',
147 'label' => 'LBL_FAX_PHONE',
154 'name' => 'department',
155 'label' => 'LBL_DEPARTMENT',
160 'label' => 'LBL_EMAIL_ADDRESS',
167 'name' => 'birthdate',
168 'label' => 'LBL_BIRTHDATE',
176 'name' => 'report_to_name',
177 'label' => 'LBL_REPORTS_TO',
181 'name' => 'assistant',
182 'label' => 'LBL_ASSISTANT',
189 'name' => 'technical_proficiency_',
190 'label' => 'LBL_TECHNICAL_PROFICIENCY_',
194 'name' => 'assistant_phone',
195 'label' => 'LBL_ASSISTANT_PHONE',
202 'name' => 'do_not_call',
203 'label' => 'LBL_DO_NOT_CALL',
211 'name' => 'sync_contact',
212 'label' => 'LBL_SYNC_CONTACT',
221 'name' => 'primary_business_c',
222 'label' => 'Primary_Business_Contact__c',
230 'name' => 'support_authorized_c',
231 'label' => 'Support_Authorized_Contact__c',
239 'name' => 'university_enabled_c',
240 'label' => 'LBL_UNIVERSITY_ENABLED',
248 'name' => 'billing_contact_c',
249 'label' => 'Billing_Contact__c',
257 'name' => 'oppq_active_c',
258 'label' => 'LBL_OPPQ_ACTIVE_C',
265 'name' => 'team_name',
266 'label' => 'LBL_TEAM',
270 'name' => 'date_modified',
271 'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}',
272 'label' => 'LBL_DATE_MODIFIED',
279 'name' => 'assigned_user_name',
280 'label' => 'LBL_ASSIGNED_TO_NAME',
284 'name' => 'date_entered',
285 'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}',
286 'label' => 'LBL_DATE_ENTERED',
293 'name' => 'primary_address_street',
294 'label' => 'LBL_PRIMARY_ADDRESS',
303 'name' => 'alt_address_street',
304 'label' => 'LBL_ALTERNATE_ADDRESS',
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',
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"}
328 {assign var="checked" value=""}
330 <input type="checkbox" class="checkbox" name="{$fields.portal_active.name}" size="{$displayParams.size}" disabled="true" {$checked}>
332 'customLabel' => '{if $PORTAL_ENABLED}{sugar_translate label="LBL_PORTAL_ACTIVE" module="Contacts"}{/if}',
333 'label' => 'LBL_PORTAL_ACTIVE',
340 'name' => 'description',
341 'label' => 'LBL_DESCRIPTION',
351 'name' => 'dce_user_name_c',
352 'label' => 'LBL_DCE_USER_NAME',
356 'name' => 'licensing_rights_c',
357 'label' => 'LBL_LICENSING_RIGHTS',