2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.6 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2014 |
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-schedule-form-block">
27 {include file="CRM/common/WizardHeader.tpl"}
29 {ts}You can schedule this mailing to be sent starting at a specific date and time, OR you can request that it be sent as soon as possible by checking "Send Immediately".{/ts} {help id="sending"}
31 {include file="CRM/Mailing/Form/Count.tpl"}
33 <table class="form-layout">
35 <tr class="crm-mailing-schedule-form-block-now">
36 <td class="label">{$form.now.label}</td>
37 <td>{$form.now.html}</td>
40 <td class="label">{ts}OR{/ts}</td>
43 <tr class="crm-mailing-schedule-form-block-start_date">
44 <td class="label">{$form.start_date.label}</td>
45 <td>{include file="CRM/common/jcalendar.tpl" elementName=start_date}
46 <div class="description">{ts}Set a date and time when you want CiviMail to start sending this mailing.{/ts}</div>
51 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl"}</div>
54 <div class="crm-accordion-wrapper crm-plain_text_email-accordion collapsed">
55 <div class="crm-accordion-header">
56 {ts}Preview Mailing{/ts}
57 </div><!-- /.crm-accordion-header -->
58 <div class="crm-accordion-body">
59 <table class="form-layout">
60 <tr class="crm-mailing-test-form-block-subject"><td class="label">{ts}Subject:{/ts}</td><td>{$preview.subject}</td></tr>
61 {if $preview.attachment}
62 <tr class="crm-mailing-test-form-block-attachment"><td class="label">{ts}Attachment(s):{/ts}</td><td>{$preview.attachment}</td></tr>
65 <tr><td class="label">{if $preview.type eq 'html'}{ts}Mailing HTML:{/ts}{else}{ts}Mailing Text:{/ts}{/if}</td><td><iframe height="300" src="{$preview.viewURL}" width="80%"><a href="{$preview.viewURL}" onclick="window.open(this.href); return false;">{ts}Mailing Text:{/ts}</a></iframe></td></tr>
68 </div><!-- /.crm-accordion-body -->
69 </div><!-- /.crm-accordion-wrapper -->
73 <script type="text/javascript">
76 $('#start_date_display').change(function() {
77 $('#now').prop('checked', !$(this).val());
79 $('#now').change(function() {
80 if ($(this).prop('checked')) {
81 $('#start_date_display, #start_date, #start_date_time').val('');
83 $('#start_date_display').focus();