Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
1188c7a8 | 3 | | Copyright CiviCRM LLC. All rights reserved. | |
6a488035 | 4 | | | |
1188c7a8 TO |
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 | | |
6a488035 TO |
8 | +--------------------------------------------------------------------+ |
9 | *} | |
10 | {* this template is for configuring Scheduled Reminders *} | |
4d3e4dbe | 11 | {if $setTab eq 1} |
12 | {if $component eq 'event'} | |
13 | {include file="CRM/Event/Form/ManageEvent/Tab.tpl"} | |
14 | {/if} | |
15 | {else} | |
6a488035 TO |
16 | {if $action eq 1 or $action eq 2 or $action eq 8 or $action eq 16384} |
17 | {include file="CRM/Admin/Form/ScheduleReminders.tpl"} | |
18 | {else} | |
4d3e4dbe | 19 | {if !$component} |
1e6b547c | 20 | {capture assign=schedRemindersDocLink}{docURL page="user/email/scheduled-reminders/"}{/capture} |
4d3e4dbe | 21 | <div class="help"> |
22 | {ts}Scheduled reminders allow you to automatically send messages to contacts regarding their memberships, participation in events, or other activities.{/ts} {$schedRemindersDocLink} | |
23 | </div> | |
24 | {/if} | |
e52d8c19 | 25 | <div class="crm-content-block crm-block"> |
581c7be2 | 26 | {if $rows} |
6a488035 TO |
27 | <div id="reminder"> |
28 | {include file="CRM/Admin/Page/Reminders.tpl"} | |
6a488035 | 29 | </div> |
581c7be2 | 30 | {else} |
6a488035 TO |
31 | <div class="messages status no-popup"> |
32 | <div class="icon inform-icon"></div> | |
afd94145 | 33 | {ts}None found.{/ts} |
6a488035 | 34 | </div> |
581c7be2 CW |
35 | {/if} |
36 | <div class="action-link"> | |
4d3e4dbe | 37 | {assign var='link' value="civicrm/admin/scheduleReminders"} |
38 | {if $component} | |
39 | {assign var='urlParams' value="action=add&context=$component&compId=$id&reset=1"} | |
40 | {else} | |
41 | {assign var='urlParams' value="action=add&reset=1"} | |
42 | {/if} | |
80bc2820 | 43 | {crmButton p=$link q=$urlParams id="newScheduleReminder" icon="plus-circle"}{ts}Add Reminder{/ts}{/crmButton} |
581c7be2 | 44 | </div> |
e52d8c19 | 45 | </div> |
6a488035 | 46 | {/if} |
4d3e4dbe | 47 | {/if} |