]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Calendar/tpls/form.tpl
Release 6.4.0
[Github/sugarcrm.git] / modules / Calendar / tpls / form.tpl
1 {*
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 <form id="CalendarEditView" name="CalendarEditView" method="POST">      
39                 
40 <input type="hidden" name="current_module" id="current_module" value="Meetings">
41 <input type="hidden" name="record" id="record" value="">
42 <input type="hidden" name="user_invitees" id="user_invitees">
43 <input type="hidden" name="contact_invitees" id="contact_invitees">
44 <input type="hidden" name="lead_invitees" id="lead_invitees">
45 <input type="hidden" name="send_invites" id="send_invites">
46
47 <div style="padding: 4px 0; font-size: 12px;">
48         {literal}
49         <input type="radio" id="radio_meeting" value="Meetings" onclick="CAL.change_activity_type(this.value);" checked="true"  name="appttype" tabindex="100"/>
50         {/literal}
51         <label for="radio_meeting">{$MOD.LBL_CREATE_MEETING}</label>
52         {literal}
53         <input type="radio" id="radio_call" value="Calls" onclick="CAL.change_activity_type(this.value);" name="appttype" tabindex="100"/>
54         {/literal}
55         <label for="radio_call">{$MOD.LBL_CREATE_CALL}</label>                                                                                  
56 </div>
57
58 <div id="form_content">
59         <input type="hidden" name="date_start" id="date_start" value="{$user_default_date_start}">
60         <input type="hidden" name="duration_hours" id="duration_hours">
61         <input type="hidden" name="duration_minutes" id="duration_minutes">     
62 </div>
63
64 </form>
65
66 <script type="text/javascript">
67 enableQS(false);
68 {literal}
69 function cal_isValidDuration(){ 
70         form = document.getElementById('CalendarEditView'); 
71         if(form.duration_hours.value + form.duration_minutes.value <= 0){
72                 alert('{/literal}{$MOD.NOTICE_DURATION_TIME}{literal}'); 
73                 return false; 
74         } 
75         return true;
76 }
77 {/literal}
78 </script>
79 <script type="text/javascript" src="include/SugarFields/Fields/Datetimecombo/Datetimecombo.js"></script>