Commit | Line | Data |
---|---|---|
6001543d DT |
1 | {* |
2 | FSF Member Dashboard | |
3 | Copyright © 2014 Free Software Foundation, Inc. | |
4 | ||
5 | This file is a part of FSF Member Dashboard. | |
6 | ||
7 | FSF Member Dashboard is free software: you can redistribute it | |
8 | and/or modify it under the terms of the GNU Affero General Public | |
9 | License as published by the Free Software Foundation, either version | |
10 | 3 of the License, or (at your option) any later version. | |
11 | ||
12 | FSF Member Dashboard is distributed in the hope that it will be | |
13 | useful, but WITHOUT ANY WARRANTY; without even the implied warranty | |
14 | of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
15 | General Public License for more details. | |
16 | ||
17 | You should have received a copy of the GNU General Public License | |
18 | along with FSF Member Dashboard. If not, see | |
9015e289 | 19 | <https://www.gnu.org/licenses/>. |
6001543d DT |
20 | *} |
21 | ||
2fabfc16 DT |
22 | {include file="CRM/Memberdashboard/Page/DashboardElement.tpl" |
23 | element=$dashboardElements.CiviMember } | |
24 | ||
25 | {include file="CRM/Memberdashboard/Page/DashboardElement.tpl" | |
26 | element=$dashboardElements.CiviContribute } | |
f6f92366 DT |
27 | |
28 | <div> | |
29 | <div class="header-dark">Personal Campaign Page(s)</div> | |
30 | <div class="view-content"> | |
31 | {if count($campaignPages) == 0} | |
32 | <div class="messages status no-popup"> | |
33 | <div class="icon inform-icon"></div> | |
34 | There are no personal campaign pages on record for you. | |
35 | </div> | |
36 | {else} | |
37 | <table> | |
38 | <thead> | |
39 | <tr> | |
40 | <th>Title</th> | |
41 | <th>Active?</th> | |
42 | <th>Honor roll enabled?</th> | |
43 | </tr> | |
44 | </thead> | |
45 | <tbody> | |
46 | {foreach from=$campaignPages item=page} | |
47 | <tr> | |
48 | <td> | |
49 | <a href="{crmURL p="civicrm/pcp/info" q="reset=1&id=`$page.id`"}"> | |
50 | {$page.title} | |
51 | </a> | |
52 | </td> | |
53 | <td> | |
54 | {if $page.is_active}Yes{else}No{/if} | |
55 | </td> | |
56 | <td> | |
57 | {if $page.is_honor_roll}Yes{else}No{/if} | |
58 | </td> | |
59 | </tr> | |
60 | {/foreach} | |
61 | </tbody> | |
62 | </table> | |
63 | {/if} | |
64 | </div> | |
65 | </div> |