]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Calendar/tpls/form.tpl
Release 6.5.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-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 <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="full_form" value="">
43 <input type="hidden" name="user_invitees" id="user_invitees">
44 <input type="hidden" name="contact_invitees" id="contact_invitees">
45 <input type="hidden" name="lead_invitees" id="lead_invitees">
46 <input type="hidden" name="send_invites" id="send_invites">
47
48
49 <input type="hidden" name="edit_all_recurrences" id="edit_all_recurrences">
50 <input type="hidden" name="repeat_parent_id" id="repeat_parent_id">
51 <input type="hidden" name="repeat_type" id="repeat_type">
52 <input type="hidden" name="repeat_interval" id="repeat_interval">
53 <input type="hidden" name="repeat_count" id="repeat_count">
54 <input type="hidden" name="repeat_until" id="repeat_until">
55 <input type="hidden" name="repeat_dow" id="repeat_dow">
56
57
58 <div style="padding: 4px 0; font-size: 12px;">
59         {literal}
60         <input type="radio" id="radio_meeting" value="Meetings" onclick="CAL.change_activity_type(this.value);" checked="true"  name="appttype" tabindex="100"/>
61         {/literal}
62         <label for="radio_meeting">{$MOD.LBL_CREATE_MEETING}</label>
63         {literal}
64         <input type="radio" id="radio_call" value="Calls" onclick="CAL.change_activity_type(this.value);" name="appttype" tabindex="100"/>
65         {/literal}
66         <label for="radio_call">{$MOD.LBL_CREATE_CALL}</label>                                                                                  
67 </div>
68
69 <div id="form_content">
70         <input type="hidden" name="date_start" id="date_start" value="{$user_default_date_start}">
71         <input type="hidden" name="duration_hours" id="duration_hours">
72         <input type="hidden" name="duration_minutes" id="duration_minutes">
73 </div>
74
75 </form>
76
77 <script type="text/javascript">
78 enableQS(false);
79 {literal}
80 function cal_isValidDuration(){ 
81         form = document.getElementById('CalendarEditView');
82         if(typeof form.duration_hours == "undefined" || typeof form.duration_minutes == "undefined")
83                 return true;
84         if(form.duration_hours.value + form.duration_minutes.value <= 0){
85                 alert('{/literal}{$MOD.NOTICE_DURATION_TIME}{literal}'); 
86                 return false; 
87         } 
88         return true;
89 }
90 {/literal}
91 </script>
92 <script type="text/javascript" src="include/SugarFields/Fields/Datetimecombo/Datetimecombo.js"></script>