commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-old / civicrm / templates / CRM / Mailing / Form / ForwardMailing.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.6 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
8 | |
9 | CiviCRM is free software; you can copy, modify, and distribute it |
10 | under the terms of the GNU Affero General Public License |
11 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
12 | |
13 | CiviCRM is distributed in the hope that it will be useful, but |
14 | WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
16 | See the GNU Affero General Public License for more details. |
17 | |
18 | You should have received a copy of the GNU Affero General Public |
19 | License and the CiviCRM Licensing Exception along |
20 | with this program; if not, contact CiviCRM LLC |
21 | at info[AT]civicrm[DOT]org. If you have questions about the |
22 | GNU Affero General Public License or the licensing of CiviCRM, |
23 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
24 +--------------------------------------------------------------------+
25 *}
26 <div class="crm-block crm-mailing-forward-form-block">
27 <br />
28 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div><br />
29 <table class="form-layout">
30 <tr class="crm-mailing-forward-form-block-fromEmail"><td class="label">From</td><td>{$fromEmail}</td></tr>
31 <tr><td colspan="2">{ts}Please enter up to 5 email addresses to receive the mailing.{/ts}</td></tr>
32 <tr class="crm-mailing-forward-form-block-email_0"><td class="label" >{$form.email_0.label}</td><td>{$form.email_0.html}</td></tr>
33 <tr class="crm-mailing-forward-form-block-email_1"><td class="label" >{$form.email_1.label}</td><td>{$form.email_1.html}</td></tr>
34 <tr class="crm-mailing-forward-form-block-email_2"><td class="label" >{$form.email_2.label}</td><td>{$form.email_2.html}</td></tr>
35 <tr class="crm-mailing-forward-form-block-email_3"><td class="label" >{$form.email_3.label}</td><td>{$form.email_3.html}</td></tr>
36 <tr class="crm-mailing-forward-form-block-email_4"><td class="label" >{$form.email_4.label}</td><td>{$form.email_4.html}</td></tr>
37
38 </table>
39 <div id="comment_show">
40 <a href="#" class="button" onclick="cj('#comment_show').hide(); cj('#comment').show(); document.getElementById('forward_comment').focus(); return false;"><span>&raquo; {ts}Add Comment{/ts}</span></a>
41 </div><div class="spacer"></div>
42 <div id="comment" style="display:none">
43 <table class="form-layout">
44 <tr class="crm-mailing-forward-form-block-forward_comment"><td><a href="#" onclick="cj('#comment').hide(); cj('#comment_show').show(); return false;"><img src="{$config->resourceBase}i/TreeMinus.gif" class="action-icon" alt="{ts}close section{/ts}"/></a>
45 <label>{$form.forward_comment.label}</label></td>
46 <td>{$form.forward_comment.html}<br /><br />
47 &nbsp;{$form.html_comment.html}<br /></td>
48 </tr>
49 </table>
50 </div>
51 <br />
52 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
53 </div>
54
55 {literal}
56 <script type="text/javascript" >
57 var editor = {/literal}"{$editor}"{literal};
58 {/literal}
59 {if $editor eq "fckeditor"}
60 {literal}
61 function FCKeditor_OnComplete( editorInstance )
62 {
63 oEditor = FCKeditorAPI.GetInstance('html_comment');
64 loadEditor();
65 editorInstance.Events.AttachEvent( 'OnFocus') ;
66 }
67 {/literal}
68 {/if}
69 {if $editor eq "tinymce"}
70 {literal}
71 function customEvent() {
72 loadEditor();
73 tinyMCE.get('html_comment').onKeyPress.add(function(ed, e) {
74 });
75 }
76
77 tinyMCE.init({
78 oninit : "customEvent"
79 });
80
81 {/literal}
82 {/if}
83 {literal}
84 </script>
85 {/literal}