]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/modules/UpgradeWizard/SugarMerge/od_metadata_files/554/modules/Leads/metadata/detailviewdefs.php
Added unit tests.
[Github/sugarcrm.git] / tests / modules / UpgradeWizard / SugarMerge / od_metadata_files / 554 / modules / Leads / metadata / detailviewdefs.php
1 <?php
2 $viewdefs ['Leads'] = 
3 array (
4   'DetailView' => 
5   array (
6     'templateMeta' => 
7     array (
8       'form' => 
9       array (
10         'buttons' => 
11         array (
12           0 => 'EDIT',
13           1 => 'DUPLICATE',
14           2 => 'DELETE',
15           3 => 
16           array (
17             '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}">',
18           ),
19           4 => 
20           array (
21             '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}">',
22           ),
23           5 => 
24           array (
25             '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}">',
26           ),
27         ),
28         'headerTpl' => 'modules/Leads/tpls/DetailViewHeader.tpl',
29       ),
30       'maxColumns' => '2',
31       'widths' => 
32       array (
33         0 => 
34         array (
35           'label' => '10',
36           'field' => '30',
37         ),
38         1 => 
39         array (
40           'label' => '10',
41           'field' => '30',
42         ),
43       ),
44       'includes' => 
45       array (
46         0 => 
47         array (
48           'file' => 'modules/Leads/Lead.js',
49         ),
50       ),
51     ),
52     'panels' => 
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         1 => 'opportunity_amount',
72       ),
73       3 => 
74       array (
75         0 => 'refered_by',
76         1 => 
77         array (
78           'name' => 'phone_work',
79           'label' => 'LBL_OFFICE_PHONE',
80           'customCode' => '{fonality_phone value=$fields.phone_work.value this_module=Leads this_id=$fields.id.value}',
81         ),
82       ),
83       4 => 
84       array (
85         0 => 
86         array (
87           'name' => 'full_name',
88           'label' => 'LBL_NAME',
89         ),
90         1 => 
91         array (
92           'name' => 'phone_mobile',
93           'label' => 'LBL_MOBILE_PHONE',
94           'customCode' => '{fonality_phone value=$fields.phone_mobile.value this_module=Leads this_id=$fields.id.value}',
95         ),
96       ),
97       5 => 
98       array (
99         0 => 'birthdate',
100         1 => 
101         array (
102           'name' => 'phone_home',
103           'label' => 'LBL_HOME_PHONE',
104           'customCode' => '{fonality_phone value=$fields.phone_home.value this_module=Leads this_id=$fields.id.value}',
105         ),
106       ),
107       6 => 
108       array (
109         0 => 'account_name',
110         1 => 
111         array (
112           'name' => 'phone_other',
113           'label' => 'LBL_OTHER_PHONE',
114           'customCode' => '{fonality_phone value=$fields.phone_other.value this_module=Leads this_id=$fields.id.value}',
115         ),
116       ),
117       7 => 
118       array (
119         0 => 'title',
120         1 => 
121         array (
122           'name' => 'phone_fax',
123           'label' => 'LBL_FAX_PHONE',
124           'customCode' => '{fonality_phone value=$fields.phone_fax.value this_module=Leads this_id=$fields.id.value}',
125         ),
126       ),
127       8 => 
128       array (
129         0 => 'department',
130         1 => 'do_not_call',
131       ),
132       9 => 
133       array (
134         0 => 'team_name',
135         1 => 
136         array (
137           'name' => 'date_modified',
138           'label' => 'LBL_DATE_MODIFIED',
139           'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}',
140         ),
141       ),
142       10 => 
143       array (
144       ),
145       11 => 
146       array (
147         0 => 
148         array (
149           'name' => 'assigned_user_name',
150           'label' => 'LBL_ASSIGNED_TO',
151         ),
152         1 => 
153         array (
154           'name' => 'created_by',
155           'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}&nbsp;',
156           'label' => 'LBL_DATE_ENTERED',
157         ),
158       ),
159       12 => 
160       array (
161         0 => 
162         array (
163           'name' => 'primary_address_street',
164           'label' => 'LBL_PRIMARY_ADDRESS',
165           'type' => 'address',
166           'displayParams' => 
167           array (
168             'key' => 'primary',
169           ),
170         ),
171         1 => 
172         array (
173           'name' => 'alt_address_street',
174           'label' => 'LBL_ALTERNATE_ADDRESS',
175           'type' => 'address',
176           'displayParams' => 
177           array (
178             'key' => 'alt',
179           ),
180         ),
181       ),
182       13 => 
183       array (
184         0 => 'description',
185         1 => '',
186       ),
187       14 => 
188       array (
189         0 => 'email1',
190       ),
191     ),
192   ),
193 );
194 ?>