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