2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.5 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2014 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
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. |
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. |
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 +--------------------------------------------------------------------+
26 <div class="view-content">
32 <table class="selector">
33 <tr class="columnheader">
34 <th>{ts}Your Page{/ts}</th>
35 <th>{ts}In Support of{/ts}</th>
36 <th>{ts}Campaign Ends{/ts}</th>
37 <th>{ts}Status{/ts}</th>
41 {foreach from=$pcpInfo item=row}
42 <tr class="{cycle values="odd-row,even-row"} {$row.class}">
43 <td class="bold"><a href="{crmURL p='civicrm/pcp/info' q="reset=1&id=`$row.pcpId`" a=1}" title="{ts}Preview your Personal Campaign Page{/ts}">{$row.pcpTitle}</a></td>
44 <td>{$row.pageTitle}</td>
45 <td>{if $row.end_date}{$row.end_date|truncate:10:''|crmDate}{else}({ts}ongoing{/ts}){/if}</td>
46 <td>{$row.pcpStatus}</td>
47 <td>{$row.action|replace:'xx':$row.pcpId}</td>
54 <div class="messages status no-popup">
55 <div class="icon inform-icon"></div>
56 {ts}You do not have any active Personal Campaign pages.{/ts}
63 {if $pcpInfo} {* Change layout and text if they already have a PCP. *}
65 <div class="float-right" style="width: 65%">
66 <div>{ts}Create a Personal Campaign Page for another campaign:{/ts}</div>
68 <div style="width: 65%">
69 <div class="label">{ts}Become a supporter by creating a Personal Campaign Page:{/ts}</div>
71 <table class="selector">
72 <tr class="columnheader">
73 <th>{ts}Campaign{/ts}</th>
74 <th>{ts}Ends{/ts}</th>
78 {foreach from=$pcpBlock item=row}
79 <tr class="{cycle values="odd-row,even-row"}">
80 <td><a href="{crmURL p='civicrm/contribute/transact' q="id=`$row.pageId`&reset=1"}" title="{ts}View campaign page{/ts}">{$row.pageTitle}</a></td>
81 <td>{if $row.end_date}{$row.end_date|truncate:10:''|crmDate}{else}({ts}ongoing{/ts}){/if}</td>
82 <td>{$row.action|replace:'xx':$row.pageId}</td>