]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/modules/UpgradeWizard/SugarMerge/metadata_files/custom/modules/Calls/metadata/editviewdefs.php
Release 6.2.0
[Github/sugarcrm.git] / tests / modules / UpgradeWizard / SugarMerge / metadata_files / custom / modules / Calls / 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 ['Calls'] = 
39 array (
40   'EditView' => 
41   array (
42     'templateMeta' => 
43     array (
44       'maxColumns' => '2',
45       'form' => 
46       array (
47         'hidden' => 
48         array (
49           0 => '<input type="hidden" name="isSaveAndNew" value="false">',
50           1 => '<input type="hidden" name="send_invites">',
51           2 => '<input type="hidden" name="user_invitees">',
52           3 => '<input type="hidden" name="lead_invitees">',
53           4 => '<input type="hidden" name="contact_invitees">',
54         ),
55         'buttons' => 
56         array (
57           0 => 
58           array (
59                         'customCode' => '<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button primary" onclick="fill_invitees();document.forms[0].action.value=\'Save\'; document.forms[0].return_action.value=\'DetailView\'; {if isset($smarty.request.isDuplicate) && $smarty.request.isDuplicate eq "true"}document.forms[0].return_id.value=\'\'; {/if}formSubmitCheck();;" type="button" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}">',            
60           ),
61           1 => 'CANCEL',
62           2 => 
63           array (
64                         'customCode' => '<input title="{$MOD.LBL_SEND_BUTTON_TITLE}" class="button" onclick="document.forms[0].send_invites.value=\'1\';fill_invitees();document.forms[0].action.value=\'Save\';document.forms[0].return_action.value=\'EditView\';document.forms[0].return_module.value=\'{$smarty.request.return_module}\';formSubmitCheck();;" type="button" name="button" value="{$MOD.LBL_SEND_BUTTON_LABEL}">',            
65           ),
66           3 => 
67           array (
68                         'customCode' => '{if $fields.status.value != "Held"}<input title="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_TITLE}" accessKey="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_KEY}" class="button" onclick="fill_invitees(); document.forms[0].status.value=\'Held\'; document.forms[0].action.value=\'Save\'; document.forms[0].return_module.value=\'Calls\'; document.forms[0].isDuplicate.value=true; document.forms[0].isSaveAndNew.value=true; document.forms[0].return_action.value=\'EditView\'; document.forms[0].return_id.value=\'{$fields.id.value}\'; formSubmitCheck();" type="button" name="button" value="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_LABEL}">{/if}',
69           ),
70         ),
71         'footerTpl' => 'modules/Calls/tpls/footer.tpl',
72       ),
73       'widths' => 
74       array (
75         0 => 
76         array (
77           'label' => '10',
78           'field' => '30',
79         ),
80         1 => 
81         array (
82           'label' => '10',
83           'field' => '30',
84         ),
85       ),
86       'javascript' => '<script type="text/javascript" src="include/JSON.js?s=94932f0dc915603816562a2cc59dbcd0&c=1"></script>
87 <script type="text/javascript" src="include/jsolait/init.js?s=94932f0dc915603816562a2cc59dbcd0&c=1"></script>
88 <script type="text/javascript" src="include/jsolait/lib/urllib.js?s=94932f0dc915603816562a2cc59dbcd0&c=1"></script>
89 <script type="text/javascript">{$JSON_CONFIG_JAVASCRIPT}</script>
90 <script type="text/javascript" src="include/javascript/jsclass_base.js?s=94932f0dc915603816562a2cc59dbcd0&c=1"></script>
91 <script type="text/javascript" src="include/javascript/jsclass_async.js?s=94932f0dc915603816562a2cc59dbcd0&c=1"></script>
92 <script type="text/javascript" src="modules/Meetings/jsclass_scheduler.js?s=94932f0dc915603816562a2cc59dbcd0&c=1"></script>
93 <script>toggle_portal_flag();function toggle_portal_flag()  {ldelim} {$TOGGLE_JS} {rdelim} 
94 function formSubmitCheck(){ldelim}if(check_form(\'EditView\') && isValidDuration()){ldelim}document.forms[0].submit();{rdelim}{rdelim}</script>',
95        'useTabs' => false,
96     ),
97     'panels' => 
98     array (
99       'lbl_call_information' => 
100       array (
101         array (
102           'name' => 'name',
103           array (
104             'name' => 'status',
105             'fields' => 
106             array (
107               array (
108                 'name' => 'direction',
109               ),
110               array (
111                 'name' => 'status',
112               ),
113             ),
114           ),
115         ),
116         array (
117           array (
118             'name' => 'date_start',
119             'displayParams' => 
120             array (
121               'updateCallback' => 'SugarWidgetScheduler.update_time();',
122             ),
123             'label' => 'LBL_DATE_TIME',
124           ),
125           array (
126             'name' => 'parent_name',
127             'label' => 'LBL_LIST_RELATED_TO',
128           ),
129         ),
130         array (
131
132           array (
133             'name' => 'reminder_time',
134             'customCode' => '{if $fields.reminder_checked.value == "1"}{assign var="REMINDER_TIME_DISPLAY" value="inline"}{assign var="REMINDER_CHECKED" value="checked"}{else}{assign var="REMINDER_TIME_DISPLAY" value="none"}{assign var="REMINDER_CHECKED" value=""}{/if}<input name="reminder_checked" type="hidden" value="0"><input name="reminder_checked" onclick=\'toggleDisplay("should_remind_list");\' type="checkbox" class="checkbox" value="1" {$REMINDER_CHECKED}><div id="should_remind_list" style="display:{$REMINDER_TIME_DISPLAY}">{$fields.reminder_time.value}</div>',
135             'label' => 'LBL_REMINDER',
136           ),        
137           array (
138             'name' => 'duration_hours',
139             'label' => 'LBL_DURATION',
140             'customCode' => '{literal}<script type="text/javascript">function isValidDuration() { form = document.getElementById(\'EditView\'); if ( form.duration_hours.value + form.duration_minutes.value <= 0 ) { alert(\'{/literal}{$MOD.NOTICE_DURATION_TIME}{literal}\'); return false; } return true; }</script>{/literal}<input id="duration_hours" name="duration_hours" tabindex="1" size="2" maxlength="2" type="text" value="{$fields.duration_hours.value}" onkeyup="SugarWidgetScheduler.update_time();"/>{$fields.duration_minutes.value}&nbsp;<span class="dateFormat">{$MOD.LBL_HOURS_MINUTES}</span>',
141             
142           ),
143
144         ),
145         array (
146           array (
147             'name' => 'description',
148             'comment' => 'Full text of the note',
149             'label' => 'LBL_DESCRIPTION',
150           ),
151         ),
152       ),
153       'LBL_PANEL_ASSIGNMENT' => 
154       array (
155         array (
156           array (
157             'name' => 'assigned_user_name',
158             'label' => 'LBL_ASSIGNED_TO_NAME',
159           ),
160           array(
161                         'name'=>'team_name', 
162                     'displayParams'=>array('display'=>true),
163           ),
164         ),
165       ),
166     ),
167   ),
168 );
169 ?>