]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/modules/UpgradeWizard/SugarMerge/metadata_files/custom/modules/Leads/metadata/detailviewdefs.php
Added unit tests.
[Github/sugarcrm.git] / tests / modules / UpgradeWizard / SugarMerge / metadata_files / custom / modules / Leads / metadata / detailviewdefs.php
1 <?php
2 // created: 2010-05-04 09:29:20
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 => 'lead_source',
57         1 => 'status',
58       ),
59       1 => 
60       array (
61         0 => 'lead_source_description',
62         1 => 'status_description',
63       ),
64       2 => 
65       array (
66         0 => 
67         array (
68           'name' => 'campaign_name',
69           'label' => 'LBL_CAMPAIGN',
70         ),
71       ),
72       3 => 
73       array (
74         0 => 'refered_by',
75         1 => 'phone_work',
76       ),
77       4 => 
78       array (
79         0 => 
80         array (
81           'name' => 'full_name',
82           'label' => 'LBL_NAME',
83         ),
84         1 => 'phone_mobile',
85       ),
86       6 => 
87       array (
88         0 => 
89         array (
90           'name' => 'account_name',
91           'displayParams' => 
92           array (
93           ),
94         ),
95       ),
96       7 => 
97       array (
98         0 => 'title',
99         1 => 'phone_fax',
100       ),
101       8 => 
102       array (
103         0 => 'department',
104         1 => 'do_not_call',
105       ),
106       9 => 
107       array (
108         0 => 'team_name',
109         1 => 
110         array (
111           'name' => 'date_modified',
112           'label' => 'LBL_DATE_MODIFIED',
113           'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}',
114         ),
115       ),
116       11 => 
117       array (
118         0 => 
119         array (
120           'name' => 'assigned_user_name',
121           'label' => 'LBL_ASSIGNED_TO',
122         ),
123       ),
124       12 => 
125       array (
126         0 => 
127         array (
128           'name' => 'primary_address_street',
129           'label' => 'LBL_PRIMARY_ADDRESS',
130           'type' => 'address',
131           'displayParams' => 
132           array (
133             'key' => 'primary',
134           ),
135         ),
136         1 => 
137         array (
138           'name' => 'alt_address_street',
139           'label' => 'LBL_ALTERNATE_ADDRESS',
140           'type' => 'address',
141           'displayParams' => 
142           array (
143             'key' => 'alt',
144           ),
145         ),
146       ),
147       13 => 
148       array (
149         0 => 'description',
150         1 => '',
151       ),
152       14 => 
153       array (
154         0 => 'email1',
155       ),
156       15 =>
157       array (
158         0 => 'field1_c',
159         1 => 'field2_c',
160       )
161     ),
162     'lbl_panel_assignment' => 
163     array (
164       1 => 
165       array (
166         1 => 
167         array (
168           'name' => 'date_entered',
169           'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}',
170         ),
171       ),
172     ),
173   ),
174 );
175 ?>