]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/EmailTemplates/DetailView.html
Release 6.2.0
[Github/sugarcrm.git] / modules / EmailTemplates / DetailView.html
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
39  ********************************************************************************/
40 -->
41 <!-- BEGIN: main -->
42 <form action="index.php" method="post" name="form" id="form">
43                 <table cellpadding="0" cellspacing="0" border="0" width='100%'>
44                         <input type="hidden" name="module" value="EmailTemplates">
45                         <input type="hidden" name="record" value="{ID}">
46                         <input type="hidden" name="isDuplicate" value=false>
47                         <input type="hidden" name="action">
48                         <input type="hidden" name="return_module">
49                         <input type="hidden" name="return_action">
50                         <input type="hidden" name="return_id">
51                         {PORTAL_ON}
52                 <tr>
53                 <td><!-- BEGIN: edit --><input title="{APP.LBL_EDIT_BUTTON_TITLE}" accessKey="{APP.LBL_EDIT_BUTTON_KEY}" class="button primary" onclick="this.form.return_module.value='EmailTemplates'; this.form.return_action.value='DetailView'; this.form.return_id.value='{ID}'; this.form.action.value='EditView'" type="submit" name="button" value="  {APP.LBL_EDIT_BUTTON_LABEL}  "> <input title="{APP.LBL_DUPLICATE_BUTTON_TITLE}" accessKey="{APP.LBL_DUPLICATE_BUTTON_KEY}" class="button" onclick="this.form.return_module.value='EmailTemplates'; this.form.return_action.value='index'; this.form.isDuplicate.value=true; this.form.action.value='EditView'" type="submit" name="button" value=" {APP.LBL_DUPLICATE_BUTTON_LABEL} "><!-- END: edit --> <input title="{APP.LBL_DELETE_BUTTON_TITLE}" accessKey="{APP.LBL_DELETE_BUTTON_KEY}" class="button" onclick="check_deletable_EmailTemplate();" type="button" name="button" value=" {APP.LBL_DELETE_BUTTON_LABEL} "></td>
54                 <td align='right'>{ADMIN_EDIT}</td>
55                 </tr></table>
56
57         </form>
58
59 <div class="detail view">
60 <table width="100%" border="0" cellspacing="{GRIDLINE}" cellpadding="0">
61 {PAGINATION}
62
63         <tr>
64         <td scope="row" width='15%'><slot>{MOD.LBL_NAME}</slot></td>
65         <td><slot>{NAME}&nbsp;</slot></td>
66         <td scope="row"><slot>{APP.LBL_DATE_MODIFIED}</slot></td>
67         <td><slot>{DATE_MODIFIED} {APP.LBL_BY} {MODIFIED_BY}&nbsp;</slot></td>
68         <!--
69         <td><slot>{MOD.LBL_PUBLISH}</slot></td>
70         <td><slot><input type="checkbox" name="published" disabled {PUBLISHED}></slot></td>
71         -->
72         </tr>
73         <tr>
74         <td scope="row" width='15%'><slot>{MOD.LBL_DESCRIPTION}</slot></td>
75         <td><slot>{DESCRIPTION}&nbsp;</slot></td>
76         <td scope="row"><slot>{APP.LBL_DATE_ENTERED}</slot></td>
77         <td><slot>{DATE_ENTERED} {APP.LBL_BY} {CREATED_BY}&nbsp;</slot></td>
78         </tr>
79 <!--
80         <tr>
81         <td scope="row" valign="top"><slot></slot></td>
82         <td><slot></slot></td>
83         </tr>
84 -->
85         <tr>
86         <td scope="row" valign="top"><slot>{MOD.LBL_SUBJECT}</slot></td>
87         <td><slot>{SUBJECT}&nbsp;</slot></td>
88         <td scope="row" valign="top">
89         </td>
90         <td><slot>{TEAM}&nbsp;</slot></td>
91         </tr>
92         <tr>
93         <td scope="row" width='15%'><slot>{MOD.LBL_SEND_AS_TEXT}</slot></td>
94         <td><slot><input id='text_only' type="checkbox" disabled="disabled" {TEXT_ONLY_CHECKED} /></slot></td>
95         
96         <td scope="row" width='15%'><slot>{APP.LBL_ASSIGNED_TO}</slot></td>
97         <td><slot>{ASSIGNED_USER_NAME}</slot></td>
98         
99         </tr>
100         <tr>
101         <td scope="row" valign="top"><slot>{MOD.LBL_BODY}</slot></td>
102         <td colspan="3"  style="background-color: #ffffff;" ><slot><div id="html_div" style="background-color: #ffffff;padding: 5px">{BODY_HTML}</div>
103 <input id='toggle_textarea_elem' onclick="toggle_textarea(this);" type="button" name="toggle_html" value="{MOD.LBL_SHOW_ALT_TEXT}"/><br>
104 <div id="text_div" style="display: none;background-color: #ffffff;padding: 5px"><pre>{BODY}</pre></div></slot>
105 <script>
106 function toggle_textarea(obj)
107 {
108  if(document.getElementById('text_div').style.display == 'none')
109  {
110         document.getElementById('text_div').style.display = 'block';
111         document.getElementById('toggle_textarea_elem').value = '{MOD.LBL_HIDE_ALT_TEXT}'
112  } else
113  {
114         document.getElementById('text_div').style.display = 'none';
115         document.getElementById('toggle_textarea_elem').value = '{MOD.LBL_SHOW_ALT_TEXT}'
116  }
117 }
118 </script>
119
120         </tr>
121         <tr>
122                 <td scope="row" valign="top"><slot>{MOD.LBL_ATTACHMENTS}</td>
123                 <td colspan="3"><slot>{ATTACHMENTS}&nbsp;</slot></td>
124         </tr>
125
126 </table>
127 </div>
128 <!-- END: main -->