2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.6 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
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. |
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. |
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 +--------------------------------------------------------------------+
26 <div class="crm-block crm-content-block crm-contribution-view-form-block">
27 <div class="action-link">
28 <div class="crm-submit-buttons">
29 {if call_user_func(array('CRM_Core_Permission','check'), 'edit contributions')}
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"}
34 <a class="button" href="{crmURL p='civicrm/contact/view/contribution' q=$urlParams}" accesskey="e"><span>
35 <div class="icon ui-icon-pencil"></div>{ts}Edit{/ts}</span>
38 {if call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviContribute')}
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"}
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>
47 {include file="CRM/common/formButtons.tpl" location="top"}
48 {assign var='pdfUrlParams' value="reset=1&id=$id&cid=$contact_id"}
49 {assign var='emailUrlParams' value="reset=1&id=$id&cid=$contact_id&select=email"}
50 {if $invoicing && $cancelledStatus}
51 <div class="css_right">
52 <a class="button no-popup" href="{crmURL p='civicrm/contribute/invoice' q=$pdfUrlParams}">
53 <div class="icon ui-icon-print"></div>
54 {if $contribution_status != 'Refunded'}
55 {ts}Print Invoice{/ts}</a>
57 {ts}Print Invoice and Credit Note{/ts}</a>
59 <a class="button" href="{crmURL p='civicrm/contribute/invoice/email' q=$emailUrlParams}">
60 <div class="icon ui-icon-mail-closed"></div>
61 {ts}Email Invoice{/ts}</a>
66 <table class="crm-info-panel">
68 <td class="label">{ts}From{/ts}</td>
69 <td class="bold">{$displayName}</td>
72 <td class="label">{ts}Financial Type{/ts}</td>
73 <td>{$financial_type}{if $is_test} {ts}(test){/ts} {/if}</td>
77 <td class="label">{ts}Contribution Amount{/ts}</td>
78 <td>{include file="CRM/Price/Page/LineItem.tpl" context="Contribution"}
79 {if $contribution_recur_id}
80 <strong>{ts}Recurring Contribution{/ts}</strong>
82 {ts}Installments{/ts}: {if $recur_installments}{$recur_installments}{else}{ts}(ongoing){/ts}{/if}, {ts}Interval{/ts}: {$recur_frequency_interval} {$recur_frequency_unit}(s)
88 <td class="label">{ts}Total Amount{/ts}</td>
89 <td><strong>{$total_amount|crmMoney:$currency}</strong>
90 {if $contribution_recur_id}
91 <strong>{ts}Recurring Contribution{/ts}</strong>
93 {ts}Installments{/ts}: {if $recur_installments}{$recur_installments}{else}{ts}(ongoing){/ts}{/if}, {ts}Interval{/ts}: {$recur_frequency_interval} {$recur_frequency_unit}(s)
98 {if $invoicing && $tax_amount}
100 <td class="label">{ts}Total Tax Amount{/ts}</td>
101 <td>{$tax_amount|crmMoney:$currency}</td>
104 {if $non_deductible_amount}
106 <td class="label">{ts}Non-deductible Amount{/ts}</td>
107 <td>{$non_deductible_amount|crmMoney:$currency}</td>
112 <td class="label">{ts}Fee Amount{/ts}</td>
113 <td>{$fee_amount|crmMoney:$currency}</td>
118 <td class="label">{ts}Net Amount{/ts}</td>
119 <td>{$net_amount|crmMoney:$currency}</td>
124 <td class="label">{ts}Received{/ts}</td>
125 <td>{if $receive_date}{$receive_date|crmDate}{else}({ts}not available{/ts}){/if}</td>
127 {if $to_financial_account }
129 <td class="label">{ts}Received Into{/ts}</td>
130 <td>{$to_financial_account}</td>
134 <td class="label">{ts}Contribution Status{/ts}</td>
135 <td {if $contribution_status_id eq 3} class="font-red bold"{/if}>{$contribution_status}
136 {if $contribution_status_id eq 2} {if $is_pay_later}: {ts}Pay Later{/ts} {else} : {ts}Incomplete Transaction{/ts} {/if}{/if}</td>
141 <td class="label">{ts}Cancelled / Refunded Date{/ts}</td>
142 <td>{$cancel_date|crmDate}</td>
146 <td class="label">{ts}Cancellation / Refund Reason{/ts}</td>
147 <td>{$cancel_reason}</td>
152 <td class="label">{ts}Paid By{/ts}</td>
153 <td>{$payment_instrument}{if $payment_processor_name} ({$payment_processor_name}){/if}</td>
156 {if $payment_instrument eq 'Check'|ts}
158 <td class="label">{ts}Check Number{/ts}</td>
159 <td>{$check_number}</td>
163 <td class="label">{ts}Source{/ts}</td>
169 <td class="label">{ts}Campaign{/ts}</td>
174 {if $contribution_page_title}
176 <td class="label">{ts}Online Contribution Page{/ts}</td>
177 <td>{$contribution_page_title}</td>
182 <td class="label">{ts}Receipt Sent{/ts}</td>
183 <td>{$receipt_date|crmDate}</td>
186 {foreach from=$note item="rec"}
189 <td class="label">{ts}Note{/ts}</td>
197 <td class="label">{ts}Transaction ID{/ts}</td>
204 <td class="label">{ts}Invoice ID{/ts}</td>
205 <td>{$invoice_id} </td>
211 <td class="label">{ts}Thank-you Sent{/ts}</td>
212 <td>{$thankyou_date|crmDate}</td>
217 {if count($softContributions)} {* We show soft credit name with PCP section if contribution is linked to a PCP. *}
218 <div class="crm-accordion-wrapper crm-soft-credit-pane">
219 <div class="crm-accordion-header">
222 <div class="crm-accordion-body">
223 <table class="crm-info-panel crm-soft-credit-listing">
224 {foreach from=$softContributions item="softCont"}
227 <a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$softCont.contact_id`"}"
228 title="{ts}View contact record{/ts}">{$softCont.contact_name}
231 <td>{$softCont.amount|crmMoney:$currency}
232 {if $softCont.soft_credit_type_label}
233 ({$softCont.soft_credit_type_label})
244 <div class="crm-accordion-wrapper ">
245 <div class="crm-accordion-header">
246 {ts}Premium Information{/ts}
248 <div class="crm-accordion-body">
249 <table class="crm-info-panel">
250 <td class="label">{ts}Premium{/ts}</td>
252 <td class="label">{ts}Option{/ts}</td>
254 <td class="label">{ts}Fulfilled{/ts}</td>
255 <td>{$fulfilled|truncate:10:''|crmDate}</td>
262 <div id='PCPView' class="crm-accordion-wrapper ">
263 <div class="crm-accordion-header">
264 {ts}Personal Campaign Page Contribution Information{/ts}
266 <div class="crm-accordion-body">
267 <table class="crm-info-panel">
269 <td class="label">{ts}Personal Campaign Page{/ts}</td>
270 <td><a href="{crmURL p="civicrm/pcp/info" q="reset=1&id=`$pcp_id`"}">{$pcp_title}</a><br/>
271 <span class="description">{ts}Contribution was made through this personal campaign page.{/ts}</span>
275 <td class="label">{ts}Soft Credit To{/ts}</td>
276 <td><a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$pcp_soft_credit_to_id`"}" id="view_contact"
277 title="{ts}View contact record{/ts}">{$pcp_soft_credit_to_name}</a></td>
280 <td class="label">{ts}In Public Honor Roll?{/ts}</td>
281 <td>{if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}</td>
283 {if $pcp_roll_nickname}
285 <td class="label">{ts}Honor Roll Name{/ts}</td>
286 <td>{$pcp_roll_nickname}</td>
289 {if $pcp_personal_note}
291 <td class="label">{ts}Personal Note{/ts}</td>
292 <td>{$pcp_personal_note}</td>
300 {include file="CRM/Custom/Page/CustomDataView.tpl"}
302 {if $billing_address}
304 <legend>{ts}Billing Address{/ts}</legend>
305 <div class="form-item">
306 {$billing_address|nl2br}
311 <div class="crm-submit-buttons">
312 {if call_user_func(array('CRM_Core_Permission','check'), 'edit contributions')}
313 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context"}
314 {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
315 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&key=$searchKey"}
317 <a class="button" href="{crmURL p='civicrm/contact/view/contribution' q=$urlParams}" accesskey="e"><span><div
318 class="icon ui-icon-pencil"></div>{ts}Edit{/ts}</span></a>
320 {if call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviContribute')}
321 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context"}
322 {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
323 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&key=$searchKey"}
325 <a class="button" href="{crmURL p='civicrm/contact/view/contribution' q=$urlParams}"><span><div
326 class="icon delete-icon"></div>{ts}Delete{/ts}</span></a>
328 {include file="CRM/common/formButtons.tpl" location="bottom"}