[REF] Move handling of form elements back to the Form
[civicrm-core.git] / templates / CRM / Admin / Page / ScheduleReminders.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
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 +--------------------------------------------------------------------+
9 *}
10 {* this template is for configuring Scheduled Reminders *}
11 {if $setTab eq 1}
12 {if $component eq 'event'}
13 {include file="CRM/Event/Form/ManageEvent/Tab.tpl"}
14 {/if}
15 {else}
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}
19 {if !$component}
20 {capture assign=schedRemindersDocLink}{docURL page="user/email/scheduled-reminders/"}{/capture}
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}
25 <div class="crm-content-block crm-block">
26 {if $rows}
27 <div id="reminder">
28 {include file="CRM/Admin/Page/Reminders.tpl"}
29 </div>
30 {else}
31 <div class="messages status no-popup">
32 <div class="icon inform-icon"></div>
33 {ts}None found.{/ts}
34 </div>
35 {/if}
36 <div class="action-link">
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}
43 {crmButton p=$link q=$urlParams id="newScheduleReminder" icon="plus-circle"}{ts}Add Reminder{/ts}{/crmButton}
44 </div>
45 </div>
46 {/if}
47 {/if}