]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - include/SugarObjects/templates/company/metadata/detailviewdefs.php
Release 6.5.0
[Github/sugarcrm.git] / include / SugarObjects / templates / company / metadata / detailviewdefs.php
1 <?php
2 /*
3  * Created on Aug 2, 2007
4  *
5  * To change the template for this generated file go to
6  * Window - Preferences - PHPeclipse - PHP - Code Templates
7  */
8 /*********************************************************************************
9  * SugarCRM Community Edition is a customer relationship management program developed by
10  * SugarCRM, Inc. Copyright (C) 2004-2012 SugarCRM Inc.
11  * 
12  * This program is free software; you can redistribute it and/or modify it under
13  * the terms of the GNU Affero General Public License version 3 as published by the
14  * Free Software Foundation with the addition of the following permission added
15  * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
16  * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
17  * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
18  * 
19  * This program is distributed in the hope that it will be useful, but WITHOUT
20  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
21  * FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
22  * details.
23  * 
24  * You should have received a copy of the GNU Affero General Public License along with
25  * this program; if not, see http://www.gnu.org/licenses or write to the Free
26  * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
27  * 02110-1301 USA.
28  * 
29  * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
30  * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
31  * 
32  * The interactive user interfaces in modified source and object code versions
33  * of this program must display Appropriate Legal Notices, as required under
34  * Section 5 of the GNU Affero General Public License version 3.
35  * 
36  * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
37  * these Appropriate Legal Notices must retain the display of the "Powered by
38  * SugarCRM" logo. If the display of the logo is not reasonably feasible for
39  * technical reasons, the Appropriate Legal Notices must display the words
40  * "Powered by SugarCRM".
41  ********************************************************************************/
42
43 $module_name = '<module_name>';
44 $_object_name = '<_object_name>';
45 $viewdefs[$module_name]['DetailView'] = array(
46     'templateMeta' => array('form' => array('buttons'=>array('EDIT', 'DUPLICATE', 'DELETE', 'FIND_DUPLICATES')),
47                             'maxColumns' => '2', 
48                             'widths' => array(
49                                             array('label' => '10', 'field' => '30'), 
50                                             array('label' => '10', 'field' => '30')
51                                             ),
52                            ),
53     'panels' => array(
54         array('name', 'phone_office'),
55         array(array('name'=>'website', 'type'=>'link'), 'phone_fax'),
56         array('ticker_symbol', array('name'=>'phone_alternate', 'label'=>'LBL_OTHER_PHONE')),
57         array('', 'employees'),
58         array('ownership', 'rating'),
59         array('industry'),
60         array($_object_name . '_type', 'annual_revenue'),
61                 array(
62             array('name'=>'date_modified', 'label'=>'LBL_DATE_MODIFIED', 'customCode'=>'{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}'),
63         ),
64                 array(array('name'=>'assigned_user_name', 'label'=>'LBL_ASSIGNED_TO_NAME'),
65               array('name'=>'date_entered', 'customCode'=>'{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}')),
66                 array (
67                       array (
68                           'name' => 'billing_address_street',
69                       'label'=> 'LBL_BILLING_ADDRESS',
70                       'type' => 'address',
71                       'displayParams'=>array('key'=>'billing'),
72                       ),
73                 array (
74                       'name' => 'shipping_address_street',
75                       'label'=> 'LBL_SHIPPING_ADDRESS',
76                       'type' => 'address',
77                       'displayParams'=>array('key'=>'shipping'),      
78                       ),
79                 ),
80
81             array('description'),
82             array('email1'),                  
83      ),
84     
85     
86 );
87 ?>