Merge remote-tracking branch 'upstream/4.4' into 4.4-master-2014-02-18-07-54-54
[civicrm-core.git] / templates / CRM / Mailing / Form / Upload.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.4 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2013 |
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-form-block crm-mailing-upload-form-block">
27 {include file="CRM/common/WizardHeader.tpl"}
28
29 <div id="help">
30 {ts}You can either <strong>upload</strong> the mailing content from your computer OR <strong>compose</strong> the content on this screen.{/ts} {help id="content-intro"}
31 </div>
32
33 {include file="CRM/Mailing/Form/Count.tpl"}
34
35 <table class="form-layout-compressed">
36 <tr class="crm-mailing-upload-form-block-from_email_address"><td class="label">{$form.from_email_address.label}</td>
37 <td>{$form.from_email_address.html} {help id ="id-from_email" isAdmin=$isAdmin}</td>
38 </tr>
39 {if $trackReplies}
40 <tr class="crm-mailing-upload-form-block-reply_to_address">
41 <td style="color:#3E3E3E;"class="label">{ts}Reply-To{/ts}<span class="crm-marker">*</span></td>
42 <td>{ts}Auto-Generated{/ts}</td>
43 </tr>
44 {else}
45 <tr class="crm-mailing-upload-form-block-reply_to_address">
46 <td class="label">{$form.reply_to_address.label}</td>
47 <td>{$form.reply_to_address.html}</td>
48 </tr>
49 {/if}
50 <tr class="crm-mailing-upload-form-block-template">
51 <td class="label">{$form.template.label}</td>
52 <td>{$form.template.html}</td>
53 </tr>
54 <tr class="crm-mailing-upload-form-block-subject"><td class="label">{$form.subject.label}</td>
55 <td colspan="2">{$form.subject.html|crmAddClass:huge}
56 <a href="#" onClick="return showToken('Subject', 3);">{$form.token3.label}</a>
57 {help id="id-token-subject" file="CRM/Contact/Form/Task/Email.hlp"}
58 <div id='tokenSubject' style="display:none">
59 <input style="border:1px solid #999999;" type="text" id="filter3" size="20" name="filter3" onkeyup="filter(this, 3)"/><br />
60 <span class="description">{ts}Begin typing to filter list of tokens{/ts}</span><br/>
61 {$form.token3.html}
62 </div>
63 </td>
64 </tr>
65 <tr class="crm-mailing-upload-form-block-upload_type"><td></td><td colspan="2">{$form.upload_type.label} {$form.upload_type.html} {help id="upload-compose"}</td></tr>
66 </table>
67
68 <fieldset id="compose_id"><legend>{ts}Compose On-screen{/ts}</legend>
69 {include file="CRM/Contact/Form/Task/EmailCommon.tpl" upload=1 noAttach=1}
70 </fieldset>
71
72 {capture assign=docLink}{docURL page="Sample CiviMail Messages" text="More information and sample messages..." resource="wiki"}{/capture}
73 <fieldset id="upload_id"><legend>{ts}Upload Content{/ts}</legend>
74 <table class="form-layout-compressed">
75 <tr class="crm-mailing-upload-form-block-textFile">
76 <td class="label">{$form.textFile.label}</td>
77 <td>{$form.textFile.html}<br />
78 <span class="description">{ts}Browse to the <strong>TEXT</strong> message file you have prepared for this mailing.{/ts}<br /> {$docLink}</span>
79 </td>
80 </tr>
81 <tr class="crm-mailing-upload-form-block-htmlFile">
82 <td class="label">{$form.htmlFile.label}</td>
83 <td>{$form.htmlFile.html}<br />
84 <span class="description">{ts}Browse to the <strong>HTML</strong> message file you have prepared for this mailing.{/ts}<br /> {$docLink}</span>
85 </td>
86 </tr>
87 </table>
88 </fieldset>
89
90 {include file="CRM/Form/attachment.tpl"}
91
92 <fieldset><legend>{ts}Header / Footer{/ts}</legend>
93 <table class="form-layout-compressed">
94 <tr class="crm-mailing-upload-form-block-header_id">
95 <td class="label">{$form.header_id.label}</td>
96 <td>{$form.header_id.html}<br />
97 <span class="description">{ts}You may choose to include a pre-configured Header block above your message.{/ts}</span>
98 </td>
99 </tr>
100 <tr class="crm-mailing-upload-form-block-footer_id">
101 <td class="label">{$form.footer_id.label}</td>
102 <td>{$form.footer_id.html}<br />
103 <span class="description">{ts}You may choose to include a pre-configured Footer block below your message. This is a good place to include the required unsubscribe, opt-out and postal address tokens.{/ts}</span>
104 </td>
105 </tr>
106 </table>
107 </fieldset>
108
109 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl"}</div>
110 </div><!-- / .crm-form-block -->
111
112 {* -- Javascript for showing/hiding the upload/compose options -- *}
113 {include file="CRM/common/showHide.tpl"}
114 {literal}
115 <script type="text/javascript">
116 showHideUpload();
117 function showHideUpload()
118 {
119 if (document.getElementsByName("upload_type")[0].checked) {
120 cj('#compose_id').hide();
121 cj('.crm-mailing-upload-form-block-template').hide();
122 cj('#upload_id').show();
123 } else {
124 cj('#compose_id').show();
125 cj('.crm-mailing-upload-form-block-template').show();
126 cj('#upload_id').hide();
127 verify( );
128 }
129 }
130 </script>
131 {/literal}
132
133 {* include jscript to warn if unsaved form field changes *}
134 {include file="CRM/common/formNavigate.tpl"}