Commit | Line | Data |
---|---|---|
70a00dfe DT |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
3 | | CiviCRM version 4.5 | | |
4 | +--------------------------------------------------------------------+ | |
5 | | Copyright CiviCRM LLC (c) 2004-2014 | | |
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 | {if $contribute_rows} | |
28 | {strip} | |
29 | ||
30 | <table class="selector"> | |
31 | <tr class="columnheader"> | |
32 | <th>{ts}Total Amount{/ts}</th> | |
33 | <th>{ts}Financial Type{/ts}</th> | |
34 | <th>{ts}Received date{/ts}</th> | |
70a00dfe DT |
35 | <th>{ts}Status{/ts}</th> |
36 | </tr> | |
37 | ||
38 | {foreach from=$contribute_rows item=row} | |
39 | <tr id='rowid{$row.contribution_id}' class="{cycle values="odd-row,even-row"}{if $row.cancel_date} disabled{/if}"> | |
40 | <td>{$row.total_amount|crmMoney:$row.currency} {if $row.amount_level } - {$row.amount_level} {/if} | |
41 | {if $row.contribution_recur_id} | |
42 | <br /> {ts}(Recurring Contribution){/ts} | |
43 | {/if} | |
44 | </td> | |
45 | <td>{$row.financial_type}</td> | |
46 | <td>{$row.receive_date|truncate:10:''|crmDate}</td> | |
70a00dfe DT |
47 | <td>{$row.contribution_status}</td> |
48 | </tr> | |
49 | {/foreach} | |
50 | </table> | |
51 | {/strip} | |
52 | {if $contributionSummary.total.count gt 12} | |
53 | {ts}Contact us for information about contributions prior to those listed above.{/ts} | |
54 | {/if} | |
55 | {else} | |
56 | <div class="messages status no-popup"> | |
57 | <div class="icon inform-icon"></div> | |
58 | {ts}There are no contributions on record for you.{/ts} | |
59 | </div> | |
60 | {/if} | |
61 | ||
62 | ||
63 | {if $honor} | |
64 | {if $honorRows} | |
65 | {strip} | |
66 | <div id="help"> | |
67 | {ts}Contributions made in your honor{/ts}: | |
68 | </div> | |
69 | <table class="selector"> | |
70 | <tr class="columnheader"> | |
71 | <th >{ts}Contributor{/ts}</th> | |
72 | <th>{ts}Amount{/ts}</th> | |
73 | <th>{ts}Type{/ts}</th> | |
74 | <th>{ts}Financial Type{/ts}</th> | |
75 | <th>{ts}Received date{/ts}</th> | |
70a00dfe DT |
76 | <th>{ts}Status{/ts}</th> |
77 | </tr> | |
78 | {foreach from=$honorRows item=row} | |
79 | <tr id='rowid{$row.honorId}' class="{cycle values="odd-row,even-row"}"> | |
80 | <td><a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$row.honorId`"}" id="view_contact">{$row.display_name}</a></td> | |
81 | <td>{$row.amount}</td> | |
82 | <td>{$row.honor_type}</td> | |
83 | <td>{$row.type}</td> | |
84 | <td>{$row.receive_date|truncate:10:''|crmDate}</td> | |
70a00dfe DT |
85 | <td>{$row.contribution_status}</td> |
86 | </tr> | |
87 | {/foreach} | |
88 | </table> | |
89 | {/strip} | |
90 | {/if} | |
91 | {/if} | |
92 | ||
93 | {if $recur} | |
94 | {if $recurRows} | |
95 | {strip} | |
96 | <div><label>{ts}Recurring Contribution(s){/ts}</label></div> | |
97 | <table class="selector"> | |
98 | <tr class="columnheader"> | |
99 | <th>{ts}Terms:{/ts}</th> | |
100 | <th>{ts}Status{/ts}</th> | |
101 | <th>{ts}Installments{/ts}</th> | |
102 | <th>{ts}Created{/ts}</th> | |
103 | <th></th> | |
104 | </tr> | |
105 | {foreach from=$recurRows item=row key=id} | |
a9f74950 DT |
106 | <tr class="{cycle values="odd-row,even-row"}"> |
107 | <td> | |
108 | <label>{$recurRows.$id.amount|crmMoney}</label> | |
109 | every {$recurRows.$id.frequency_interval} | |
110 | {$recurRows.$id.frequency_unit} | |
111 | {if $recurRows.$id.installments } | |
112 | for {$recurRows.$id.installments} installments | |
113 | {/if} | |
114 | </td> | |
115 | <td>{$recurRows.$id.recur_status}</td> | |
116 | <td> | |
117 | {if $recurRows.$id.completed} | |
118 | {$recurRows.$id.completed} | |
119 | {else} | |
120 | 0 | |
121 | {/if} | |
122 | / | |
123 | {if $recurRows.$id.installments} | |
124 | {$recurRows.$id.installments} | |
125 | {else} | |
126 | ∞ | |
127 | {/if} | |
128 | </td> | |
129 | <td>{$recurRows.$id.create_date|crmDate}</td> | |
130 | <td> | |
131 | <a href="{crmURL p="civicrm/contribute/updatebilling" | |
132 | q="reset=1&crid=`$recurRows.$id.id`"}"> | |
133 | Edit | |
134 | </a> | |
135 | </td> | |
70a00dfe DT |
136 | </tr> |
137 | {/foreach} | |
138 | </table> | |
139 | {/strip} | |
140 | {/if} | |
141 | {/if} | |
142 | </div> |