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-search-form-block">
27 <table class="form-layout">
29 <td>{$form.mailing_name.label} {help id="id-mailing_name"}<br />
30 {$form.mailing_name.html|crmAddClass:big}
35 <label>{if $sms eq 1}{ts}SMS Date{/ts}{else}{ts}Mailing Date{/ts}{/if}</label>
39 {include file="CRM/Core/DateRange.tpl" fieldName="mailing" from='_from' to='_to'}
42 <td colspan="1">{$form.sort_name.label} {help id="id-create_sort_name"}<br />
43 {$form.sort_name.html|crmAddClass:big}
45 <div class="crm-search-form-block-is_archive">
46 {$form.is_archived.label} {help id="is_archived"}<br/>
47 {$form.is_archived.html}
50 {if $form.mailing_status}
51 <td width="100%"><label>{if $sms eq 1}{ts}SMS Status{/ts}{else}{ts}Mailing Status{/ts}{/if}</label><br />
52 <div class="listing-box" style="height: auto">
53 {foreach from=$form.mailing_status item="mailing_status_val"}
54 <div class="{cycle values="odd-row,even-row"}">
55 {$mailing_status_val.html}
58 <div class="{cycle values="odd-row,even-row"}">
59 {$form.status_unscheduled.html}
66 {* campaign in mailing search *}
67 {include file="CRM/Campaign/Form/addCampaignToComponent.tpl"
68 campaignContext="componentSearch" campaignTrClass='' campaignTdClass=''}
71 <td>{$form.buttons.html}</td><td colspan="2"></td>
77 <script type="text/javascript">
79 var archiveOption = $("input[name^='is_archived']:radio");
80 $('#status_unscheduled').change(function() {
81 if ($(this).prop('checked') ) {
82 archiveOption.prop({checked: false, disabled: true}).change();
84 archiveOption.prop('disabled', false);
87 archiveOption.change(function() {
88 if ($("input[name^='is_archived']:radio:checked").length) {
89 $('#status_unscheduled').prop({checked: false, disabled: true}).change();
91 $('#status_unscheduled').prop('disabled', false);