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} | |
9ece4458 GC |
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 | {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 " | |
61 | href="{crmURL p='civicrm/contribute/invoice' q=$urlParams}"> | |
d2f7ffaa | 62 | <i class="crm-i fa-print"></i> |
9ece4458 GC |
63 | {if $row.contribution_status != 'Refunded' && $row.contribution_status != 'Cancelled' } |
64 | <span>{ts}Print Invoice{/ts}</span> | |
65 | {else} | |
66 | <span>{ts}Print Invoice and Credit Note{/ts}</span> | |
09f7a07d | 67 | {/if} |
9ece4458 | 68 | </a> |
09f7a07d | 69 | {/if} |
9ece4458 | 70 | </td> |
09f7a07d GC |
71 | {/if} |
72 | </tr> | |
73 | {/foreach} | |
74 | </table> | |
6a488035 TO |
75 | {/strip} |
76 | {if $contributionSummary.total.count gt 12} | |
77 | {ts}Contact us for information about contributions prior to those listed above.{/ts} | |
78 | {/if} | |
79 | {else} | |
80 | <div class="messages status no-popup"> | |
09f7a07d GC |
81 | <div class="icon inform-icon"></div> |
82 | {ts}There are no contributions on record for you.{/ts} | |
6a488035 TO |
83 | </div> |
84 | {/if} | |
85 | ||
86 | ||
87 | {if $honor} | |
88 | {if $honorRows} | |
89 | {strip} | |
09f7a07d GC |
90 | <div id="help"> |
91 | {ts}Contributions made in your honor{/ts}: | |
92 | </div> | |
93 | <table class="selector"> | |
94 | <tr class="columnheader"> | |
95 | <th>{ts}Contributor{/ts}</th> | |
96 | <th>{ts}Amount{/ts}</th> | |
97 | <th>{ts}Type{/ts}</th> | |
98 | <th>{ts}Financial Type{/ts}</th> | |
99 | <th>{ts}Received date{/ts}</th> | |
100 | <th>{ts}Receipt Sent{/ts}</th> | |
101 | <th>{ts}Status{/ts}</th> | |
6a488035 | 102 | </tr> |
09f7a07d GC |
103 | {foreach from=$honorRows item=row} |
104 | <tr id='rowid{$row.honorId}' class="{cycle values="odd-row,even-row"}"> | |
105 | <td><a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$row.honorId`"}" | |
106 | id="view_contact">{$row.display_name}</a></td> | |
107 | <td>{$row.amount}</td> | |
108 | <td>{$row.honor_type}</td> | |
109 | <td>{$row.type}</td> | |
110 | <td>{$row.receive_date|truncate:10:''|crmDate}</td> | |
111 | <td>{$row.receipt_date|truncate:10:''|crmDate}</td> | |
112 | <td>{$row.contribution_status}</td> | |
113 | </tr> | |
114 | {/foreach} | |
115 | </table> | |
6a488035 TO |
116 | {/strip} |
117 | {/if} | |
118 | {/if} | |
119 | ||
120 | {if $recur} | |
121 | {if $recurRows} | |
122 | {strip} | |
09f7a07d GC |
123 | <div><label>{ts}Recurring Contribution(s){/ts}</label></div> |
124 | <table class="selector"> | |
125 | <tr class="columnheader"> | |
126 | <th>{ts}Terms:{/ts}</th> | |
127 | <th>{ts}Status{/ts}</th> | |
128 | <th>{ts}Installments{/ts}</th> | |
129 | <th>{ts}Created{/ts}</th> | |
130 | <th></th> | |
6a488035 | 131 | </tr> |
09f7a07d GC |
132 | {foreach from=$recurRows item=row key=id} |
133 | <tr class="{cycle values="odd-row,even-row"}"> | |
134 | <td><label>{$recurRows.$id.amount|crmMoney}</label> | |
135 | every {$recurRows.$id.frequency_interval} {$recurRows.$id.frequency_unit} | |
136 | for {$recurRows.$id.installments} installments | |
137 | </td> | |
138 | <td>{$recurRows.$id.recur_status}</td> | |
139 | <td>{if $recurRows.$id.completed}<a href="{$recurRows.$id.link}">{$recurRows.$id.completed} | |
140 | /{$recurRows.$id.installments}</a> | |
141 | {else}0/{$recurRows.$id.installments} {/if}</td> | |
142 | <td>{$recurRows.$id.create_date|crmDate}</td> | |
143 | <td>{$recurRows.$id.action|replace:'xx':$recurRows.id}</td> | |
144 | </tr> | |
145 | {/foreach} | |
146 | </table> | |
6a488035 TO |
147 | {/strip} |
148 | {/if} | |
149 | {/if} | |
150 | </div> |