]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Users/UserSignatureEditView.html
Release 6.5.0
[Github/sugarcrm.git] / modules / Users / UserSignatureEditView.html
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
39  ********************************************************************************/
40 -->
41 <!-- BEGIN: main -->
42 <style>
43         #subjectfield { height: 1.6em; }
44 </style>
45
46 {JAVASCRIPT}
47 <script type="text/javascript" language="Javascript" src="include/javascript/tiny_mce/tiny_mce.js"></script>
48 <script type="text/javascript">
49         function checkSignatureForm() {
50                 if(document.getElementById('name').value == "") {
51                         alert('{MOD.LBL_EMAIL_SIGNATURE_ERROR1}');
52                         return false;
53                 } else {
54                         return true;
55                 }
56         }
57 </script>
58
59 <form name="EditView" method="POST" action="index.php" enctype="multipart/form-data">
60 <table width="100%" cellpadding="0" cellspacing="0" border="0">
61         <tr>
62                 <td>
63                         <input type="hidden" name="module" value="Users">
64                         <input type="hidden" name="record" value="{ID}">
65                         <input type="hidden" name="action">
66                         <input type="hidden" name="form">
67                         <input type="hidden" name="return_module" value="{RETURN_MODULE}">
68                         <input type="hidden" name="return_id" value="{RETURN_ID}">
69                         <input type="hidden" name="return_action" value="{RETURN_ACTION}">
70                         <input type="hidden" name="inpopupwindow" value="{INPOPUPWINDOW}">
71                         <input type="hidden" name="old_id" value="{OLD_ID}">
72                         <input type="hidden" name="the_user_id" value="{THE_USER_ID}">
73                 
74                         <input  title="{APP.LBL_SAVE_BUTTON_TITLE}" 
75                                         accessKey="{APP.LBL_SAVE_BUTTON_KEY}" 
76                                         class="button" 
77                                         onclick="this.form.action.value='SaveSignature'; return checkSignatureForm();" 
78                                         type="submit" 
79                                         name="button" 
80                                         value="  {APP.LBL_SAVE_BUTTON_LABEL}  " >
81                         <input  title="{APP.LBL_CANCEL_BUTTON_TITLE}" 
82                                         accessKey="{APP.LBL_CANCEL_BUTTON_KEY}" 
83                                         class="button" 
84                                         onclick="{CANCEL_SCRIPT}" 
85                                         type="submit" 
86                                         name="button" 
87                                         value="  {APP.LBL_CANCEL_BUTTON_LABEL}  ">
88                 </td>
89                 <td align="right" nowrap><span class="required">{APP.LBL_REQUIRED_SYMBOL}</span> {APP.NTC_REQUIRED}</td>
90                 <td align='right'>{ADMIN_EDIT}</td>
91         </tr>
92 </table>
93
94 <table width="100%" border="0" cellspacing="0" cellpadding="0"  class="edit view">
95         <tr>
96                 <td>
97                         <table width="100%" border="0" cellspacing="0" cellpadding="0">
98                                 <tr>
99                                         <td width="15%" scope="row">
100                                                 <slot>
101                                                         {MOD.LBL_SIGNATURE_NAME} <span class="required">{APP.LBL_REQUIRED_SYMBOL}</span>
102                                                 </slot>
103                                         </td>
104                                         <td width="85%" >
105                                                 <slot>
106                                                         <input id="name" name='name' tabindex="10" type="text" size='30' maxlength="255" value="{NAME}">
107                                                 </slot>
108                                         </td>
109                                 </tr>
110                                 <tr>
111                                         <td colspan=2>&nbsp;</td>
112                                 </tr>
113                                 <tr>
114                                         <td valign="top" scope="row">
115                                                 <slot>
116                                                         {MOD.LBL_SIGNATURE}:
117                                                 </slot>
118                                         </td>
119                                 <td >
120                                         <textarea id="sigText" cols="100" rows="10" name="description">{SIGNATURE_TEXT}</textarea></div>
121                                         </td>
122                                 </tr>
123                         </table>
124                 </td>
125         </tr>
126 </table>
127 </form>
128 {tinyjs}
129 <!-- END: main -->