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>
195 {if $softContributions and !$pcp_id} {* We show soft credit name with PCP section if contribution is linked to a PCP. *}
196 <div class="crm-accordion-wrapper ">
197 <div class="crm-accordion-header">
200 <div class="crm-accordion-body">
201 <table class="crm-info-panel">
202 {foreach from=$softContributions item="softCont"}
205 <td class="label">{ts}Soft Credit To{/ts}</td>
206 <td><a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$softCont.soft_credit_to`"}" id="view_contact" title="{ts}View contact record{/ts}">{$softCont.softCreditToName}</a></td>
207 <td class="label">{ts}Amount{/ts}</td>
208 <td>{$softCont.soft_credit_amount|crmMoney:$currency}</td>
218 <div class="crm-accordion-wrapper ">
219 <div class="crm-accordion-header">
220 {ts}Premium Information{/ts}
222 <div class="crm-accordion-body">
223 <table class="crm-info-panel">
224 <td class="label">{ts}Premium{/ts}</td><td>{$premium}</td>
225 <td class="label">{ts}Option{/ts}</td><td>{$option}</td>
226 <td class="label">{ts}Fulfilled{/ts}</td><td>{$fulfilled|truncate:10:''|crmDate}</td>
233 <div id='PCPView' class="crm-accordion-wrapper ">
234 <div class="crm-accordion-header">
235 {ts}Personal Campaign Page Contribution Information{/ts}
237 <div class="crm-accordion-body">
238 <table class="crm-info-panel">
240 <td class="label">{ts}Personal Campaign Page{/ts}</td>
241 <td><a href="{crmURL p="civicrm/pcp/info" q="reset=1&id=`$pcp_id`"}">{$pcp}</a><br />
242 <span class="description">{ts}Contribution was made through this personal campaign page.{/ts}</span>
246 <td class="label">{ts}Soft Credit To{/ts}</td>
247 <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>
249 <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>
250 {if $pcp_roll_nickname}
251 <tr><td class="label">{ts}Honor Roll Name{/ts}</td><td>{$pcp_roll_nickname}</td></tr>
253 {if $pcp_personal_note}
254 <tr><td class="label">{ts}Personal Note{/ts}</td><td>{$pcp_personal_note}</td></tr>
261 {include file="CRM/Custom/Page/CustomDataView.tpl"}
263 {if $billing_address}
264 <fieldset><legend>{ts}Billing Address{/ts}</legend>
265 <div class="form-item">
266 {$billing_address|nl2br}
271 <div class="crm-submit-buttons">
272 {if call_user_func(array('CRM_Core_Permission','check'), 'edit contributions')}
273 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context"}
274 {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
275 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&key=$searchKey"}
277 <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>
279 {if call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviContribute')}
280 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context"}
281 {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
282 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&key=$searchKey"}
284 <a class="button" href="{crmURL p='civicrm/contact/view/contribution' q=$urlParams}"><span><div class="icon delete-icon"></div>{ts}Delete{/ts}</span></a>
286 {include file="CRM/common/formButtons.tpl" location="bottom"}