]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/modules/UpgradeWizard/SugarMerge/od_metadata_files/custom/modules/Meetings/metadata/detailviewdefs.php
Added unit tests.
[Github/sugarcrm.git] / tests / modules / UpgradeWizard / SugarMerge / od_metadata_files / custom / modules / Meetings / metadata / detailviewdefs.php
1 <?php
2 $viewdefs ['Meetings'] = 
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' => '{if $fields.status.value != "Held"} <input type="hidden" name="isSaveAndNew" value="false">  <input type="hidden" name="status" value="">  <input type="hidden" name="isSaveFromDetailView" value="true">  <input title="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_TITLE}"  accesskey="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_KEY}"  class="button"  onclick="this.form.status.value=\'Held\'; this.form.action.value=\'Save\';this.form.return_module.value=\'Meetings\';this.form.isDuplicate.value=true;this.form.isSaveAndNew.value=true;this.form.return_action.value=\'EditView\'; this.form.isDuplicate.value=true;this.form.return_id.value=\'{$fields.id.value}\';"  name="button"  value="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_TITLE}"  type="submit">{/if}',
18           ),
19           4 => 
20           array (
21             'customCode' => '{if $fields.status.value != "Held"} <input type="hidden" name="isSave" value="false">  <input title="{$APP.LBL_CLOSE_BUTTON_TITLE}"  accesskey="{$APP.LBL_CLOSE_BUTTON_KEY}"  class="button"  onclick="this.form.status.value=\'Held\'; this.form.action.value=\'Save\';this.form.return_module.value=\'Meetings\';this.form.isSave.value=true;this.form.return_action.value=\'DetailView\'; this.form.return_id.value=\'{$fields.id.value}\'"  name="button1"  value="{$APP.LBL_CLOSE_BUTTON_TITLE}"  type="submit">{/if}',
22           ),
23         ),
24       ),
25       'maxColumns' => '2',
26       'widths' => 
27       array (
28         0 => 
29         array (
30           'label' => '10',
31           'field' => '30',
32         ),
33         1 => 
34         array (
35           'label' => '10',
36           'field' => '30',
37         ),
38       ),
39     ),
40     'panels' => 
41     array (
42       'default' => 
43       array (
44         0 => 
45         array (
46           0 => 
47           array (
48             'name' => 'name',
49             'label' => 'LBL_SUBJECT',
50           ),
51           1 => 
52           array (
53             'name' => 'status',
54             'label' => 'LBL_STATUS',
55           ),
56         ),
57         1 => 
58         array (
59           0 => 
60           array (
61             'name' => 'location',
62             'label' => 'LBL_LOCATION',
63           ),
64           1 => 
65           array (
66             'name' => 'parent_name',
67             'customLabel' => '{sugar_translate label=\'LBL_MODULE_NAME\' module=$fields.parent_type.value}',
68             'label' => 'LBL_LIST_RELATED_TO',
69           ),
70         ),
71         2 => 
72         array (
73           0 => 
74           array (
75             'name' => 'date_start',
76             'label' => 'LBL_DATE_TIME',
77           ),
78           1 => 
79           array (
80             'name' => 'duration_hours',
81             'customCode' => '{$fields.duration_hours.value}{$MOD.LBL_HOURS_ABBREV} {$fields.duration_minutes.value}{$MOD.LBL_MINSS_ABBREV}&nbsp;',
82             'label' => 'LBL_DURATION',
83           ),
84         ),
85         3 => 
86         array (
87           0 => 
88           array (
89             'name' => 'assigned_user_name',
90             'label' => 'LBL_ASSIGNED_TO',
91           ),
92           1 => 
93           array (
94             'name' => 'created_by_name',
95             'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}&nbsp;',
96             'label' => 'LBL_DATE_ENTERED',
97           ),
98         ),
99         4 => 
100         array (
101           0 => 
102           array (
103             'name' => 'reminder_checked',
104             'fields' => 
105             array (
106               0 => 'reminder_checked',
107               1 => 'reminder_time',
108             ),
109             'label' => 'LBL_REMINDER',
110           ),
111           1 => 
112           array (
113             'name' => 'description',
114             'label' => 'LBL_DESCRIPTION',
115           ),
116         ),
117         5 => 
118         array (
119           0 => 
120           array (
121             'name' => 'meetings_opportunities_name',
122           ),
123         ),
124       ),
125     ),
126   ),
127 );
128 ?>