2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
8 +--------------------------------------------------------------------+
10 <div class="crm-block crm-form-block crm-search-form-block">
11 <table class="form-layout">
13 <td>{$form.mailing_name.label} {help id="id-mailing_name"}<br />
14 {$form.mailing_name.html|crmAddClass:big}
18 {include file="CRM/Core/DatePickerRangeWrapper.tpl" fieldName="mailing" colspan='2'}
21 <td colspan="1">{$form.sort_name.label} {help id="id-create_sort_name"}<br />
22 {$form.sort_name.html|crmAddClass:big}
24 <div class="crm-search-form-block-is_archive">
25 {$form.is_archived.label} {help id="is_archived"}<br/>
26 {$form.is_archived.html}
29 {if $form.mailing_status}
30 <td width="100%"><label>{if $sms eq 1}{ts}SMS Status{/ts}{else}{ts}Mailing Status{/ts}{/if}</label><br />
31 <div class="listing-box" style="height: auto">
32 {foreach from=$form.mailing_status item="mailing_status_val"}
33 <div class="{cycle values="odd-row,even-row"}">
34 {$mailing_status_val.html}
37 <div class="{cycle values="odd-row,even-row"}">
38 {$form.status_unscheduled.html}
48 <td>{$form.language.label} {help id="id-language"}<br />
49 {$form.language.html|crmAddClass:big}
54 {* campaign in mailing search *}
55 {include file="CRM/Campaign/Form/addCampaignToComponent.tpl"
56 campaignContext="componentSearch" campaignTrClass='' campaignTdClass=''}
59 <td>{$form.buttons.html}</td><td colspan="2"></td>
65 <script type="text/javascript">
67 var archiveOption = $("input[name^='is_archived']:radio");
68 $('#status_unscheduled').change(function() {
69 if ($(this).prop('checked') ) {
70 archiveOption.prop({checked: false, disabled: true}).change();
72 archiveOption.prop('disabled', false);
75 archiveOption.change(function() {
76 if ($("input[name^='is_archived']:radio:checked").length) {
77 $('#status_unscheduled').prop({checked: false, disabled: true}).change();
79 $('#status_unscheduled').prop('disabled', false);