]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Accounts/metadata/editviewdefs.php
Release 6.5.0
[Github/sugarcrm.git] / modules / Accounts / metadata / editviewdefs.php
1 <?php
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 $viewdefs['Accounts']['EditView'] = array(
38     'templateMeta' => array(
39                             'form' => array('buttons'=>array('SAVE', 'CANCEL')),
40                             'maxColumns' => '2', 
41                             'widths' => array(
42                                             array('label' => '10', 'field' => '30'),
43                                             array('label' => '10', 'field' => '30'),
44                                             ),
45                             'includes'=> array(
46                                             array('file'=>'modules/Accounts/Account.js'),
47                                          ),
48                            ),
49                            
50     'panels' => array(
51     
52       'lbl_account_information' => 
53       array (
54         array (
55           array (
56             'name' => 'name',
57             'label' => 'LBL_NAME',
58             'displayParams' => 
59             array (
60               'required' => true,
61             ),
62           ),
63           array (
64             'name' => 'phone_office',
65             'label' => 'LBL_PHONE_OFFICE',
66           ),
67         ),
68
69         array (
70
71           array (
72             'name' => 'website',
73             'type' => 'link',
74             'label' => 'LBL_WEBSITE',
75           ),
76
77           array (
78             'name' => 'phone_fax',
79             'label' => 'LBL_FAX',
80           ),
81         ),
82
83         array (
84
85           array (
86             'name' => 'billing_address_street',
87             'hideLabel' => true,
88             'type' => 'address',
89             'displayParams' => 
90             array (
91               'key' => 'billing',
92               'rows' => 2,
93               'cols' => 30,
94               'maxlength' => 150,
95             ),
96           ),
97
98           array (
99             'name' => 'shipping_address_street',
100             'hideLabel' => true,
101             'type' => 'address',
102             'displayParams' => 
103             array (
104               'key' => 'shipping',
105               'copy' => 'billing',
106               'rows' => 2,
107               'cols' => 30,
108               'maxlength' => 150,
109             ),
110           ),
111         ),
112
113         array (
114
115           array (
116             'name' => 'email1',
117             'studio' => 'false',
118             'label' => 'LBL_EMAIL',
119           ),
120         ),
121
122         array (
123
124           array (
125             'name' => 'description',
126             'label' => 'LBL_DESCRIPTION',
127           ),
128         ),
129       ),
130       'LBL_PANEL_ADVANCED' => 
131       array (
132
133         array (
134           'account_type',
135           'industry'
136         ),
137
138         array (
139           'annual_revenue',
140           'employees'
141         ),
142
143         array (
144           'sic_code',
145           'ticker_symbol'
146         ),
147
148         array (
149           'parent_name',
150           'ownership'
151         ),
152
153         array (
154           'campaign_name',
155           'rating'
156         ),
157       ),
158       'LBL_PANEL_ASSIGNMENT' => 
159       array (
160
161         array (
162           array (
163             'name' => 'assigned_user_name',
164             'label' => 'LBL_ASSIGNED_TO',
165           ),
166         ),
167       ),
168     )
169 );
170 ?>