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>
28 <div class="action-link">
29 <div class="crm-submit-buttons">
30 {if call_user_func(array('CRM_Core_Permission','check'), 'edit contributions')}
31 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context"}
32 {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
33 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&key=$searchKey"}
35 <a class="button" href="{crmURL p='civicrm/contact/view/contribution' q=$urlParams}" accesskey="e"><span><div class="icon edit-icon"></div>{ts}Edit{/ts}</span></a>
37 {if call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviContribute')}
38 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context"}
39 {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
40 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&key=$searchKey"}
42 <a class="button" href="{crmURL p='civicrm/contact/view/contribution' q=$urlParams}"><span><div class="icon delete-icon"></div>{ts}Delete{/ts}</span></a>
44 {include file="CRM/common/formButtons.tpl" location="top"}
47 <table class="crm-info-panel">
49 <td class="label">{ts}From{/ts}</td>
50 <td class="bold">{$displayName}</td>
53 <td class="label">{ts}Financial Type{/ts}</td>
54 <td>{$financial_type}{if $is_test} {ts}(test){/ts} {/if}</td>
58 <td class="label">{ts}Contribution Amount{/ts}</td>
59 <td>{include file="CRM/Price/Page/LineItem.tpl" context="Contribution"}
60 {if $contribution_recur_id}
61 <strong>{ts}Recurring Contribution{/ts}</strong> <br/>
62 {ts}Installments{/ts}: {if $recur_installments}{$recur_installments}{else}{ts}(ongoing){/ts}{/if}, {ts}Interval{/ts}: {$recur_frequency_interval} {$recur_frequency_unit}(s)
67 <td class="label">{ts}Total Amount{/ts}</td>
68 <td><strong>{$total_amount|crmMoney:$currency}</strong>
69 {if $contribution_recur_id}
70 <strong>{ts}Recurring Contribution{/ts}</strong> <br/>
71 {ts}Installments{/ts}: {if $recur_installments}{$recur_installments}{else}{ts}(ongoing){/ts}{/if}, {ts}Interval{/ts}: {$recur_frequency_interval} {$recur_frequency_unit}(s)
76 {if $non_deductible_amount}
78 <td class="label">{ts}Non-deductible Amount{/ts}</td>
79 <td>{$non_deductible_amount|crmMoney:$currency}</td>
84 <td class="label">{ts}Fee Amount{/ts}</td>
85 <td>{$fee_amount|crmMoney:$currency}</td>
90 <td class="label">{ts}Net Amount{/ts}</td>
91 <td>{$net_amount|crmMoney:$currency}</td>
96 <td class="label">{ts}Received{/ts}</td>
97 <td>{if $receive_date}{$receive_date|crmDate}{else}({ts}not available{/ts}){/if}</td>
99 {if $to_financial_account }
101 <td class="label">{ts}Received Into{/ts}</td>
102 <td>{$to_financial_account}</td>
106 <td class="label">{ts}Contribution Status{/ts}</td>
107 <td {if $contribution_status_id eq 3} class="font-red bold"{/if}>{$contribution_status}
108 {if $contribution_status_id eq 2} {if $is_pay_later}: {ts}Pay Later{/ts} {else} : {ts}Incomplete Transaction{/ts} {/if}{/if}</td>
113 <td class="label">{ts}Cancelled / Refunded Date{/ts}</td>
114 <td>{$cancel_date|crmDate}</td>
118 <td class="label">{ts}Cancellation / Refund Reason{/ts}</td>
119 <td>{$cancel_reason}</td>
124 <td class="label">{ts}Paid By{/ts}</td>
125 <td>{$payment_instrument}</td>
128 {if $payment_instrument eq 'Check'|ts}
130 <td class="label">{ts}Check Number{/ts}</td>
131 <td>{$check_number}</td>
135 <td class="label">{ts}Source{/ts}</td>
141 <td class="label">{ts}Campaign{/ts}</td>
146 {if $contribution_page_title}
148 <td class="label">{ts}Online Contribution Page{/ts}</td>
149 <td>{$contribution_page_title}</td>
154 <td class="label">{ts}Receipt Sent{/ts}</td>
155 <td>{$receipt_date|crmDate}</td>
158 {foreach from=$note item="rec"}
161 <td class="label">{ts}Note{/ts}</td><td>{$rec}</td>
168 <td class="label">{ts}Transaction ID{/ts}</td>
175 <td class="label">{ts}Invoice ID{/ts}</td>
176 <td>{$invoice_id} </td>
182 <td class="label">{$honor_type}</td>
183 <td>{$honor_display} </td>
189 <td class="label">{ts}Thank-you Sent{/ts}</td>
190 <td>{$thankyou_date|crmDate}</td>
194 {if $softCreditToName and !$pcp_id} {* We show soft credit name with PCP section if contribution is linked to a PCP. *}
196 <td class="label">{ts}Soft Credit To{/ts}</td>
197 <td><a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$soft_credit_to`"}" id="view_contact" title="{ts}View contact record{/ts}">{$softCreditToName}</a></td>
203 <div class="crm-accordion-wrapper ">
204 <div class="crm-accordion-header">
205 {ts}Premium Information{/ts}
207 <div class="crm-accordion-body">
208 <table class="crm-info-panel">
209 <td class="label">{ts}Premium{/ts}</td><td>{$premium}</td>
210 <td class="label">{ts}Option{/ts}</td><td>{$option}</td>
211 <td class="label">{ts}Fulfilled{/ts}</td><td>{$fulfilled|truncate:10:''|crmDate}</td>
218 <div id='PCPView' class="crm-accordion-wrapper ">
219 <div class="crm-accordion-header">
220 {ts}Personal Campaign Page Contribution Information{/ts}
222 <div class="crm-accordion-body">
223 <table class="crm-info-panel">
225 <td class="label">{ts}Personal Campaign Page{/ts}</td>
226 <td><a href="{crmURL p="civicrm/pcp/info" q="reset=1&id=`$pcp_id`"}">{$pcp}</a><br />
227 <span class="description">{ts}Contribution was made through this personal campaign page.{/ts}</span>
231 <td class="label">{ts}Soft Credit To{/ts}</td>
232 <td><a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$soft_credit_to`"}" id="view_contact" title="{ts}View contact record{/ts}">{$softCreditToName}</a></td>
234 <tr><td class="label">{ts}In Public Honor Roll?{/ts}</td><td>{if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}</td></tr>
235 {if $pcp_roll_nickname}
236 <tr><td class="label">{ts}Honor Roll Name{/ts}</td><td>{$pcp_roll_nickname}</td></tr>
238 {if $pcp_personal_note}
239 <tr><td class="label">{ts}Personal Note{/ts}</td><td>{$pcp_personal_note}</td></tr>
246 {include file="CRM/Custom/Page/CustomDataView.tpl"}
248 {if $billing_address}
249 <fieldset><legend>{ts}Billing Address{/ts}</legend>
250 <div class="form-item">
251 {$billing_address|nl2br}
256 <div class="crm-submit-buttons">
257 {if call_user_func(array('CRM_Core_Permission','check'), 'edit contributions')}
258 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context"}
259 {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
260 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&key=$searchKey"}
262 <a class="button" href="{crmURL p='civicrm/contact/view/contribution' q=$urlParams}" accesskey="e"><span><div class="icon edit-icon"></div>{ts}Edit{/ts}</span></a>
264 {if call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviContribute')}
265 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context"}
266 {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
267 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&key=$searchKey"}
269 <a class="button" href="{crmURL p='civicrm/contact/view/contribution' q=$urlParams}"><span><div class="icon delete-icon"></div>{ts}Delete{/ts}</span></a>
271 {include file="CRM/common/formButtons.tpl" location="bottom"}