aed076fbeb0e8a433642e30b3d7147a7a36b2fe2
[civicrm-core.git] / templates / CRM / Contribute / Form / ContributionView.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.4 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2013 |
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">
27 <h3>{ts}View Contribution{/ts}</h3>
28
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"}
35 {/if}
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>
38 </a>
39 {/if}
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"}
44 {/if}
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>
47 </a>
48 {/if}
49 {include file="CRM/common/formButtons.tpl" location="top"}
50 </div>
51 </div>
52 <table class="crm-info-panel">
53 <tr>
54 <td class="label">{ts}From{/ts}</td>
55 <td class="bold">{$displayName}</td>
56 </tr>
57 <tr>
58 <td class="label">{ts}Financial Type{/ts}</td>
59 <td>{$financial_type}{if $is_test} {ts}(test){/ts} {/if}</td>
60 </tr>
61 {if $lineItem}
62 <tr>
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>
67 <br/>
68 {ts}Installments{/ts}: {if $recur_installments}{$recur_installments}{else}{ts}(ongoing){/ts}{/if}, {ts}Interval{/ts}: {$recur_frequency_interval} {$recur_frequency_unit}(s)
69 {/if}
70 </td>
71 </tr>
72 {else}
73 <tr>
74 <td class="label">{ts}Total Amount{/ts}</td>
75 <td><strong>{$total_amount|crmMoney:$currency}</strong>&nbsp;
76 {if $contribution_recur_id}
77 <strong>{ts}Recurring Contribution{/ts}</strong>
78 <br/>
79 {ts}Installments{/ts}: {if $recur_installments}{$recur_installments}{else}{ts}(ongoing){/ts}{/if}, {ts}Interval{/ts}: {$recur_frequency_interval} {$recur_frequency_unit}(s)
80 {/if}
81 </td>
82 </tr>
83 {/if}
84 {if $non_deductible_amount}
85 <tr>
86 <td class="label">{ts}Non-deductible Amount{/ts}</td>
87 <td>{$non_deductible_amount|crmMoney:$currency}</td>
88 </tr>
89 {/if}
90 {if $fee_amount}
91 <tr>
92 <td class="label">{ts}Fee Amount{/ts}</td>
93 <td>{$fee_amount|crmMoney:$currency}</td>
94 </tr>
95 {/if}
96 {if $net_amount}
97 <tr>
98 <td class="label">{ts}Net Amount{/ts}</td>
99 <td>{$net_amount|crmMoney:$currency}</td>
100 </tr>
101 {/if}
102
103 <tr>
104 <td class="label">{ts}Received{/ts}</td>
105 <td>{if $receive_date}{$receive_date|crmDate}{else}({ts}not available{/ts}){/if}</td>
106 </tr>
107 {if $to_financial_account }
108 <tr>
109 <td class="label">{ts}Received Into{/ts}</td>
110 <td>{$to_financial_account}</td>
111 </tr>
112 {/if}
113 <tr>
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>
117 </tr>
118
119 {if $cancel_date}
120 <tr>
121 <td class="label">{ts}Cancelled / Refunded Date{/ts}</td>
122 <td>{$cancel_date|crmDate}</td>
123 </tr>
124 {if $cancel_reason}
125 <tr>
126 <td class="label">{ts}Cancellation / Refund Reason{/ts}</td>
127 <td>{$cancel_reason}</td>
128 </tr>
129 {/if}
130 {/if}
131 <tr>
132 <td class="label">{ts}Paid By{/ts}</td>
133 <td>{$payment_instrument}</td>
134 </tr>
135
136 {if $payment_instrument eq 'Check'|ts}
137 <tr>
138 <td class="label">{ts}Check Number{/ts}</td>
139 <td>{$check_number}</td>
140 </tr>
141 {/if}
142 <tr>
143 <td class="label">{ts}Source{/ts}</td>
144 <td>{$source}</td>
145 </tr>
146
147 {if $campaign}
148 <tr>
149 <td class="label">{ts}Campaign{/ts}</td>
150 <td>{$campaign}</td>
151 </tr>
152 {/if}
153
154 {if $contribution_page_title}
155 <tr>
156 <td class="label">{ts}Online Contribution Page{/ts}</td>
157 <td>{$contribution_page_title}</td>
158 </tr>
159 {/if}
160 {if $receipt_date}
161 <tr>
162 <td class="label">{ts}Receipt Sent{/ts}</td>
163 <td>{$receipt_date|crmDate}</td>
164 </tr>
165 {/if}
166 {foreach from=$note item="rec"}
167 {if $rec }
168 <tr>
169 <td class="label">{ts}Note{/ts}</td>
170 <td>{$rec}</td>
171 </tr>
172 {/if}
173 {/foreach}
174
175 {if $trxn_id}
176 <tr>
177 <td class="label">{ts}Transaction ID{/ts}</td>
178 <td>{$trxn_id}</td>
179 </tr>
180 {/if}
181
182 {if $invoice_id}
183 <tr>
184 <td class="label">{ts}Invoice ID{/ts}</td>
185 <td>{$invoice_id}&nbsp;</td>
186 </tr>
187 {/if}
188
189 {if $honor_display}
190 <tr>
191 <td class="label">{$honor_type}</td>
192 <td>{$honor_display}&nbsp;</td>
193 </tr>
194 {/if}
195
196 {if $thankyou_date}
197 <tr>
198 <td class="label">{ts}Thank-you Sent{/ts}</td>
199 <td>{$thankyou_date|crmDate}</td>
200 </tr>
201 {/if}
202 </table>
203
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 crm-soft-credit-pane">
206 <div class="crm-accordion-header">
207 {ts}Soft Credit{/ts}
208 </div>
209 <div class="crm-accordion-body">
210 <table class="crm-info-panel crm-soft-credit-listing">
211 {foreach from=$softContributions.soft_credit item="softCont"}
212 <tr>
213 <td>
214 <a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$softCont.contact_id`"}"
215 title="{ts}View contact record{/ts}">{$softCont.contact_name}
216 </a>
217 </td>
218 <td>{$softCont.amount|crmMoney:$currency}
219 {if $softCont.soft_credit_type_label}
220 ({$softCont.soft_credit_type_label})
221 {/if}
222 </td>
223 </tr>
224 {/foreach}
225 </table>
226 </div>
227 </div>
228 {/if}
229
230 {if $premium}
231 <div class="crm-accordion-wrapper ">
232 <div class="crm-accordion-header">
233 {ts}Premium Information{/ts}
234 </div>
235 <div class="crm-accordion-body">
236 <table class="crm-info-panel">
237 <td class="label">{ts}Premium{/ts}</td>
238 <td>{$premium}</td>
239 <td class="label">{ts}Option{/ts}</td>
240 <td>{$option}</td>
241 <td class="label">{ts}Fulfilled{/ts}</td>
242 <td>{$fulfilled|truncate:10:''|crmDate}</td>
243 </table>
244 </div>
245 </div>
246 {/if}
247
248 {if $pcp_id}
249 <div id='PCPView' class="crm-accordion-wrapper ">
250 <div class="crm-accordion-header">
251 {ts}Personal Campaign Page Contribution Information{/ts}
252 </div>
253 <div class="crm-accordion-body">
254 <table class="crm-info-panel">
255 <tr>
256 <td class="label">{ts}Personal Campaign Page{/ts}</td>
257 <td><a href="{crmURL p="civicrm/pcp/info" q="reset=1&id=`$pcp_id`"}">{$pcp}</a><br/>
258 <span class="description">{ts}Contribution was made through this personal campaign page.{/ts}</span>
259 </td>
260 </tr>
261 <tr>
262 <td class="label">{ts}Soft Credit To{/ts}</td>
263 <td><a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$soft_credit_to`"}" id="view_contact"
264 title="{ts}View contact record{/ts}">{$softCreditToName}</a></td>
265 </tr>
266 <tr>
267 <td class="label">{ts}In Public Honor Roll?{/ts}</td>
268 <td>{if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}</td>
269 </tr>
270 {if $pcp_roll_nickname}
271 <tr>
272 <td class="label">{ts}Honor Roll Name{/ts}</td>
273 <td>{$pcp_roll_nickname}</td>
274 </tr>
275 {/if}
276 {if $pcp_personal_note}
277 <tr>
278 <td class="label">{ts}Personal Note{/ts}</td>
279 <td>{$pcp_personal_note}</td>
280 </tr>
281 {/if}
282 </table>
283 </div>
284 </div>
285 {/if}
286
287 {include file="CRM/Custom/Page/CustomDataView.tpl"}
288
289 {if $billing_address}
290 <fieldset>
291 <legend>{ts}Billing Address{/ts}</legend>
292 <div class="form-item">
293 {$billing_address|nl2br}
294 </div>
295 </fieldset>
296 {/if}
297
298 <div class="crm-submit-buttons">
299 {if call_user_func(array('CRM_Core_Permission','check'), 'edit contributions')}
300 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context"}
301 {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
302 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&key=$searchKey"}
303 {/if}
304 <a class="button" href="{crmURL p='civicrm/contact/view/contribution' q=$urlParams}" accesskey="e"><span><div
305 class="icon edit-icon"></div>{ts}Edit{/ts}</span></a>
306 {/if}
307 {if call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviContribute')}
308 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context"}
309 {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
310 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&key=$searchKey"}
311 {/if}
312 <a class="button" href="{crmURL p='civicrm/contact/view/contribution' q=$urlParams}"><span><div
313 class="icon delete-icon"></div>{ts}Delete{/ts}</span></a>
314 {/if}
315 {include file="CRM/common/formButtons.tpl" location="bottom"}
316 </div>
317 </div>