| 1 | {* |
| 2 | +--------------------------------------------------------------------+ |
| 3 | | CiviCRM version 4.4 | |
| 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 | *} |
| 26 | {if $groupCount == 0 and $mailingCount == 0} |
| 27 | <div class="status"> |
| 28 | <div class="icon inform-icon"></div> |
| 29 | {ts}To send a Mass SMS, you must have a valid group of recipients - either at least one group that's a Mailing List{/ts} |
| 30 | </div> |
| 31 | {else} |
| 32 | <div class="crm-block crm-form-block crm-mailing-group-form-block"> |
| 33 | {include file="CRM/common/WizardHeader.tpl"} |
| 34 | |
| 35 | <table class="form-layout"> |
| 36 | <tr class="crm-mailing-group-form-block-name"><td class="label">{$form.name.label}</td><td>{$form.name.html} {help id="sms-name"}</td></tr> |
| 37 | </table> |
| 38 | |
| 39 | |
| 40 | <div id="id-additional" class="form-item"> |
| 41 | <div class="crm-accordion-wrapper "> |
| 42 | <div class="crm-accordion-header"> |
| 43 | {ts}Mailing Recipients{/ts} |
| 44 | </div><!-- /.crm-accordion-header --> |
| 45 | <div class="crm-accordion-body"> |
| 46 | {strip} |
| 47 | |
| 48 | <table> |
| 49 | {if $groupCount > 0} |
| 50 | <tr class="crm-mailing-group-form-block-includeGroups"><td class="label">{$form.includeGroups.label} {help id="include-groups"}</td></tr> |
| 51 | <tr class="crm-mailing-group-form-block-includeGroups"><td>{$form.includeGroups.html}</td></tr> |
| 52 | <tr class="crm-mailing-group-form-block-excludeGroups"><td class="label">{$form.excludeGroups.label} {help id="exclude-groups"}</td></tr> |
| 53 | <tr class="crm-mailing-group-form-block-excludeGroups"><td>{$form.excludeGroups.html}</td></tr> |
| 54 | {/if} |
| 55 | {if $mailingCount > 0} |
| 56 | <tr class="crm-mailing-group-form-block-includeMailings"><td class="label">{$form.includeMailings.label} {help id="include-mailings"}</td></tr> |
| 57 | <tr class="crm-mailing-group-form-block-includeMailings"><td>{$form.includeMailings.html}</td></tr> |
| 58 | <tr class="crm-mailing-group-form-block-excludeMailings"><td class="label">{$form.excludeMailings.label} {help id="exclude-mailings"}</td></tr> |
| 59 | <tr class="crm-mailing-group-form-block-excludeMailings"><td>{$form.excludeMailings.html}</td></tr> |
| 60 | {/if} |
| 61 | </table> |
| 62 | |
| 63 | {/strip} |
| 64 | </div><!-- /.crm-accordion-body --> |
| 65 | </div><!-- /.crm-accordion-wrapper --> |
| 66 | |
| 67 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl"}</div> |
| 68 | </div> |
| 69 | |
| 70 | {literal} |
| 71 | <script type="text/javascript"> |
| 72 | cj(function() { |
| 73 | cj().crmAccordions(); |
| 74 | }); |
| 75 | </script> |
| 76 | {/literal} |
| 77 | |
| 78 | {* include jscript to warn if unsaved form field changes *} |
| 79 | {include file="CRM/common/formNavigate.tpl"} |
| 80 | </div> |
| 81 | {/if} |