Merge remote-tracking branch 'upstream/4.3' into 4.3-master-2013-06-05-06-52-23
[civicrm-core.git] / templates / CRM / PCP / Page / PCP.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.3 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2013 |
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 <div id="help">
27 {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"}
28 </div>
29 {if $action ne 8}
30 {include file="CRM/PCP/Form/PCP/PCP.tpl"}
31 {else}
32 {include file="CRM/PCP/Form/PCP/Delete.tpl"}
33 {/if}
34
35 {if $rows}
36 <div id="ltype">
37 <p></p>
38 {include file="CRM/common/pager.tpl" location="top"}
39 {include file="CRM/common/pagerAToZ.tpl}
40 {include file="CRM/common/jsortable.tpl}
41 {strip}
42 <table id="options" class="display">
43 <thead>
44 <tr>
45 <th>{ts}Page Title{/ts}</th>
46 <th>{ts}Supporter{/ts}</th>
47 <th id="sortable">{ts}Contribution Page / Event{/ts}</th>
48 <th id="start_date">{ts}Starts{/ts}</th>
49 <th id="end_date">{ts}Ends{/ts}</th>
50 <th>{ts}Status{/ts}</th>
51 <th></th>
52 <th class="hiddenElement"></th>
53 <th class="hiddenElement"></th>
54 </tr>
55 </thead>
56 <tbody>
57 {foreach from=$rows item=row}
58 <tr id="row_{$row.id}" class="{$row.class}">
59 <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>
60 <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>
61 <td><a href="{$row.page_url}" title="{ts}View page{/ts}" target="_blank">{$row.page_title}</td>
62 <td>{$row.start_date|crmDate:"%b %d, %Y %l:%M %P"}</td>
63 <td>{if $row.end_date}{$row.end_date|crmDate:"%b %d, %Y %l:%M %P"}{else}({ts}ongoing{/ts}){/if}</td>
64 <td>{$row.status_id}</td>
65 <td id={$row.id}>{$row.action|replace:'xx':$row.id}</td>
66 <td class="start_date hiddenElement">{$row.start_date|truncate:10:''|crmDate}</td>
67 <td class="end_date hiddenElement">{if $row.end_date}{$row.end_date|truncate:10:''|crmDate}{else}({ts}ongoing{/ts}){/if}</td>
68 </tr>
69 {/foreach}
70 </tbody>
71 </table>
72 {/strip}
73 </div>
74 {else}
75 <div class="messages status no-popup">
76 <div class="icon inform-icon"></div>
77 {if $isSearch}
78 {ts}There are no Personal Campaign Pages which match your search criteria.{/ts}
79 {else}
80 {ts}There are currently no Personal Campaign Pages.{/ts}
81 {/if}
82 </div>
83 {/if}