Merge pull request #18544 from magnolia61/participant_status_notification_default
[civicrm-core.git] / templates / CRM / PCP / Page / PCP.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 <div class="help">
11 {ts}This screen shows all the Personal Campaign Pages created in the system and allows administrator to review them and change their status.{/ts} {help id="id-pcp-intro"}
12 </div>
13 {if $action ne 8}
14 {include file="CRM/PCP/Form/PCP/PCP.tpl"}
15 {else}
16 {include file="CRM/PCP/Form/PCP/Delete.tpl"}
17 {/if}
18
19 {if $rows}
20 <div id="ltype">
21 <p></p>
22 {include file="CRM/common/pager.tpl" location="top"}
23 {include file="CRM/common/pagerAToZ.tpl"}
24 {include file="CRM/common/jsortable.tpl"}
25 {strip}
26 <table id="options" class="display">
27 <thead>
28 <tr>
29 <th>{ts}Page Title{/ts}</th>
30 <th>{ts}Supporter{/ts}</th>
31 <th>{ts}Contribution Page / Event{/ts}</th>
32 <th>{ts}Starts{/ts}</th>
33 <th>{ts}Ends{/ts}</th>
34 <th>{ts}Status{/ts}</th>
35 <th></th>
36 </tr>
37 </thead>
38 <tbody>
39 {foreach from=$rows item=row}
40 <tr id="row_{$row.id}" class="{$row.class}">
41 <td><a href="{crmURL p='civicrm/pcp/info' q="reset=1&id=`$row.id`" fe='true'}" title="{ts}View Personal Campaign Page{/ts}" target="_blank">{$row.title}</a></td>
42 <td><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.supporter_id`"}" title="{ts}View contact record{/ts}">{$row.supporter}</a></td>
43 <td><a href="{$row.page_url}" title="{ts}View page{/ts}" target="_blank">{$row.page_title}</td>
44 <td>{$row.start_date|crmDate}</td>
45 <td>{if $row.end_date}{$row.end_date|crmDate}{else}({ts}ongoing{/ts}){/if}</td>
46 <td>{$row.status_id}</td>
47 <td id={$row.id}>{$row.action|replace:'xx':$row.id}</td>
48 </tr>
49 {/foreach}
50 </tbody>
51 </table>
52 {/strip}
53 </div>
54 {else}
55 <div class="messages status no-popup">
56 {icon icon="fa-info-circle"}{/icon}
57 {if $isSearch}
58 {ts}There are no Personal Campaign Pages which match your search criteria.{/ts}
59 {else}
60 {ts}There are currently no Personal Campaign Pages.{/ts}
61 {/if}
62 </div>
63 {/if}