]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Contacts/ContactOpportunityRelationshipEdit.html
Release 6.5.0
[Github/sugarcrm.git] / modules / Contacts / ContactOpportunityRelationshipEdit.html
1 <!--
2 /*********************************************************************************
3  * SugarCRM Community Edition is a customer relationship management program developed by
4  * SugarCRM, Inc. Copyright (C) 2004-2012 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 -->
38
39 <!-- BEGIN: main -->
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%">
48 <tr>
49 <td>
50         <input id="save_btn_48516" 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}  "
55         />
56         <input id="cancel_btn_48516" 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}  "
61         />
62 </td>
63 <td align="right" nowrap="nowrap"><span class="required">{APP.LBL_REQUIRED_SYMBOL}</span> {APP.NTC_REQUIRED}</td>
64 </tr>
65 </table>
66
67 <table width="100%" border="0" cellspacing="0" cellpadding="0" class="edit view">
68 <tr><td>
69         <table width="100%" border="0" cellspacing="0" cellpadding="0">
70         <tr>
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                         value='{APP.LBL_SELECT_BUTTON_LABEL}'
78                         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"}});' />
79         </slot></td>
80         <td width="15%" scope="row"><slot>{MOD.LBL_OPP_NAME}</slot></td>
81         <td width="35%" ><slot>
82                 <input type="text" class='sqsEnabled' id='opportunity_name' name='opportunity_name' rows="2" cols="30" value="{OPPORTUNITY.NAME}" />
83                 <input id='opportunity_id' name='opportunity_id' type="hidden" value='{OPPORTUNITY.ID}'>
84                 <input type="button" name="btn1" class="button"
85                         title="{APP.LBL_SELECT_BUTTON_TITLE}"
86                         accesskey="{APP.LBL_SELECT_BUTTON_KEY}"
87                         value='{APP.LBL_SELECT_BUTTON_LABEL}'
88                         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"}});' />
89         </slot></td>
90         </tr>
91
92         <tr>
93         <td scope="row"><slot>{MOD.LBL_CONTACT_ROLE}</slot></td>
94         <td ><slot><select name='contact_role'>{CONTACT_ROLE_OPTIONS}</select></slot></td>
95         <td scope="row"><slot>&nbsp;</slot></td>
96         <td ><slot>&nbsp;</slot></td>
97         </tr>
98         </table>
99 </td></tr></table>
100
101 </form>
102 {JAVASCRIPT}
103 <!-- END: main -->