Merge pull request #15281 from mattwire/formatpaymentparams_useprepare
[civicrm-core.git] / templates / CRM / Member / Page / UserDashboard.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 5 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2019 |
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 {crmRegion name="crm-member-userdashboard-pre"}
27 {/crmRegion}
28 <div class="view-content">
29 {if $activeMembers}
30 <div id="memberships">
31 <div class="form-item">
32 {strip}
33 <table>
34 <tr class="columnheader">
35 <th>{ts}Membership{/ts}</th>
36 <th>{ts}Member Since{/ts}</th>
37 <th>{ts}Start Date{/ts}</th>
38 <th>{ts}End Date{/ts}</th>
39 <th>{ts}Status{/ts}</th>
40 <th></th>
41 </tr>
42 {foreach from=$activeMembers item=activeMember}
43 <tr class="{cycle values="odd-row,even-row"} {$activeMember.class}">
44 <td>{$activeMember.membership_type}</td>
45 <td>{$activeMember.join_date|crmDate}</td>
46 <td>{$activeMember.start_date|crmDate}</td>
47 <td>{$activeMember.end_date|crmDate}</td>
48 <td>{$activeMember.status}</td>
49 <td>{if $activeMember.renewPageId}<a href="{crmURL p='civicrm/contribute/transact' q="id=`$activeMember.renewPageId`&mid=`$activeMember.id`&reset=1"}">[ {ts}Renew Now{/ts} ]</a>{/if}</td>
50 </tr>
51 {/foreach}
52 </table>
53 {/strip}
54
55 </div>
56 </div>
57 {/if}
58
59 {if $inActiveMembers}
60 <div id="ltype">
61 <p></p>
62 <div class="label font-red">{ts}Expired / Inactive Memberships{/ts}</div>
63 <div class="form-item">
64 {strip}
65 <table>
66 <tr class="columnheader">
67 <th>{ts}Membership{/ts}</th>
68 <th>{ts}Start Date{/ts}</th>
69 <th>{ts}End Date{/ts}</th>
70 <th>{ts}Status{/ts}</th>
71 <th></th>
72 </tr>
73 {foreach from=$inActiveMembers item=inActiveMember}
74 <tr class="{cycle values="odd-row,even-row"} {$inActiveMember.class}">
75 <td>{$inActiveMember.membership_type}</td>
76 <td>{$inActiveMember.start_date|crmDate}</td>
77 <td>{$inActiveMember.end_date|crmDate}</td>
78 <td>{$inActiveMember.status}</td>
79 <td>{if $inActiveMember.renewPageId}<a href="{crmURL p='civicrm/contribute/transact' q="id=`$inActiveMember.renewPageId`&mid=`$inActiveMember.id`&reset=1"}">[ {ts}Renew Now{/ts} ]</a>{/if}</td>
80
81 </tr>
82 {/foreach}
83 </table>
84 {/strip}
85
86 </div>
87 </div>
88 {/if}
89
90 {if NOT ($activeMembers or $inActiveMembers)}
91 <div class="messages status no-popup">
92 <div class="icon inform-icon"></div></dt>
93 {ts}There are no memberships on record for you.{/ts}
94 </div>
95 {/if}
96 </div>
97 {crmRegion name="crm-member-userdashboard-post"}
98 {/crmRegion}