2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.3 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2013 |
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 <h3>{ts}View Contribution{/ts}</h3>
29 <div class="action-link">
30 <div class="crm-submit-buttons">
31 {if call_user_func(array('CRM_Core_Permission','check'), 'edit contributions')}
32 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context"}
33 {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
34 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&key=$searchKey"}
36 <a class="button" href="{crmURL p='civicrm/contact/view/contribution' q=$urlParams}" accesskey="e"><span>
37 <div class="icon edit-icon"></div>{ts}Edit{/ts}</span>
40 {if call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviContribute')}
41 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context"}
42 {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
43 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&key=$searchKey"}
45 <a class="button" href="{crmURL p='civicrm/contact/view/contribution' q=$urlParams}"><span>
46 <div class="icon delete-icon"></div>{ts}Delete{/ts}</span>
49 {include file="CRM/common/formButtons.tpl" location="top"}
52 <table class="crm-info-panel">
54 <td class="label">{ts}From{/ts}</td>
55 <td class="bold">{$displayName}</td>
58 <td class="label">{ts}Financial Type{/ts}</td>
59 <td>{$financial_type}{if $is_test} {ts}(test){/ts} {/if}</td>
63 <td class="label">{ts}Contribution Amount{/ts}</td>
64 <td>{include file="CRM/Price/Page/LineItem.tpl" context="Contribution"}
65 {if $contribution_recur_id}
66 <strong>{ts}Recurring Contribution{/ts}</strong>
68 {ts}Installments{/ts}: {if $recur_installments}{$recur_installments}{else}{ts}(ongoing){/ts}{/if}, {ts}Interval{/ts}: {$recur_frequency_interval} {$recur_frequency_unit}(s)
74 <td class="label">{ts}Total Amount{/ts}</td>
75 <td><strong>{$total_amount|crmMoney:$currency}</strong>
76 {if $contribution_recur_id}
77 <strong>{ts}Recurring Contribution{/ts}</strong>
79 {ts}Installments{/ts}: {if $recur_installments}{$recur_installments}{else}{ts}(ongoing){/ts}{/if}, {ts}Interval{/ts}: {$recur_frequency_interval} {$recur_frequency_unit}(s)
84 {if $non_deductible_amount}
86 <td class="label">{ts}Non-deductible Amount{/ts}</td>
87 <td>{$non_deductible_amount|crmMoney:$currency}</td>
92 <td class="label">{ts}Fee Amount{/ts}</td>
93 <td>{$fee_amount|crmMoney:$currency}</td>
98 <td class="label">{ts}Net Amount{/ts}</td>
99 <td>{$net_amount|crmMoney:$currency}</td>
104 <td class="label">{ts}Received{/ts}</td>
105 <td>{if $receive_date}{$receive_date|crmDate}{else}({ts}not available{/ts}){/if}</td>
107 {if $to_financial_account }
109 <td class="label">{ts}Received Into{/ts}</td>
110 <td>{$to_financial_account}</td>
114 <td class="label">{ts}Contribution Status{/ts}</td>
115 <td {if $contribution_status_id eq 3} class="font-red bold"{/if}>{$contribution_status}
116 {if $contribution_status_id eq 2} {if $is_pay_later}: {ts}Pay Later{/ts} {else} : {ts}Incomplete Transaction{/ts} {/if}{/if}</td>
121 <td class="label">{ts}Cancelled / Refunded Date{/ts}</td>
122 <td>{$cancel_date|crmDate}</td>
126 <td class="label">{ts}Cancellation / Refund Reason{/ts}</td>
127 <td>{$cancel_reason}</td>
132 <td class="label">{ts}Paid By{/ts}</td>
133 <td>{$payment_instrument}</td>
136 {if $payment_instrument eq 'Check'|ts}
138 <td class="label">{ts}Check Number{/ts}</td>
139 <td>{$check_number}</td>
143 <td class="label">{ts}Source{/ts}</td>
149 <td class="label">{ts}Campaign{/ts}</td>
154 {if $contribution_page_title}
156 <td class="label">{ts}Online Contribution Page{/ts}</td>
157 <td>{$contribution_page_title}</td>
162 <td class="label">{ts}Receipt Sent{/ts}</td>
163 <td>{$receipt_date|crmDate}</td>
166 {foreach from=$note item="rec"}
169 <td class="label">{ts}Note{/ts}</td>
177 <td class="label">{ts}Transaction ID{/ts}</td>
184 <td class="label">{ts}Invoice ID{/ts}</td>
185 <td>{$invoice_id} </td>
191 <td class="label">{$honor_type}</td>
192 <td>{$honor_display} </td>
198 <td class="label">{ts}Thank-you Sent{/ts}</td>
199 <td>{$thankyou_date|crmDate}</td>
204 {if $softContributions and !$pcp_id} {* We show soft credit name with PCP section if contribution is linked to a PCP. *}
205 <div class="crm-accordion-wrapper ">
206 <div class="crm-accordion-header">
209 <div class="crm-accordion-body">
210 <table class="crm-info-panel">
211 {foreach from=$softContributions.soft_credit item="softCont"}
214 <a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$softCont.contact_id`"}"
215 id="view_contact" title="{ts}View contact record{/ts}">{$softCont.contact_name}
218 <td>{$softCont.amount|crmMoney:$currency}</td>
227 <div class="crm-accordion-wrapper ">
228 <div class="crm-accordion-header">
229 {ts}Premium Information{/ts}
231 <div class="crm-accordion-body">
232 <table class="crm-info-panel">
233 <td class="label">{ts}Premium{/ts}</td>
235 <td class="label">{ts}Option{/ts}</td>
237 <td class="label">{ts}Fulfilled{/ts}</td>
238 <td>{$fulfilled|truncate:10:''|crmDate}</td>
245 <div id='PCPView' class="crm-accordion-wrapper ">
246 <div class="crm-accordion-header">
247 {ts}Personal Campaign Page Contribution Information{/ts}
249 <div class="crm-accordion-body">
250 <table class="crm-info-panel">
252 <td class="label">{ts}Personal Campaign Page{/ts}</td>
253 <td><a href="{crmURL p="civicrm/pcp/info" q="reset=1&id=`$pcp_id`"}">{$pcp}</a><br/>
254 <span class="description">{ts}Contribution was made through this personal campaign page.{/ts}</span>
258 <td class="label">{ts}Soft Credit To{/ts}</td>
259 <td><a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$soft_credit_to`"}" id="view_contact"
260 title="{ts}View contact record{/ts}">{$softCreditToName}</a></td>
263 <td class="label">{ts}In Public Honor Roll?{/ts}</td>
264 <td>{if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}</td>
266 {if $pcp_roll_nickname}
268 <td class="label">{ts}Honor Roll Name{/ts}</td>
269 <td>{$pcp_roll_nickname}</td>
272 {if $pcp_personal_note}
274 <td class="label">{ts}Personal Note{/ts}</td>
275 <td>{$pcp_personal_note}</td>
283 {include file="CRM/Custom/Page/CustomDataView.tpl"}
285 {if $billing_address}
287 <legend>{ts}Billing Address{/ts}</legend>
288 <div class="form-item">
289 {$billing_address|nl2br}
294 <div class="crm-submit-buttons">
295 {if call_user_func(array('CRM_Core_Permission','check'), 'edit contributions')}
296 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context"}
297 {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
298 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&key=$searchKey"}
300 <a class="button" href="{crmURL p='civicrm/contact/view/contribution' q=$urlParams}" accesskey="e"><span><div
301 class="icon edit-icon"></div>{ts}Edit{/ts}</span></a>
303 {if call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviContribute')}
304 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context"}
305 {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
306 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&key=$searchKey"}
308 <a class="button" href="{crmURL p='civicrm/contact/view/contribution' q=$urlParams}"><span><div
309 class="icon delete-icon"></div>{ts}Delete{/ts}</span></a>
311 {include file="CRM/common/formButtons.tpl" location="bottom"}