| 1 | {* |
| 2 | +--------------------------------------------------------------------+ |
| 3 | | CiviCRM version 4.7 | |
| 4 | +--------------------------------------------------------------------+ |
| 5 | | Copyright CiviCRM LLC (c) 2004-2015 | |
| 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 | {* this template is for configuring Scheduled Reminders *} |
| 27 | {if $setTab eq 1} |
| 28 | {if $component eq 'event'} |
| 29 | {include file="CRM/Event/Form/ManageEvent/Tab.tpl"} |
| 30 | {/if} |
| 31 | {else} |
| 32 | {if $action eq 1 or $action eq 2 or $action eq 8 or $action eq 16384} |
| 33 | {include file="CRM/Admin/Form/ScheduleReminders.tpl"} |
| 34 | {else} |
| 35 | {if !$component} |
| 36 | {capture assign=schedRemindersDocLink}{docURL page="user/current/email/scheduled-reminders/"}{/capture} |
| 37 | <div class="help"> |
| 38 | {ts}Scheduled reminders allow you to automatically send messages to contacts regarding their memberships, participation in events, or other activities.{/ts} {$schedRemindersDocLink} |
| 39 | </div> |
| 40 | {/if} |
| 41 | {if $rows} |
| 42 | <div id="reminder"> |
| 43 | {include file="CRM/Admin/Page/Reminders.tpl"} |
| 44 | </div> |
| 45 | {else} |
| 46 | <div class="messages status no-popup"> |
| 47 | <div class="icon inform-icon"></div> |
| 48 | {ts}None found.{/ts} |
| 49 | </div> |
| 50 | {/if} |
| 51 | <div class="action-link"> |
| 52 | {assign var='link' value="civicrm/admin/scheduleReminders"} |
| 53 | {if $component} |
| 54 | {assign var='urlParams' value="action=add&context=$component&compId=$id&reset=1"} |
| 55 | {else} |
| 56 | {assign var='urlParams' value="action=add&reset=1"} |
| 57 | {/if} |
| 58 | {crmButton p=$link q=$urlParams id="newScheduleReminder" icon="circle-plus"}{ts}Add Reminder{/ts}{/crmButton} |
| 59 | </div> |
| 60 | {/if} |
| 61 | {/if} |