Commit | Line | Data |
---|---|---|
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 | *} | |
f6eedce7 | 10 | <div class="help"> |
6a488035 TO |
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"} | |
66836685 | 23 | {include file="CRM/common/pagerAToZ.tpl"} |
24 | {include file="CRM/common/jsortable.tpl"} | |
6a488035 TO |
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> | |
66836685 | 31 | <th>{ts}Contribution Page / Event{/ts}</th> |
32 | <th>{ts}Starts{/ts}</th> | |
33 | <th>{ts}Ends{/ts}</th> | |
6a488035 TO |
34 | <th>{ts}Status{/ts}</th> |
35 | <th></th> | |
6a488035 TO |
36 | </tr> |
37 | </thead> | |
38 | <tbody> | |
39 | {foreach from=$rows item=row} | |
40 | <tr id="row_{$row.id}" class="{$row.class}"> | |
66836685 | 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> |
6a488035 TO |
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> | |
04eba95a DG |
44 | <td>{$row.start_date|crmDate}</td> |
45 | <td>{if $row.end_date}{$row.end_date|crmDate}{else}({ts}ongoing{/ts}){/if}</td> | |
6a488035 | 46 | <td>{$row.status_id}</td> |
71cc99a3 | 47 | <td id={$row.id}>{$row.action|smarty:nodefaults|replace:'xx':$row.id}</td> |
6a488035 TO |
48 | </tr> |
49 | {/foreach} | |
50 | </tbody> | |
51 | </table> | |
52 | {/strip} | |
53 | </div> | |
54 | {else} | |
55 | <div class="messages status no-popup"> | |
34d6cec4 | 56 | {icon icon="fa-info-circle"}{/icon} |
6a488035 TO |
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> | |
232624b1 | 63 | {/if} |