Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
39de6fd5 | 3 | | CiviCRM version 4.6 | |
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="crm-block crm-content-block crm-contribution-view-form-block"> | |
6a488035 | 27 | <div class="action-link"> |
3bd06df9 | 28 | <div class="crm-submit-buttons"> |
6a488035 | 29 | {if call_user_func(array('CRM_Core_Permission','check'), 'edit contributions')} |
3bd06df9 KJ |
30 | {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context"} |
31 | {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey} | |
32 | {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&key=$searchKey"} | |
33 | {/if} | |
34 | <a class="button" href="{crmURL p='civicrm/contact/view/contribution' q=$urlParams}" accesskey="e"><span> | |
35 | <div class="icon edit-icon"></div>{ts}Edit{/ts}</span> | |
36 | </a> | |
6a488035 TO |
37 | {/if} |
38 | {if call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviContribute')} | |
3bd06df9 KJ |
39 | {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context"} |
40 | {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey} | |
41 | {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&key=$searchKey"} | |
42 | {/if} | |
43 | <a class="button" href="{crmURL p='civicrm/contact/view/contribution' q=$urlParams}"><span> | |
44 | <div class="icon delete-icon"></div>{ts}Delete{/ts}</span> | |
45 | </a> | |
6a488035 TO |
46 | {/if} |
47 | {include file="CRM/common/formButtons.tpl" location="top"} | |
03b412ae | 48 | {assign var='pdfUrlParams' value="reset=1&id=$id&cid=$contact_id"} |
56ed0b01 | 49 | {assign var='emailUrlParams' value="reset=1&id=$id&cid=$contact_id&select=email"} |
d230e755 | 50 | {if $invoicing && $cancelledStatus} |
6bf96a62 | 51 | <div class="crm-printButton"> |
2695a1c9 | 52 | <a class="button no-popup" href="{crmURL p='civicrm/contribute/invoice' q=$pdfUrlParams}"> |
6bf96a62 PB |
53 | {if $contribution_status != 'Refunded'} |
54 | {ts}Print Invoice{/ts}</a> | |
55 | {else} | |
56 | {ts}Print Invoice and Credit Note{/ts}</a> | |
57 | {/if} | |
03b412ae | 58 | <a class="button" href="{crmURL p='civicrm/contribute/invoice/email' q=$emailUrlParams}"> |
6bf96a62 PB |
59 | {ts}Email Invoice{/ts}</a> |
60 | </div> | |
56ed0b01 | 61 | {/if} |
3bd06df9 | 62 | </div> |
6a488035 TO |
63 | </div> |
64 | <table class="crm-info-panel"> | |
3bd06df9 KJ |
65 | <tr> |
66 | <td class="label">{ts}From{/ts}</td> | |
67 | <td class="bold">{$displayName}</td> | |
68 | </tr> | |
69 | <tr> | |
70 | <td class="label">{ts}Financial Type{/ts}</td> | |
71 | <td>{$financial_type}{if $is_test} {ts}(test){/ts} {/if}</td> | |
72 | </tr> | |
73 | {if $lineItem} | |
6a488035 | 74 | <tr> |
3bd06df9 KJ |
75 | <td class="label">{ts}Contribution Amount{/ts}</td> |
76 | <td>{include file="CRM/Price/Page/LineItem.tpl" context="Contribution"} | |
77 | {if $contribution_recur_id} | |
78 | <strong>{ts}Recurring Contribution{/ts}</strong> | |
79 | <br/> | |
80 | {ts}Installments{/ts}: {if $recur_installments}{$recur_installments}{else}{ts}(ongoing){/ts}{/if}, {ts}Interval{/ts}: {$recur_frequency_interval} {$recur_frequency_unit}(s) | |
81 | {/if} | |
82 | </td> | |
6a488035 | 83 | </tr> |
3bd06df9 | 84 | {else} |
6a488035 | 85 | <tr> |
3bd06df9 KJ |
86 | <td class="label">{ts}Total Amount{/ts}</td> |
87 | <td><strong>{$total_amount|crmMoney:$currency}</strong> | |
88 | {if $contribution_recur_id} | |
89 | <strong>{ts}Recurring Contribution{/ts}</strong> | |
90 | <br/> | |
91 | {ts}Installments{/ts}: {if $recur_installments}{$recur_installments}{else}{ts}(ongoing){/ts}{/if}, {ts}Interval{/ts}: {$recur_frequency_interval} {$recur_frequency_unit}(s) | |
92 | {/if} | |
93 | </td> | |
6a488035 | 94 | </tr> |
3bd06df9 | 95 | {/if} |
6bf96a62 | 96 | {if $invoicing && $tax_amount} |
56ed0b01 PB |
97 | <tr> |
98 | <td class="label">{ts}Total Tax Amount{/ts}</td> | |
99 | <td>{$tax_amount|crmMoney:$currency}</td> | |
100 | </tr> | |
101 | {/if} | |
3bd06df9 | 102 | {if $non_deductible_amount} |
6a488035 | 103 | <tr> |
3bd06df9 KJ |
104 | <td class="label">{ts}Non-deductible Amount{/ts}</td> |
105 | <td>{$non_deductible_amount|crmMoney:$currency}</td> | |
6a488035 | 106 | </tr> |
6a488035 TO |
107 | {/if} |
108 | {if $fee_amount} | |
3bd06df9 KJ |
109 | <tr> |
110 | <td class="label">{ts}Fee Amount{/ts}</td> | |
111 | <td>{$fee_amount|crmMoney:$currency}</td> | |
112 | </tr> | |
6a488035 TO |
113 | {/if} |
114 | {if $net_amount} | |
3bd06df9 KJ |
115 | <tr> |
116 | <td class="label">{ts}Net Amount{/ts}</td> | |
117 | <td>{$net_amount|crmMoney:$currency}</td> | |
118 | </tr> | |
6a488035 TO |
119 | {/if} |
120 | ||
121 | <tr> | |
3bd06df9 KJ |
122 | <td class="label">{ts}Received{/ts}</td> |
123 | <td>{if $receive_date}{$receive_date|crmDate}{else}({ts}not available{/ts}){/if}</td> | |
6a488035 | 124 | </tr> |
3bd06df9 KJ |
125 | {if $to_financial_account } |
126 | <tr> | |
127 | <td class="label">{ts}Received Into{/ts}</td> | |
128 | <td>{$to_financial_account}</td> | |
129 | </tr> | |
130 | {/if} | |
6a488035 | 131 | <tr> |
3bd06df9 KJ |
132 | <td class="label">{ts}Contribution Status{/ts}</td> |
133 | <td {if $contribution_status_id eq 3} class="font-red bold"{/if}>{$contribution_status} | |
6a488035 TO |
134 | {if $contribution_status_id eq 2} {if $is_pay_later}: {ts}Pay Later{/ts} {else} : {ts}Incomplete Transaction{/ts} {/if}{/if}</td> |
135 | </tr> | |
136 | ||
137 | {if $cancel_date} | |
3bd06df9 KJ |
138 | <tr> |
139 | <td class="label">{ts}Cancelled / Refunded Date{/ts}</td> | |
140 | <td>{$cancel_date|crmDate}</td> | |
141 | </tr> | |
142 | {if $cancel_reason} | |
143 | <tr> | |
144 | <td class="label">{ts}Cancellation / Refund Reason{/ts}</td> | |
145 | <td>{$cancel_reason}</td> | |
146 | </tr> | |
147 | {/if} | |
6a488035 TO |
148 | {/if} |
149 | <tr> | |
3bd06df9 KJ |
150 | <td class="label">{ts}Paid By{/ts}</td> |
151 | <td>{$payment_instrument}</td> | |
6a488035 TO |
152 | </tr> |
153 | ||
154 | {if $payment_instrument eq 'Check'|ts} | |
3bd06df9 KJ |
155 | <tr> |
156 | <td class="label">{ts}Check Number{/ts}</td> | |
157 | <td>{$check_number}</td> | |
158 | </tr> | |
6a488035 TO |
159 | {/if} |
160 | <tr> | |
3bd06df9 KJ |
161 | <td class="label">{ts}Source{/ts}</td> |
162 | <td>{$source}</td> | |
6a488035 TO |
163 | </tr> |
164 | ||
165 | {if $campaign} | |
3bd06df9 | 166 | <tr> |
6a488035 | 167 | <td class="label">{ts}Campaign{/ts}</td> |
3bd06df9 KJ |
168 | <td>{$campaign}</td> |
169 | </tr> | |
6a488035 TO |
170 | {/if} |
171 | ||
172 | {if $contribution_page_title} | |
3bd06df9 KJ |
173 | <tr> |
174 | <td class="label">{ts}Online Contribution Page{/ts}</td> | |
175 | <td>{$contribution_page_title}</td> | |
176 | </tr> | |
177 | {/if} | |
6a488035 | 178 | {if $receipt_date} |
3bd06df9 KJ |
179 | <tr> |
180 | <td class="label">{ts}Receipt Sent{/ts}</td> | |
181 | <td>{$receipt_date|crmDate}</td> | |
182 | </tr> | |
6a488035 TO |
183 | {/if} |
184 | {foreach from=$note item="rec"} | |
185 | {if $rec } | |
3bd06df9 KJ |
186 | <tr> |
187 | <td class="label">{ts}Note{/ts}</td> | |
188 | <td>{$rec}</td> | |
189 | </tr> | |
6a488035 TO |
190 | {/if} |
191 | {/foreach} | |
192 | ||
193 | {if $trxn_id} | |
3bd06df9 KJ |
194 | <tr> |
195 | <td class="label">{ts}Transaction ID{/ts}</td> | |
196 | <td>{$trxn_id}</td> | |
197 | </tr> | |
6a488035 TO |
198 | {/if} |
199 | ||
200 | {if $invoice_id} | |
3bd06df9 KJ |
201 | <tr> |
202 | <td class="label">{ts}Invoice ID{/ts}</td> | |
203 | <td>{$invoice_id} </td> | |
204 | </tr> | |
6a488035 TO |
205 | {/if} |
206 | ||
6a488035 | 207 | {if $thankyou_date} |
3bd06df9 KJ |
208 | <tr> |
209 | <td class="label">{ts}Thank-you Sent{/ts}</td> | |
210 | <td>{$thankyou_date|crmDate}</td> | |
211 | </tr> | |
6a488035 | 212 | {/if} |
2020b311 | 213 | </table> |
6a488035 | 214 | |
b6545333 | 215 | {if count($softContributions)} {* We show soft credit name with PCP section if contribution is linked to a PCP. *} |
48762c66 | 216 | <div class="crm-accordion-wrapper crm-soft-credit-pane"> |
3bd06df9 KJ |
217 | <div class="crm-accordion-header"> |
218 | {ts}Soft Credit{/ts} | |
2020b311 | 219 | </div> |
3bd06df9 | 220 | <div class="crm-accordion-body"> |
48762c66 | 221 | <table class="crm-info-panel crm-soft-credit-listing"> |
b6545333 | 222 | {foreach from=$softContributions item="softCont"} |
7ccf8829 KJ |
223 | <tr> |
224 | <td> | |
225 | <a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$softCont.contact_id`"}" | |
48762c66 | 226 | title="{ts}View contact record{/ts}">{$softCont.contact_name} |
7ccf8829 KJ |
227 | </a> |
228 | </td> | |
51fa20cb | 229 | <td>{$softCont.amount|crmMoney:$currency} |
230 | {if $softCont.soft_credit_type_label} | |
231 | ({$softCont.soft_credit_type_label}) | |
232 | {/if} | |
233 | </td> | |
7ccf8829 | 234 | </tr> |
3bd06df9 KJ |
235 | {/foreach} |
236 | </table> | |
237 | </div> | |
238 | </div> | |
239 | {/if} | |
6a488035 TO |
240 | |
241 | {if $premium} | |
3bd06df9 KJ |
242 | <div class="crm-accordion-wrapper "> |
243 | <div class="crm-accordion-header"> | |
244 | {ts}Premium Information{/ts} | |
245 | </div> | |
246 | <div class="crm-accordion-body"> | |
247 | <table class="crm-info-panel"> | |
248 | <td class="label">{ts}Premium{/ts}</td> | |
249 | <td>{$premium}</td> | |
250 | <td class="label">{ts}Option{/ts}</td> | |
251 | <td>{$option}</td> | |
252 | <td class="label">{ts}Fulfilled{/ts}</td> | |
253 | <td>{$fulfilled|truncate:10:''|crmDate}</td> | |
254 | </table> | |
6a488035 | 255 | </div> |
3bd06df9 | 256 | </div> |
6a488035 TO |
257 | {/if} |
258 | ||
259 | {if $pcp_id} | |
3bd06df9 KJ |
260 | <div id='PCPView' class="crm-accordion-wrapper "> |
261 | <div class="crm-accordion-header"> | |
262 | {ts}Personal Campaign Page Contribution Information{/ts} | |
6a488035 | 263 | </div> |
3bd06df9 KJ |
264 | <div class="crm-accordion-body"> |
265 | <table class="crm-info-panel"> | |
266 | <tr> | |
267 | <td class="label">{ts}Personal Campaign Page{/ts}</td> | |
b6545333 | 268 | <td><a href="{crmURL p="civicrm/pcp/info" q="reset=1&id=`$pcp_id`"}">{$pcp_title}</a><br/> |
3bd06df9 KJ |
269 | <span class="description">{ts}Contribution was made through this personal campaign page.{/ts}</span> |
270 | </td> | |
271 | </tr> | |
272 | <tr> | |
273 | <td class="label">{ts}Soft Credit To{/ts}</td> | |
b6545333 | 274 | <td><a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$pcp_soft_credit_to_id`"}" id="view_contact" |
275 | title="{ts}View contact record{/ts}">{$pcp_soft_credit_to_name}</a></td> | |
3bd06df9 KJ |
276 | </tr> |
277 | <tr> | |
278 | <td class="label">{ts}In Public Honor Roll?{/ts}</td> | |
279 | <td>{if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}</td> | |
280 | </tr> | |
281 | {if $pcp_roll_nickname} | |
282 | <tr> | |
283 | <td class="label">{ts}Honor Roll Name{/ts}</td> | |
284 | <td>{$pcp_roll_nickname}</td> | |
285 | </tr> | |
286 | {/if} | |
287 | {if $pcp_personal_note} | |
288 | <tr> | |
289 | <td class="label">{ts}Personal Note{/ts}</td> | |
290 | <td>{$pcp_personal_note}</td> | |
291 | </tr> | |
292 | {/if} | |
293 | </table> | |
294 | </div> | |
295 | </div> | |
6a488035 TO |
296 | {/if} |
297 | ||
298 | {include file="CRM/Custom/Page/CustomDataView.tpl"} | |
299 | ||
300 | {if $billing_address} | |
3bd06df9 KJ |
301 | <fieldset> |
302 | <legend>{ts}Billing Address{/ts}</legend> | |
303 | <div class="form-item"> | |
304 | {$billing_address|nl2br} | |
305 | </div> | |
306 | </fieldset> | |
6a488035 TO |
307 | {/if} |
308 | ||
309 | <div class="crm-submit-buttons"> | |
3bd06df9 KJ |
310 | {if call_user_func(array('CRM_Core_Permission','check'), 'edit contributions')} |
311 | {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context"} | |
312 | {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey} | |
313 | {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&key=$searchKey"} | |
6a488035 | 314 | {/if} |
3bd06df9 KJ |
315 | <a class="button" href="{crmURL p='civicrm/contact/view/contribution' q=$urlParams}" accesskey="e"><span><div |
316 | class="icon edit-icon"></div>{ts}Edit{/ts}</span></a> | |
317 | {/if} | |
318 | {if call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviContribute')} | |
319 | {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context"} | |
320 | {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey} | |
321 | {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&key=$searchKey"} | |
6a488035 | 322 | {/if} |
3bd06df9 KJ |
323 | <a class="button" href="{crmURL p='civicrm/contact/view/contribution' q=$urlParams}"><span><div |
324 | class="icon delete-icon"></div>{ts}Delete{/ts}</span></a> | |
325 | {/if} | |
326 | {include file="CRM/common/formButtons.tpl" location="bottom"} | |
d230e755 | 327 | {if $invoicing && $cancelledStatus} |
6bf96a62 | 328 | <div class="crm-printButton"> |
38fa0dd5 | 329 | <a class="button no-popup" href="{crmURL p='civicrm/contribute/invoice' q=$pdfUrlParams}"> |
6bf96a62 PB |
330 | {if $contribution_status != 'Refunded'} |
331 | {ts}Print Invoice{/ts}</a> | |
332 | {else} | |
333 | {ts}Print Invoice and Credit Note{/ts}</a> | |
334 | {/if} | |
03b412ae | 335 | <a class="button" href="{crmURL p='civicrm/contribute/invoice/email' q=$emailUrlParams}"> |
6bf96a62 PB |
336 | {ts}Email Invoice{/ts}</a> |
337 | </div> | |
56ed0b01 | 338 | {/if} |
6a488035 TO |
339 | </div> |
340 | </div> |