Merge pull request #6492 from eileenmcnaughton/CRM-17020
[civicrm-core.git] / templates / CRM / Admin / Page / ScheduleReminders.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.6 |
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 {* include wysiwyg related files*}
36 {include file="CRM/common/wysiwyg.tpl" includeWysiwygEditor=true}
37 {if !$component}
38 {capture assign=schedRemindersDocLink}{docURL page="user/current/email/scheduled-reminders/"}{/capture}
39 <div class="help">
40 {ts}Scheduled reminders allow you to automatically send messages to contacts regarding their memberships, participation in events, or other activities.{/ts} {$schedRemindersDocLink}
41 </div>
42 {/if}
43 {if $rows}
44 <div id="reminder">
45 {include file="CRM/Admin/Page/Reminders.tpl"}
46 </div>
47 {else}
48 <div class="messages status no-popup">
49 <div class="icon inform-icon"></div>
50 {ts}None found.{/ts}
51 </div>
52 {/if}
53 <div class="action-link">
54 {assign var='link' value="civicrm/admin/scheduleReminders"}
55 {if $component}
56 {assign var='urlParams' value="action=add&context=$component&compId=$id&reset=1"}
57 {else}
58 {assign var='urlParams' value="action=add&reset=1"}
59 {/if}
60 {crmButton p=$link q=$urlParams id="newScheduleReminder" icon="circle-plus"}{ts}Add Reminder{/ts}{/crmButton}
61 </div>
62 {/if}
63 {/if}