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 ********************************************************************************/
40 <form action="index.php" method="post" name="EditView" onsubmit="return check_form('EditView')">
41 <input type="hidden" name="module" value="Contacts" />
42 <input type="hidden" name="record" value="{ID}" />
43 <input type="hidden" name="return_module" value="{RETURN_MODULE}" />
44 <input type="hidden" name="return_action" value="{RETURN_ACTION}" />
45 <input type="hidden" name="return_id" value="{RETURN_ID}" />
46 <input type="hidden" name="action" value="" />
47 <table cellpadding="0" cellspacing="0" border="0" width="100%">
50 <input type="submit" name="button" class="button"
51 title="{APP.LBL_SAVE_BUTTON_TITLE}"
52 accesskey="{APP.LBL_SAVE_BUTTON_KEY}"
53 onclick="this.form.action.value='SaveContactOpportunityRelationship';"
54 value=" {APP.LBL_SAVE_BUTTON_LABEL} "
56 <input type="submit" name="button" class="button"
57 title="{APP.LBL_CANCEL_BUTTON_TITLE}"
58 accessKey="{APP.LBL_CANCEL_BUTTON_KEY}"
59 onclick="this.form.action.value='{RETURN_ACTION}'; this.form.module.value='{RETURN_MODULE}'; this.form.record.value='{RETURN_ID}'"
60 value=" {APP.LBL_CANCEL_BUTTON_LABEL} "
63 <td align="right" nowrap="nowrap"><span class="required">{APP.LBL_REQUIRED_SYMBOL}</span> {APP.NTC_REQUIRED}</td>
67 <table width="100%" border="0" cellspacing="0" cellpadding="0" class="edit view">
69 <table width="100%" border="0" cellspacing="0" cellpadding="0">
71 <td width="15%" scope="row"><slot>{MOD.LBL_CONTACT_NAME}</slot></td>
72 <td width="35%" ><slot>
73 <input type="text" name='contact_name' rows="1" cols="30" value="{CONTACT.NAME}" readonly="readonly" />
74 <input type="hidden" name='contact_id' value='{CONTACT.ID}'>
75 <input type="button" name="btn1" class="button"
76 title="{APP.LBL_SELECT_BUTTON_TITLE}"
77 accesskey="{APP.LBL_SELECT_BUTTON_KEY}"
78 value='{APP.LBL_SELECT_BUTTON_LABEL}'
79 onclick='open_popup("Contacts",600,400,"",true,false,{"call_back_function":"set_return","form_name":"EditView","field_to_name_array":{"id":"contact_id","name":"contact_name"}});' />
81 <td width="15%" scope="row"><slot>{MOD.LBL_OPP_NAME}</slot></td>
82 <td width="35%" ><slot>
83 <input type="text" class='sqsEnabled' id='opportunity_name' name='opportunity_name' rows="2" cols="30" value="{OPPORTUNITY.NAME}" />
84 <input id='opportunity_id' name='opportunity_id' type="hidden" value='{OPPORTUNITY.ID}'>
85 <input type="button" name="btn1" class="button"
86 title="{APP.LBL_SELECT_BUTTON_TITLE}"
87 accesskey="{APP.LBL_SELECT_BUTTON_KEY}"
88 value='{APP.LBL_SELECT_BUTTON_LABEL}'
89 onclick='open_popup("Opportunities",600,400,"",true,false,{"call_back_function":"set_return","form_name":"EditView","field_to_name_array":{"id":"opportunity_id","name":"opportunity_name"}});' />
94 <td scope="row"><slot>{MOD.LBL_CONTACT_ROLE}</slot></td>
95 <td ><slot><select name='contact_role'>{CONTACT_ROLE_OPTIONS}</select></slot></td>
96 <td scope="row"><slot> </slot></td>
97 <td ><slot> </slot></td>