]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/modules/UpgradeWizard/SugarMerge/od_metadata_files/custom/modules/Leads/metadata/detailviewdefs.php
Added unit tests.
[Github/sugarcrm.git] / tests / modules / UpgradeWizard / SugarMerge / od_metadata_files / custom / modules / Leads / metadata / detailviewdefs.php
1 <?php
2 // created: 2010-04-24 18:20:46
3 $viewdefs['Leads']['DetailView'] = array (
4   'templateMeta' => 
5   array (
6     'form' => 
7     array (
8       'buttons' => 
9       array (
10         0 => 'EDIT',
11         1 => 'DUPLICATE',
12         2 => 'DELETE',
13         3 => 
14         array (
15           'customCode' => '<input title="{$MOD.LBL_CONVERTLEAD_TITLE}" accessKey="{$MOD.LBL_CONVERTLEAD_BUTTON_KEY}" type="button" class="button" onClick="document.location=\'index.php?module=Leads&action=ConvertLead&record={$fields.id.value}\'" name="convert" value="{$MOD.LBL_CONVERTLEAD}">',
16         ),
17         4 => 
18         array (
19           'customCode' => '<input title="{$APP.LBL_DUP_MERGE}" accessKey="M" class="button" onclick="this.form.return_module.value=\'Leads\'; this.form.return_action.value=\'DetailView\';this.form.return_id.value=\'{$fields.id.value}\'; this.form.action.value=\'Step1\'; this.form.module.value=\'MergeRecords\';" type="submit" name="Merge" value="{$APP.LBL_DUP_MERGE}">',
20         ),
21         5 => 
22         array (
23           'customCode' => '<input title="{$APP.LBL_MANAGE_SUBSCRIPTIONS}" class="button" onclick="this.form.return_module.value=\'Leads\'; this.form.return_action.value=\'DetailView\';this.form.return_id.value=\'{$fields.id.value}\'; this.form.action.value=\'Subscriptions\'; this.form.module.value=\'Campaigns\'; this.form.module_tab.value=\'Leads\';" type="submit" name="Manage Subscriptions" value="{$APP.LBL_MANAGE_SUBSCRIPTIONS}">',
24         ),
25       ),
26       'headerTpl' => 'modules/Leads/tpls/DetailViewHeader.tpl',
27     ),
28     'maxColumns' => '2',
29     'widths' => 
30     array (
31       0 => 
32       array (
33         'label' => '10',
34         'field' => '30',
35       ),
36       1 => 
37       array (
38         'label' => '10',
39         'field' => '30',
40       ),
41     ),
42     'includes' => 
43     array (
44       0 => 
45       array (
46         'file' => 'modules/Leads/Lead.js',
47       ),
48     ),
49   ),
50   'panels' => 
51   array (
52     'default' => 
53     array (
54       0 => 
55       array (
56         0 => 
57         array (
58           'name' => 'full_name',
59           'label' => 'LBL_NAME',
60         ),
61         1 => 
62         array (
63           'name' => 'account_name',
64           'label' => 'LBL_ACCOUNT_NAME',
65         ),
66       ),
67       1 => 
68       array (
69         0 => 
70         array (
71           'name' => 'title',
72           'label' => 'LBL_TITLE',
73         ),
74         1 => 
75         array (
76           'name' => 'phone_work',
77           'label' => 'LBL_OFFICE_PHONE',
78         ),
79       ),
80       2 => 
81       array (
82         0 => 
83         array (
84           'name' => 'phone_other',
85           'label' => 'LBL_OTHER_PHONE',
86         ),
87         1 => 
88         array (
89           'name' => 'phone_fax',
90           'label' => 'LBL_FAX_PHONE',
91         ),
92       ),
93       3 => 
94       array (
95         0 => 
96         array (
97           'name' => 'lead_source',
98           'label' => 'LBL_LEAD_SOURCE',
99         ),
100         1 => 
101         array (
102           'name' => 'lead_source_description',
103           'label' => 'LBL_LEAD_SOURCE_DESCRIPTION',
104         ),
105       ),
106       4 => 
107       array (
108         0 => 
109         array (
110           'name' => 'status',
111           'label' => 'LBL_STATUS',
112         ),
113         1 => 
114         array (
115           'name' => 'manufacturers_c',
116           'label' => 'LBL_MANUFACTURERS',
117         ),
118       ),
119       5 => 
120       array (
121         0 => 
122         array (
123           'name' => 'email1',
124           'label' => 'LBL_EMAIL_ADDRESS',
125         ),
126         1 => 
127         array (
128           'name' => 'oe_dealer_code_c',
129           'label' => 'LBL_OE_DEALER_CODE',
130         ),
131       ),
132       6 => 
133       array (
134         0 => 
135         array (
136           'name' => 'refered_by',
137           'label' => 'LBL_REFERED_BY',
138         ),
139         1 => 
140         array (
141           'name' => 'regions_c',
142           'label' => 'LBL_REGIONS',
143         ),
144       ),
145       7 => 
146       array (
147         0 => 
148         array (
149           'name' => 'campaign_name',
150           'label' => 'LBL_CAMPAIGN',
151         ),
152         1 => 
153         array (
154           'name' => 'department',
155           'label' => 'LBL_DEPARTMENT',
156         ),
157       ),
158       8 => 
159       array (
160         0 => 
161         array (
162           'name' => 'do_not_call',
163           'label' => 'LBL_DO_NOT_CALL',
164         ),
165         1 => 
166         array (
167           'name' => 'team_name',
168           'label' => 'LBL_TEAM',
169         ),
170       ),
171       9 => 
172       array (
173         0 => 
174         array (
175           'name' => 'date_modified',
176           'label' => 'LBL_DATE_MODIFIED',
177           'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}',
178         ),
179         1 => 
180         array (
181           'name' => 'assigned_user_name',
182           'label' => 'LBL_ASSIGNED_TO',
183         ),
184       ),
185       10 => 
186       array (
187         0 => 
188         array (
189           'name' => 'created_by',
190           'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}&nbsp;',
191           'label' => 'LBL_DATE_ENTERED',
192         ),
193         1 => 'opportunity_amount',
194       ),
195       11 => 
196       array (
197         0 => 'birthdate',
198       ),
199       12 => 
200       array (
201         0 => 
202         array (
203           'name' => 'primary_address_street',
204           'label' => 'LBL_PRIMARY_ADDRESS',
205           'type' => 'address',
206           'displayParams' => 
207           array (
208             'key' => 'primary',
209           ),
210         ),
211       ),
212       13 => 
213       array (
214         0 => 
215         array (
216           'name' => 'description',
217           'label' => 'LBL_DESCRIPTION',
218         ),
219       ),
220     ),
221   ),
222 );
223 ?>