Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
39de6fd5 | 3 | | CiviCRM version 4.6 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
e7112fa7 | 5 | | Copyright CiviCRM LLC (c) 2004-2015 | |
6a488035 TO |
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> | |
ac0a3db5 CW |
55 | <td colspan="2"> |
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"} | |
6a488035 TO |
59 | </td> |
60 | </tr> | |
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> | |
62 | </table> | |
63 | ||
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} | |
66 | </fieldset> | |
67 | ||
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> | |
75 | </td> | |
76 | </tr> | |
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> | |
81 | </td> | |
82 | </tr> | |
83 | </table> | |
84 | </fieldset> | |
85 | ||
86 | {include file="CRM/Form/attachment.tpl"} | |
87 | ||
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> | |
94 | </td> | |
95 | </tr> | |
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> | |
100 | </td> | |
101 | </tr> | |
102 | </table> | |
103 | </fieldset> | |
104 | ||
105 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl"}</div> | |
106 | </div><!-- / .crm-form-block --> | |
107 | ||
108 | {* -- Javascript for showing/hiding the upload/compose options -- *} | |
109 | {include file="CRM/common/showHide.tpl"} | |
110 | {literal} | |
111 | <script type="text/javascript"> | |
112 | showHideUpload(); | |
113 | function showHideUpload() | |
114 | { | |
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(); | |
119 | } else { | |
120 | cj('#compose_id').show(); | |
121 | cj('.crm-mailing-upload-form-block-template').show(); | |
122 | cj('#upload_id').hide(); | |
123 | verify( ); | |
124 | } | |
125 | } | |
126 | </script> | |
127 | {/literal} |