2 /*********************************************************************************
3 * SugarCRM Community Edition is a customer relationship management program developed by
4 * SugarCRM, Inc. Copyright (C) 2004-2012 SugarCRM Inc.
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.
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
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
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.
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.
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 ********************************************************************************/
37 /*********************************************************************************
39 ********************************************************************************/
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">
56 <td align='right'>{ADMIN_EDIT}</td>
61 <div class="detail view">
62 <table width="100%" border="0" cellspacing="{GRIDLINE}" cellpadding="0">
65 <td scope="row" width='15%'><slot>{MOD.LBL_TYPE}</slot></td>
66 <td colspan="3"><slot>{TYPE}</slot></td>
69 <td scope="row" width='15%'><slot>{MOD.LBL_NAME}</slot></td>
70 <td><slot>{NAME} </slot></td>
71 <td scope="row"><slot>{APP.LBL_DATE_MODIFIED}</slot></td>
72 <td><slot>{DATE_MODIFIED} {APP.LBL_BY} {MODIFIED_BY} </slot></td>
74 <td><slot>{MOD.LBL_PUBLISH}</slot></td>
75 <td><slot><input type="checkbox" name="published" disabled {PUBLISHED}></slot></td>
79 <td scope="row" width='15%'><slot>{MOD.LBL_DESCRIPTION}</slot></td>
80 <td><slot>{DESCRIPTION} </slot></td>
81 <td scope="row"><slot>{APP.LBL_DATE_ENTERED}</slot></td>
82 <td><slot>{DATE_ENTERED} {APP.LBL_BY} {CREATED_BY} </slot></td>
86 <td scope="row" valign="top"><slot></slot></td>
87 <td><slot></slot></td>
91 <td scope="row" valign="top"><slot>{MOD.LBL_SUBJECT}</slot></td>
92 <td><slot>{SUBJECT} </slot></td>
93 <td scope="row" valign="top">
95 <td><slot>{TEAM} </slot></td>
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>
101 <td scope="row" width='15%'><slot>{APP.LBL_ASSIGNED_TO}</slot></td>
102 <td><slot>{ASSIGNED_USER_NAME}</slot></td>
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>
111 function toggle_textarea(obj)
113 if(document.getElementById('text_div').style.display == 'none')
115 document.getElementById('text_div').style.display = 'block';
116 document.getElementById('toggle_textarea_elem').value = '{MOD.LBL_HIDE_ALT_TEXT}'
119 document.getElementById('text_div').style.display = 'none';
120 document.getElementById('toggle_textarea_elem').value = '{MOD.LBL_SHOW_ALT_TEXT}'
123 document.getElementById("html_frame").contentWindow.document.write({BODY_HTML});
124 document.getElementById("html_frame").contentWindow.document.close();
129 <td scope="row" valign="top"><slot>{MOD.LBL_ATTACHMENTS}</td>
130 <td colspan="3"><slot>{ATTACHMENTS} </slot></td>