]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Leads/metadata/quickcreatedefs.php
Release 6.5.0
[Github/sugarcrm.git] / modules / Leads / metadata / quickcreatedefs.php
1 <?php
2 if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 /*********************************************************************************
4  * SugarCRM Community Edition is a customer relationship management program developed by
5  * SugarCRM, Inc. Copyright (C) 2004-2012 SugarCRM Inc.
6  * 
7  * This program is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU Affero General Public License version 3 as published by the
9  * Free Software Foundation with the addition of the following permission added
10  * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
11  * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
12  * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
13  * 
14  * This program is distributed in the hope that it will be useful, but WITHOUT
15  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16  * FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
17  * details.
18  * 
19  * You should have received a copy of the GNU Affero General Public License along with
20  * this program; if not, see http://www.gnu.org/licenses or write to the Free
21  * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22  * 02110-1301 USA.
23  * 
24  * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
25  * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
26  * 
27  * The interactive user interfaces in modified source and object code versions
28  * of this program must display Appropriate Legal Notices, as required under
29  * Section 5 of the GNU Affero General Public License version 3.
30  * 
31  * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
32  * these Appropriate Legal Notices must retain the display of the "Powered by
33  * SugarCRM" logo. If the display of the logo is not reasonably feasible for
34  * technical reasons, the Appropriate Legal Notices must display the words
35  * "Powered by SugarCRM".
36  ********************************************************************************/
37
38 /*********************************************************************************
39
40  * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
41  * All Rights Reserved.
42  * Contributor(s): ______________________________________..
43  ********************************************************************************/
44
45 $viewdefs ['Leads'] = 
46 array (
47   'QuickCreate' => 
48   array (
49     'templateMeta' => 
50     array (
51       'form' => 
52       array (
53         'hidden' => 
54         array (
55           0 => '<input type="hidden" name="prospect_id" value="{if isset($smarty.request.prospect_id)}{$smarty.request.prospect_id}{else}{$bean->prospect_id}{/if}">',
56           1 => '<input type="hidden" name="contact_id" value="{if isset($smarty.request.contact_id)}{$smarty.request.contact_id}{else}{$bean->contact_id}{/if}">',
57           2 => '<input type="hidden" name="opportunity_id" value="{if isset($smarty.request.opportunity_id)}{$smarty.request.opportunity_id}{else}{$bean->opportunity_id}{/if}">',
58           3 => '<input type="hidden" name="account_id" value="{if isset($smarty.request.account_id)}{$smarty.request.account_id}{else}{$bean->account_id}{/if}">',
59         ),
60       ),
61       'maxColumns' => '2',
62       'widths' => 
63       array (
64         0 => 
65         array (
66           'label' => '10',
67           'field' => '30',
68         ),
69         1 => 
70         array (
71           'label' => '10',
72           'field' => '30',
73         ),
74       ),
75       'javascript' => '<script type="text/javascript" language="Javascript">function copyAddressRight(form)  {ldelim} form.alt_address_street.value = form.primary_address_street.value;form.alt_address_city.value = form.primary_address_city.value;form.alt_address_state.value = form.primary_address_state.value;form.alt_address_postalcode.value = form.primary_address_postalcode.value;form.alt_address_country.value = form.primary_address_country.value;return true; {rdelim} function copyAddressLeft(form)  {ldelim} form.primary_address_street.value =form.alt_address_street.value;form.primary_address_city.value = form.alt_address_city.value;form.primary_address_state.value = form.alt_address_state.value;form.primary_address_postalcode.value =form.alt_address_postalcode.value;form.primary_address_country.value = form.alt_address_country.value;return true; {rdelim} </script>',
76       'useTabs' => false,
77     ),
78     'panels' => 
79     array (
80       'lbl_contact_information' => 
81       array (
82         0 => 
83         array (
84           0 => 
85           array (
86             'name' => 'first_name',
87           ),
88           1 => 
89           array (
90             'name' => 'status',
91           ),
92         ),
93         1 => 
94         array (
95           0 => 
96           array (
97             'name' => 'last_name',
98             'displayParams' => 
99             array (
100               'required' => true,
101             ),
102           ),
103           1 => 
104           array (
105             'name' => 'phone_work',
106           ),
107         ),
108         2 => 
109         array (
110           0 => 
111           array (
112             'name' => 'title',
113           ),
114           1 => 
115           array (
116             'name' => 'phone_mobile',
117           ),
118         ),
119         3 => 
120         array (
121           0 => 
122           array (
123             'name' => 'department',
124           ),
125           1 => 
126           array (
127             'name' => 'phone_fax',
128           ),
129         ),
130         4 => 
131         array (
132           0 => 
133           array (
134             'name' => 'account_name',
135           ),
136           1 => 
137           array (
138             'name' => 'do_not_call',
139           ),
140         ),
141         5 => 
142         array (
143           0 => 
144           array (
145             'name' => 'email1',
146           ),
147         ),
148         6 => 
149         array (
150           0 => 
151           array (
152             'name' => 'lead_source',
153           ),
154           1 => 
155           array (
156             'name' => 'refered_by',
157           ),
158         ),
159         7 => 
160         array (
161           0 => 
162           array (
163             'name' => 'assigned_user_name',
164           ),
165           1 => 
166           array (
167             'name' => 'team_name',
168           ),
169         ),
170       ),
171     ),
172   ),
173 );
174 ?>