]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/EmailTemplates/DetailView.html
Release 6.5.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-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 <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>
54             {ACTION_BUTTON}
55         </td>
56                 <td align='right'>{ADMIN_EDIT}</td>
57                 </tr></table>
58
59         </form>
60
61 <div class="detail view">
62 <table width="100%" border="0" cellspacing="{GRIDLINE}" cellpadding="0">
63 {PAGINATION}
64     <tr>
65     <td scope="row" width='15%'><slot>{MOD.LBL_TYPE}</slot></td>
66     <td colspan="3"><slot>{TYPE}</slot></td>
67     </tr>
68         <tr>
69         <td scope="row" width='15%'><slot>{MOD.LBL_NAME}</slot></td>
70         <td><slot>{NAME}&nbsp;</slot></td>
71         <td scope="row"><slot>{APP.LBL_DATE_MODIFIED}</slot></td>
72         <td><slot>{DATE_MODIFIED} {APP.LBL_BY} {MODIFIED_BY}&nbsp;</slot></td>
73         <!--
74         <td><slot>{MOD.LBL_PUBLISH}</slot></td>
75         <td><slot><input type="checkbox" name="published" disabled {PUBLISHED}></slot></td>
76         -->
77         </tr>
78         <tr>
79         <td scope="row" width='15%'><slot>{MOD.LBL_DESCRIPTION}</slot></td>
80         <td><slot>{DESCRIPTION}&nbsp;</slot></td>
81         <td scope="row"><slot>{APP.LBL_DATE_ENTERED}</slot></td>
82         <td><slot>{DATE_ENTERED} {APP.LBL_BY} {CREATED_BY}&nbsp;</slot></td>
83         </tr>
84 <!--
85         <tr>
86         <td scope="row" valign="top"><slot></slot></td>
87         <td><slot></slot></td>
88         </tr>
89 -->
90         <tr>
91         <td scope="row" valign="top"><slot>{MOD.LBL_SUBJECT}</slot></td>
92         <td><slot>{SUBJECT}&nbsp;</slot></td>
93         <td scope="row" valign="top">
94         </td>
95         <td><slot>{TEAM}&nbsp;</slot></td>
96         </tr>
97         <tr>
98         <td scope="row" width='15%'><slot>{MOD.LBL_SEND_AS_TEXT}</slot></td>
99         <td><slot><input id='text_only' type="checkbox" disabled="disabled" {TEXT_ONLY_CHECKED} /></slot></td>
100         
101         <td scope="row" width='15%'><slot>{APP.LBL_ASSIGNED_TO}</slot></td>
102         <td><slot>{ASSIGNED_USER_NAME}</slot></td>
103         
104         </tr>
105         <tr>
106         <td scope="row" valign="top"><slot>{MOD.LBL_BODY}</slot></td>
107         <td colspan="3"  style="background-color: #ffffff;" ><slot><div id="html_div" style="background-color: #ffffff;padding: 5px"><iframe id="html_frame" src="" style="width:100%; height:500px"></iframe></div>
108 <input id='toggle_textarea_elem' onclick="toggle_textarea(this);" type="button" name="toggle_html" value="{MOD.LBL_SHOW_ALT_TEXT}"/><br>
109 <div id="text_div" style="display: none;background-color: #ffffff;padding: 5px"><pre>{BODY}</pre></div></slot>
110 <script>
111 function toggle_textarea(obj)
112 {
113  if(document.getElementById('text_div').style.display == 'none')
114  {
115         document.getElementById('text_div').style.display = 'block';
116         document.getElementById('toggle_textarea_elem').value = '{MOD.LBL_HIDE_ALT_TEXT}'
117  } else
118  {
119         document.getElementById('text_div').style.display = 'none';
120         document.getElementById('toggle_textarea_elem').value = '{MOD.LBL_SHOW_ALT_TEXT}'
121  }
122 }
123 document.getElementById("html_frame").contentWindow.document.write({BODY_HTML});
124 document.getElementById("html_frame").contentWindow.document.close();
125 </script>
126
127         </tr>
128         <tr>
129                 <td scope="row" valign="top"><slot>{MOD.LBL_ATTACHMENTS}</td>
130                 <td colspan="3"><slot>{ATTACHMENTS}&nbsp;</slot></td>
131         </tr>
132
133 </table>
134 </div>
135 <!-- END: main -->