Merge pull request #15978 from civicrm/5.20
[civicrm-core.git] / templates / CRM / Admin / Page / Reminders.tpl
CommitLineData
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 Table*}
d4aebf16 11{strip}
4b628e67
CW
12 {if $rows and is_array($rows)}
13 {include file="CRM/common/enableDisableApi.tpl"}
4b628e67
CW
14 {include file="CRM/common/jsortable.tpl"}
15 {/if}
d4aebf16
CW
16 <table id="scheduleReminders" class="display">
17 <thead>
18 <tr id="options" class="columnheader">
6a27e3a5 19 <th id="sortable">{ts}Title{/ts}</th>
d4aebf16
CW
20 <th >{ts}Reminder For{/ts}</th>
21 <th >{ts}When{/ts}</th>
22 <th >{ts}While{/ts}</th>
23 <th >{ts}Repeat{/ts}</th>
24 <th >{ts}Active?{/ts}</th>
25 <th class="hiddenElement"></th>
26 <th ></th>
27 </tr>
28 </thead>
4b628e67
CW
29 {if $rows and is_array($rows)}
30 {foreach from=$rows item=row}
31 <tr id="action_schedule-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
32 <td class="crm-scheduleReminders-title crm-editable" data-field="title">{$row.title}</td>
33 <td class="crm-scheduleReminders-value">{$row.entity} - {$row.value}</td>
34 <td class="crm-scheduleReminders-description">{if $row.absolute_date}{$row.absolute_date|crmDate}{else}{$row.start_action_offset}&nbsp;{$row.start_action_unit}{if $row.start_action_offset > 1}{ts}(s){/ts}{/if}&nbsp;{$row.start_action_condition}&nbsp;{$row.entityDate}{/if}</td>
35 <td class="crm-scheduleReminders-title">{$row.status}</td>
36 <td class="crm-scheduleReminders-is_repeat">{if $row.is_repeat eq 1}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}&nbsp;</td>
37 <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>
38 <td>{$row.action|replace:'xx':$row.id}</td>
39 <td class="hiddenElement"></td>
40 </tr>
41 {/foreach}
42 {else}
43 <tr><td colspan="8">{ts}No Scheduled Reminders have been created.{/ts}</td></tr>
44 {/if}
d4aebf16
CW
45 </table>
46{/strip}
6a488035
TO
47
48