Merge remote-tracking branch 'upstream/4.4' into 4.4-master-2014-03-03-17-36-50
[civicrm-core.git] / templates / CRM / Mailing / Form / Group.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
232624b1 3 | CiviCRM version 4.4 |
6a488035
TO
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2013 |
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*}
f598ae72 26
6a488035
TO
27<div class="crm-block crm-form-block crm-mailing-group-form-block">
28{include file="CRM/common/WizardHeader.tpl"}
29
30 <table class="form-layout">
31 <tr class="crm-mailing-group-form-block-name"><td class="label">{$form.name.label}</td><td>{$form.name.html} {help id="mailing-name"}</td></tr>
32 {* CRM-7362 --add campaign *}
33 {include file="CRM/Campaign/Form/addCampaignToComponent.tpl"
34 campaignTrClass="crm-mailing-group-form-block-campaign_id"}
35
36 {if $context EQ 'search'}
37 <tr class="crm-mailing-group-form-block-baseGroup">
38 <td class="label">{$form.baseGroup.label}</td>
39 <td>{$form.baseGroup.html} {help id="base-group"}</td>
40 </tr>
41 {/if}
42
43 <tr class="crm-mailing-group-form-block-dedupeemail">
44 <td class="label">{$form.dedupe_email.label}</td>
45 <td>{$form.dedupe_email.html} {help id="dedupe-email"}</td>
46 </tr>
47 </table>
48
f598ae72 49{if ($groupCount > 0|| $mailingCount > 0)}
6a488035
TO
50<div id="id-additional" class="form-item">
51<div class="crm-accordion-wrapper ">
52 <div class="crm-accordion-header">
53 {if $context EQ 'search'}{ts}Additional Mailing Recipients{/ts}{else}{ts}Mailing Recipients{/ts}{/if}
54 </div><!-- /.crm-accordion-header -->
55 <div class="crm-accordion-body">
56 {strip}
57
58 <table>
59 {if $groupCount > 0}
60 <tr class="crm-mailing-group-form-block-includeGroups"><td class="label">{$form.includeGroups.label} {help id="include-groups"}</td></tr>
61 <tr class="crm-mailing-group-form-block-includeGroups"><td>{$form.includeGroups.html}</td></tr>
62 <tr class="crm-mailing-group-form-block-excludeGroups"><td class="label">{$form.excludeGroups.label} {help id="exclude-groups"}</td></tr>
63 <tr class="crm-mailing-group-form-block-excludeGroups"><td>{$form.excludeGroups.html}</td></tr>
64 {/if}
65 {if $mailingCount > 0}
66 <tr class="crm-mailing-group-form-block-includeMailings"><td class="label">{$form.includeMailings.label} {help id="include-mailings"}</td></tr>
67 <tr class="crm-mailing-group-form-block-includeMailings"><td>{$form.includeMailings.html}</td></tr>
68 <tr class="crm-mailing-group-form-block-excludeMailings"><td class="label">{$form.excludeMailings.label} {help id="exclude-mailings"}</td></tr>
69 <tr class="crm-mailing-group-form-block-excludeMailings"><td>{$form.excludeMailings.html}</td></tr>
70 {/if}
71 </table>
72
73 {/strip}
74 </div><!-- /.crm-accordion-body -->
75</div><!-- /.crm-accordion-wrapper -->
f598ae72 76{/if}
6a488035
TO
77 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl"}</div>
78</div>
79
80{literal}
81<script type="text/javascript">
82cj(function() {
83 cj().crmAccordions();
84});
85</script>
86{/literal}
87
88{* include jscript to warn if unsaved form field changes *}
89{include file="CRM/common/formNavigate.tpl"}
90</div>
f598ae72 91