Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
819d0d41 | 3 | | CiviCRM version 4.5 | |
6a488035 TO |
4 | +--------------------------------------------------------------------+ |
5 | | Copyright (C) 2011 Marty Wright | | |
6 | | Licensed to CiviCRM under the Academic Free License version 3.0. | | |
7 | +--------------------------------------------------------------------+ | |
8 | | This file is a part of CiviCRM. | | |
9 | | | | |
10 | | CiviCRM is free software; you can copy, modify, and distribute it | | |
11 | | under the terms of the GNU Affero General Public License | | |
12 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | |
13 | | | | |
14 | | CiviCRM is distributed in the hope that it will be useful, but | | |
15 | | WITHOUT ANY WARRANTY; without even the implied warranty of | | |
16 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | |
17 | | See the GNU Affero General Public License for more details. | | |
18 | | | | |
19 | | You should have received a copy of the GNU Affero General Public | | |
20 | | License and the CiviCRM Licensing Exception along | | |
21 | | with this program; if not, contact CiviCRM LLC | | |
22 | | at info[AT]civicrm[DOT]org. If you have questions about the | | |
23 | | GNU Affero General Public License or the licensing of CiviCRM, | | |
24 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | | |
25 | +--------------------------------------------------------------------+ | |
26 | *} | |
27 | {* this template is for configuring Scheduled Reminders Table*} | |
d4aebf16 | 28 | {strip} |
4b628e67 CW |
29 | {if $rows and is_array($rows)} |
30 | {include file="CRM/common/enableDisableApi.tpl"} | |
31 | {include file="CRM/common/crmeditable.tpl"} | |
32 | {include file="CRM/common/jsortable.tpl"} | |
33 | {/if} | |
d4aebf16 CW |
34 | <table id="scheduleReminders" class="display"> |
35 | <thead> | |
36 | <tr id="options" class="columnheader"> | |
37 | <th class="sortable">{ts}Title{/ts}</th> | |
38 | <th >{ts}Reminder For{/ts}</th> | |
39 | <th >{ts}When{/ts}</th> | |
40 | <th >{ts}While{/ts}</th> | |
41 | <th >{ts}Repeat{/ts}</th> | |
42 | <th >{ts}Active?{/ts}</th> | |
43 | <th class="hiddenElement"></th> | |
44 | <th ></th> | |
45 | </tr> | |
46 | </thead> | |
4b628e67 CW |
47 | {if $rows and is_array($rows)} |
48 | {foreach from=$rows item=row} | |
49 | <tr id="action_schedule-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}"> | |
50 | <td class="crm-scheduleReminders-title crm-editable" data-field="title">{$row.title}</td> | |
51 | <td class="crm-scheduleReminders-value">{$row.entity} - {$row.value}</td> | |
52 | <td class="crm-scheduleReminders-description">{if $row.absolute_date}{$row.absolute_date|crmDate}{else}{$row.start_action_offset} {$row.start_action_unit}{if $row.start_action_offset > 1}{ts}(s){/ts}{/if} {$row.start_action_condition} {$row.entityDate}{/if}</td> | |
53 | <td class="crm-scheduleReminders-title">{$row.status}</td> | |
54 | <td class="crm-scheduleReminders-is_repeat">{if $row.is_repeat eq 1}{ts}Yes{/ts}{else}{ts}No{/ts}{/if} </td> | |
55 | <td id="row_{$row.id}_status" class="crm-scheduleReminders-is_active">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td> | |
56 | <td>{$row.action|replace:'xx':$row.id}</td> | |
57 | <td class="hiddenElement"></td> | |
58 | </tr> | |
59 | {/foreach} | |
60 | {else} | |
61 | <tr><td colspan="8">{ts}No Scheduled Reminders have been created.{/ts}</td></tr> | |
62 | {/if} | |
d4aebf16 CW |
63 | </table> |
64 | {/strip} | |
6a488035 TO |
65 | |
66 |