Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
39de6fd5 | 3 | | CiviCRM version 4.6 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
e7112fa7 | 5 | | Copyright CiviCRM LLC (c) 2004-2015 | |
6a488035 TO |
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 class="view-content"> | |
27 | ||
28 | {if $pcpInfo} | |
29 | <div id="ltype"> | |
30 | {strip} | |
31 | ||
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> | |
38 | <th></th> | |
39 | </tr> | |
40 | ||
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> | |
48 | </tr> | |
49 | {/foreach} | |
50 | </table> | |
51 | {/strip} | |
52 | </div> | |
53 | {else} | |
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} | |
57 | </div> | |
58 | {/if} | |
59 | ||
60 | ||
61 | {if $pcpBlock} | |
62 | {strip} | |
63 | {if $pcpInfo} {* Change layout and text if they already have a PCP. *} | |
64 | <br /> | |
65 | <div class="float-right" style="width: 65%"> | |
66 | <div>{ts}Create a Personal Campaign Page for another campaign:{/ts}</div> | |
67 | {else} | |
68 | <div style="width: 65%"> | |
69 | <div class="label">{ts}Become a supporter by creating a Personal Campaign Page:{/ts}</div> | |
70 | {/if} | |
71 | <table class="selector"> | |
72 | <tr class="columnheader"> | |
73 | <th>{ts}Campaign{/ts}</th> | |
74 | <th>{ts}Ends{/ts}</th> | |
75 | <th></th> | |
76 | </tr> | |
77 | ||
78 | {foreach from=$pcpBlock item=row} | |
79 | <tr class="{cycle values="odd-row,even-row"}"> | |
2a15a371 | 80 | <td>{if $row.component eq 'contribute'}<a href="{crmURL p='civicrm/contribute/transact' q="id=`$row.pageId`&reset=1"}" title="{ts}View campaign page{/ts}">{else}<a href="{crmURL p='civicrm/event/register' q="id=`$row.pageId`&reset=1"}" title="{ts}View campaign page{/ts}">{/if}{$row.pageTitle}</a></td> |
6a488035 TO |
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> | |
83 | </tr> | |
84 | {/foreach} | |
85 | </table> | |
86 | {/strip} | |
87 | </div> | |
88 | {/if} | |
89 | ||
90 | </div> |