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