]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/modules/UpgradeWizard/SugarMerge/metadata_files/640/modules/Meetings/metadata/quickcreatedefs.php
Release 6.4.1
[Github/sugarcrm.git] / tests / modules / UpgradeWizard / SugarMerge / metadata_files / 640 / modules / Meetings / metadata / quickcreatedefs.php
1 <?php
2 /*********************************************************************************
3  * SugarCRM Community Edition is a customer relationship management program developed by
4  * SugarCRM, Inc. Copyright (C) 2004-2012 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 ['Meetings'] =
39 array (
40   'QuickCreate' =>
41   array (
42     'templateMeta' =>
43     array (
44       'maxColumns' => '2',
45       'form' =>
46       array (
47         'hidden' =>
48         array (
49            '<input type="hidden" name="isSaveAndNew" value="false">',
50         ),
51         'buttons' =>
52         array (
53
54           array (
55             'customCode' => '<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button" onclick="SUGAR.meetings.fill_invitees();this.form.action.value=\'Save\'; this.form.return_action.value=\'DetailView\'; {if isset($smarty.request.isDuplicate) && $smarty.request.isDuplicate eq "true"}this.form.return_id.value=\'\'; {/if}return check_form(\'EditView\');" type="submit" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}">',
56           ),
57            'CANCEL',
58
59           array (
60             'customCode' => '<input title="{$MOD.LBL_SEND_BUTTON_TITLE}" class="button" onclick="this.form.send_invites.value=\'1\';SUGAR.meetings.fill_invitees();this.form.action.value=\'Save\';this.form.return_action.value=\'EditView\';this.form.return_module.value=\'{$smarty.request.return_module}\';return check_form(\'EditView\');" type="submit" name="button" value="{$MOD.LBL_SEND_BUTTON_LABEL}">',
61           ),
62
63           array (
64             '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="SUGAR.meetings.fill_invitees(); 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.return_id.value=\'{$fields.id.value}\'; return check_form(\'EditView\');" type="submit" name="button" value="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_LABEL}">{/if}',
65           ),
66         ),
67         'headerTpl' => 'modules/Meetings/tpls/header.tpl',
68         'footerTpl' => 'modules/Meetings/tpls/footer.tpl',
69       ),
70       'widths' =>
71       array (
72
73         array (
74           'label' => '10',
75           'field' => '30',
76         ),
77
78         array (
79           'label' => '10',
80           'field' => '30',
81         ),
82       ),
83       'javascript' => '<script type="text/javascript">{$JSON_CONFIG_JAVASCRIPT}</script>
84 {sugar_getscript file="cache/include/javascript/sugar_grp_jsolait.js"}
85 <script>toggle_portal_flag();function toggle_portal_flag()  {literal} { {/literal} {$TOGGLE_JS} {literal} } {/literal} </script>',
86       'useTabs' => false,
87     ),
88     'panels' =>
89     array (
90       'default' =>
91       array (
92
93         array (
94
95           array (
96             'name' => 'name',
97             'displayParams' =>
98             array (
99               'required' => true,
100             ),
101           ),
102
103           array (
104             'name' => 'status',
105             'fields' =>
106             array (
107
108               array (
109                 'name' => 'status',
110               ),
111             ),
112           ),
113         ),
114         array(
115                 'type',
116                 'password'
117         ),
118         array (
119
120           array (
121             'name' => 'date_start',
122             'type' => 'datetimecombo',
123             'displayParams' =>
124             array (
125               'required' => true,
126               'updateCallback' => 'SugarWidgetScheduler.update_time();',
127             ),
128           ),
129
130           array (
131             'name' => 'parent_name',
132             'label' => 'LBL_LIST_RELATED_TO',
133           ),
134         ),
135
136         array (
137
138           array (
139             'name' => 'duration_hours',
140             'label' => 'LBL_DURATION',
141             'customCode' => '{literal}<script type="text/javascript">function isValidDuration(formName) { var form = document.getElementById(formName); if ( form.duration_hours.value + form.duration_minutes.value <= 0 ) { return false; } return true; }</script>{/literal}<div class="duration"><input name="duration_hours" id="duration_hours" size="2" maxlength="2" type="text" value="{$fields.duration_hours.value}" onkeyup="SugarWidgetScheduler.update_time();"/>{$fields.duration_minutes.value} {$MOD.LBL_HOURS_MINS}</div>',
142           ),
143         ),
144
145         array (
146
147           array (
148             'name' => 'reminder_time',
149             '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" id="reminder_checkbox" class="checkbox" value="1" {$REMINDER_CHECKED}><div id="should_remind_list" style="display:{$REMINDER_TIME_DISPLAY}">{$fields.reminder_time.value}</div>',
150             'label' => 'LBL_REMINDER',
151           ),
152
153           array (
154             'name' => 'location',
155             'comment' => 'Meeting location',
156             'label' => 'LBL_LOCATION',
157           ),
158         ),
159          array (
160                  array (
161             'name' => 'assigned_user_name',
162             'label' => 'LBL_ASSIGNED_TO_NAME',
163           ),
164             array (
165               'name' => 'team_name',
166             ),
167
168         ),
169
170         array (
171
172           array (
173             'name' => 'description',
174             'comment' => 'Full text of the note',
175             'label' => 'LBL_DESCRIPTION',
176           ),
177         ),
178       ),
179     ),
180   ),
181 );
182 ?>