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