2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.6 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
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. |
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. |
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 +--------------------------------------------------------------------+
26 <div class="crm-block crm-form-block crm-mailing-upload-form-block">
27 {include file="CRM/common/WizardHeader.tpl"}
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"}
33 {include file="CRM/Mailing/Form/Count.tpl"}
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>
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>
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>
50 <tr class="crm-mailing-upload-form-block-template">
51 <td class="label">{$form.template.label}</td>
52 <td>{$form.template.html}</td>
54 <tr class="crm-mailing-upload-form-block-subject"><td class="label">{$form.subject.label}</td>
56 {$form.subject.html|crmAddClass:huge}
57 <input class="crm-token-selector big" data-field="subject" />
58 {help id="id-token-subject" tplFile=$tplFile isAdmin=$isAdmin file="CRM/Contact/Form/Task/Email.hlp"}
61 <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>
64 <fieldset id="compose_id"><legend>{ts}Compose On-screen{/ts}</legend>
65 {include file="CRM/Contact/Form/Task/EmailCommon.tpl" upload=1 noAttach=1}
68 {capture assign=docLink}{docURL page="Sample CiviMail Messages" text="More information and sample messages..." resource="wiki"}{/capture}
69 <fieldset id="upload_id"><legend>{ts}Upload Content{/ts}</legend>
70 <table class="form-layout-compressed">
71 <tr class="crm-mailing-upload-form-block-textFile">
72 <td class="label">{$form.textFile.label}</td>
73 <td>{$form.textFile.html}<br />
74 <span class="description">{ts}Browse to the <strong>TEXT</strong> message file you have prepared for this mailing.{/ts}<br /> {$docLink}</span>
77 <tr class="crm-mailing-upload-form-block-htmlFile">
78 <td class="label">{$form.htmlFile.label}</td>
79 <td>{$form.htmlFile.html}<br />
80 <span class="description">{ts}Browse to the <strong>HTML</strong> message file you have prepared for this mailing.{/ts}<br /> {$docLink}</span>
86 {include file="CRM/Form/attachment.tpl"}
88 <fieldset><legend>{ts}Header / Footer{/ts}</legend>
89 <table class="form-layout-compressed">
90 <tr class="crm-mailing-upload-form-block-header_id">
91 <td class="label">{$form.header_id.label}</td>
92 <td>{$form.header_id.html}<br />
93 <span class="description">{ts}You may choose to include a pre-configured Header block above your message.{/ts}</span>
96 <tr class="crm-mailing-upload-form-block-footer_id">
97 <td class="label">{$form.footer_id.label}</td>
98 <td>{$form.footer_id.html}<br />
99 <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>
105 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl"}</div>
106 </div><!-- / .crm-form-block -->
108 {* -- Javascript for showing/hiding the upload/compose options -- *}
109 {include file="CRM/common/showHide.tpl"}
111 <script type="text/javascript">
113 function showHideUpload()
115 if (document.getElementsByName("upload_type")[0].checked) {
116 cj('#compose_id').hide();
117 cj('.crm-mailing-upload-form-block-template').hide();
118 cj('#upload_id').show();
120 cj('#compose_id').show();
121 cj('.crm-mailing-upload-form-block-template').show();
122 cj('#upload_id').hide();