2 /*********************************************************************************
3 * SugarCRM Community Edition is a customer relationship management program developed by
4 * SugarCRM, Inc. Copyright (C) 2004-2011 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">
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>
59 <div class="detail view">
60 <table width="100%" border="0" cellspacing="{GRIDLINE}" cellpadding="0">
64 <td scope="row" width='15%'><slot>{MOD.LBL_NAME}</slot></td>
65 <td><slot>{NAME} </slot></td>
66 <td scope="row"><slot>{APP.LBL_DATE_MODIFIED}</slot></td>
67 <td><slot>{DATE_MODIFIED} {APP.LBL_BY} {MODIFIED_BY} </slot></td>
69 <td><slot>{MOD.LBL_PUBLISH}</slot></td>
70 <td><slot><input type="checkbox" name="published" disabled {PUBLISHED}></slot></td>
74 <td scope="row" width='15%'><slot>{MOD.LBL_DESCRIPTION}</slot></td>
75 <td><slot>{DESCRIPTION} </slot></td>
76 <td scope="row"><slot>{APP.LBL_DATE_ENTERED}</slot></td>
77 <td><slot>{DATE_ENTERED} {APP.LBL_BY} {CREATED_BY} </slot></td>
81 <td scope="row" valign="top"><slot></slot></td>
82 <td><slot></slot></td>
86 <td scope="row" valign="top"><slot>{MOD.LBL_SUBJECT}</slot></td>
87 <td><slot>{SUBJECT} </slot></td>
88 <td scope="row" valign="top">
90 <td><slot>{TEAM} </slot></td>
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>
96 <td scope="row" width='15%'><slot>{APP.LBL_ASSIGNED_TO}</slot></td>
97 <td><slot>{ASSIGNED_USER_NAME}</slot></td>
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>
106 function toggle_textarea(obj)
108 if(document.getElementById('text_div').style.display == 'none')
110 document.getElementById('text_div').style.display = 'block';
111 document.getElementById('toggle_textarea_elem').value = '{MOD.LBL_HIDE_ALT_TEXT}'
114 document.getElementById('text_div').style.display = 'none';
115 document.getElementById('toggle_textarea_elem').value = '{MOD.LBL_SHOW_ALT_TEXT}'
122 <td scope="row" valign="top"><slot>{MOD.LBL_ATTACHMENTS}</td>
123 <td colspan="3"><slot>{ATTACHMENTS} </slot></td>