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