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