]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/modules/UpgradeWizard/SugarMerge/od_metadata_files/610/custom/modules/Cases/metadata/editviewdefs.php
Release 6.2.2
[Github/sugarcrm.git] / tests / modules / UpgradeWizard / SugarMerge / od_metadata_files / 610 / custom / modules / Cases / metadata / editviewdefs.php
1 <?php
2 /*********************************************************************************
3  * SugarCRM Community Edition is a customer relationship management program developed by
4  * SugarCRM, Inc. Copyright (C) 2004-2011 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 $viewdefs ['Cases'] = 
39 array (
40   'EditView' => 
41   array (
42     'templateMeta' => 
43     array (
44       'maxColumns' => '2',
45       'widths' => 
46       array (
47         0 => 
48         array (
49           'label' => '10',
50           'field' => '30',
51         ),
52         1 => 
53         array (
54           'label' => '10',
55           'field' => '30',
56         ),
57       ),
58       'form' => 
59       array (
60         'footerTpl' => 'custom/modules/Cases/tpls/EditViewFooter.tpl',
61       ),
62       'useTabs' => false,
63     ),
64     'panels' => 
65     array (
66       'lbl_case_information' => 
67       array (
68         0 => 
69         array (
70           0 => 
71           array (
72             'name' => 'case_number',
73             'type' => 'readonly',
74           ),
75         ),
76         1 => 
77         array (
78           0 => 
79           array (
80             'name' => 'priority',
81             'comment' => 'The priority of the case',
82             'label' => 'LBL_PRIORITY',
83           ),
84           1 => 
85           array (
86             'name' => 'ticket_due_date_c',
87             'label' => 'LBL_TICKET_DUE_DATE',
88           ),
89         ),
90         2 => 
91         array (
92           0 => 
93           array (
94             'name' => 'status',
95             'comment' => 'The status of the case',
96             'label' => 'LBL_STATUS',
97           ),
98           1 => 
99           array (
100             'name' => 'account_name',
101             'comment' => 'The name of the account represented by the account_id field',
102             'label' => 'LBL_ACCOUNT_NAME',
103           ),
104         ),
105         3 => 
106         array (
107           0 => 
108           array (
109             'name' => 'type',
110             'comment' => 'The type of issue (ex: issue, feature)',
111             'label' => 'LBL_TYPE',
112           ),
113         ),
114         4 => 
115         array (
116           0 => 
117           array (
118             'name' => 'name',
119             'displayParams' => 
120             array (
121               'size' => 75,
122             ),
123           ),
124         ),
125         5 => 
126         array (
127           0 => 
128           array (
129             'name' => 'description',
130             'nl2br' => true,
131           ),
132         ),
133         6 => 
134         array (
135           0 => 
136           array (
137             'name' => 'resolution',
138             'nl2br' => true,
139           ),
140         ),
141         7 => 
142         array (
143           0 => 
144           array (
145             'name' => 'portal_viewable',
146             'customLabel' => '{if ($PORTAL_ENABLED)}{sugar_translate label="LBL_SHOW_IN_PORTAL" module="Cases"}{/if}',
147             'customCode' => ' {if ($PORTAL_ENABLED)}
148                                                                 {if $fields.portal_viewable.value == "1"}
149                                                                 {assign var="checked" value="CHECKED"}
150                                                                 {else}
151                                                                 {assign var="checked" value=""}
152                                                                         {/if}
153                                                                 <input type="hidden" name="{$fields.portal_viewable.name}" value="0"> 
154                                                                 <input type="checkbox" name="{$fields.portal_viewable.name}" value="1" tabindex="1" {$checked}>
155                                                 {/if}',
156           ),
157           1 => 
158           array (
159             'name' => 'tick_email_on_close_c',
160             'label' => 'LBL_TICK_EMAIL_ON_CLOSE',
161           ),
162         ),
163       ),
164       'LBL_PANEL_ASSIGNMENT' => 
165       array (
166         0 => 
167         array (
168           0 => 
169           array (
170             'name' => 'assigned_user_name',
171             'label' => 'LBL_ASSIGNED_TO_NAME',
172           ),
173           1 => 
174           array (
175             'name' => 'team_name',
176             'displayParams' => 
177             array (
178               'required' => true,
179             ),
180           ),
181         ),
182       ),
183       'lbl_editview_panel1' => 
184       array (
185         0 => 
186         array (
187           0 => 
188           array (
189             'name' => 'contact_c',
190             'studio' => 'visible',
191             'label' => 'LBL_CONTACT_C',
192             'displayParams' => 
193             array (
194               'call_back_function' => 'setAccountInfo',
195             ),
196           ),
197           1 => '',
198         ),
199         1 => 
200         array (
201           0 => 
202           array (
203             'name' => 'account_address_street',
204             'hideLabel' => true,
205             'type' => 'address',
206             'displayParams' => 
207             array (
208               'key' => 'account',
209               'rows' => 2,
210               'cols' => 30,
211               'maxlength' => 150,
212             ),
213           ),
214           1 => '',
215         ),
216       ),
217     ),
218   ),
219 );
220 ?>