2 /*********************************************************************************
3 * SugarCRM Community Edition is a customer relationship management program developed by
4 * SugarCRM, Inc. Copyright (C) 2004-2011 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 ********************************************************************************/
37 $viewdefs ['Contacts'] =
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}">',
71 'lbl_contact_information' =>
77 'name' => 'first_name',
78 'customCode' => '{html_options name="salutation" options=$fields.salutation.options selected=$fields.salutation.value} <input name="first_name" size="25" maxlength="25" type="text" value="{$fields.first_name.value}">',
79 'label' => 'LBL_FIRST_NAME',
83 'name' => 'phone_work',
84 'label' => 'LBL_OFFICE_PHONE',
91 'name' => 'last_name',
96 'label' => 'LBL_LAST_NAME',
100 'name' => 'phone_mobile',
101 'label' => 'LBL_MOBILE_PHONE',
108 'name' => 'account_name',
113 'billingKey' => 'primary',
114 'additionalFields' =>
116 'phone_office' => 'phone_work',
119 'label' => 'LBL_ACCOUNT_NAME',
123 'name' => 'phone_home',
124 'label' => 'LBL_HOME_PHONE',
131 'name' => 'lead_source',
132 'label' => 'LBL_LEAD_SOURCE',
136 'name' => 'phone_other',
137 'label' => 'LBL_OTHER_PHONE',
145 'label' => 'LBL_TITLE',
149 'name' => 'phone_fax',
150 'label' => 'LBL_FAX_PHONE',
157 'name' => 'department',
158 'label' => 'LBL_DEPARTMENT',
166 'name' => 'birthdate',
167 'label' => 'LBL_BIRTHDATE',
175 'name' => 'report_to_name',
176 'label' => 'LBL_REPORTS_TO',
180 'name' => 'assistant',
181 'label' => 'LBL_ASSISTANT',
188 'name' => 'technical_proficiency_',
189 'label' => 'LBL_TECHNICAL_PROFICIENCY_',
193 'name' => 'assistant_phone',
194 'label' => 'LBL_ASSISTANT_PHONE',
201 'name' => 'do_not_call',
202 'label' => 'LBL_DO_NOT_CALL',
210 'name' => 'team_name',
215 'label' => 'LBL_TEAM',
219 'name' => 'sync_contact',
220 'label' => 'LBL_SYNC_CONTACT',
227 'name' => 'assigned_user_name',
228 'label' => 'LBL_ASSIGNED_TO_NAME',
237 'name' => 'primary_business_c',
238 'label' => 'Primary_Business_Contact__c',
246 'name' => 'support_authorized_c',
247 'label' => 'Support_Authorized_Contact__c',
255 'name' => 'university_enabled_c',
256 'label' => 'LBL_UNIVERSITY_ENABLED',
264 'name' => 'billing_contact_c',
265 'label' => 'Billing_Contact__c',
273 'name' => 'oppq_active_c',
274 'label' => 'LBL_OPPQ_ACTIVE_C',
278 'lbl_email_addresses' =>
285 'label' => 'LBL_EMAIL_ADDRESS',
289 'lbl_address_information' =>
295 'name' => 'primary_address_street',
305 'label' => 'LBL_PRIMARY_ADDRESS_STREET',
309 'name' => 'alt_address_street',
320 'label' => 'LBL_ALT_ADDRESS_STREET',
324 'lbl_description_information' =>
330 'name' => 'description',
336 'label' => 'LBL_DESCRIPTION',
340 'lbl_portal_information' =>
346 'name' => 'portal_name',
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}">
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;\'>
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}">
356 </td><tr><tr><td><input type="hidden" id="portal_name_verified" value="true"></td></tr></table>',
358 'label' => 'LBL_PORTAL_NAME',
362 'name' => 'portal_active',
363 'label' => 'LBL_PORTAL_ACTIVE',
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',
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',
392 'name' => 'dce_user_name_c',
393 'label' => 'LBL_DCE_USER_NAME',
397 'name' => 'licensing_rights_c',
398 'label' => 'LBL_LICENSING_RIGHTS',