Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
3 | | CiviCRM version 4.3 | | |
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> | |
3bd06df9 | 28 | |
6a488035 | 29 | <div class="action-link"> |
3bd06df9 | 30 | <div class="crm-submit-buttons"> |
6a488035 | 31 | {if call_user_func(array('CRM_Core_Permission','check'), 'edit contributions')} |
3bd06df9 KJ |
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> | |
6a488035 TO |
39 | {/if} |
40 | {if call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviContribute')} | |
3bd06df9 KJ |
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> | |
6a488035 TO |
48 | {/if} |
49 | {include file="CRM/common/formButtons.tpl" location="top"} | |
3bd06df9 | 50 | </div> |
6a488035 TO |
51 | </div> |
52 | <table class="crm-info-panel"> | |
3bd06df9 KJ |
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} | |
6a488035 | 62 | <tr> |
3bd06df9 KJ |
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> | |
6a488035 | 71 | </tr> |
3bd06df9 | 72 | {else} |
6a488035 | 73 | <tr> |
3bd06df9 KJ |
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> | |
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> | |
6a488035 | 82 | </tr> |
3bd06df9 KJ |
83 | {/if} |
84 | {if $non_deductible_amount} | |
6a488035 | 85 | <tr> |
3bd06df9 KJ |
86 | <td class="label">{ts}Non-deductible Amount{/ts}</td> |
87 | <td>{$non_deductible_amount|crmMoney:$currency}</td> | |
6a488035 | 88 | </tr> |
6a488035 TO |
89 | {/if} |
90 | {if $fee_amount} | |
3bd06df9 KJ |
91 | <tr> |
92 | <td class="label">{ts}Fee Amount{/ts}</td> | |
93 | <td>{$fee_amount|crmMoney:$currency}</td> | |
94 | </tr> | |
6a488035 TO |
95 | {/if} |
96 | {if $net_amount} | |
3bd06df9 KJ |
97 | <tr> |
98 | <td class="label">{ts}Net Amount{/ts}</td> | |
99 | <td>{$net_amount|crmMoney:$currency}</td> | |
100 | </tr> | |
6a488035 TO |
101 | {/if} |
102 | ||
103 | <tr> | |
3bd06df9 KJ |
104 | <td class="label">{ts}Received{/ts}</td> |
105 | <td>{if $receive_date}{$receive_date|crmDate}{else}({ts}not available{/ts}){/if}</td> | |
6a488035 | 106 | </tr> |
3bd06df9 KJ |
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} | |
6a488035 | 113 | <tr> |
3bd06df9 KJ |
114 | <td class="label">{ts}Contribution Status{/ts}</td> |
115 | <td {if $contribution_status_id eq 3} class="font-red bold"{/if}>{$contribution_status} | |
6a488035 TO |
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} | |
3bd06df9 KJ |
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} | |
6a488035 TO |
130 | {/if} |
131 | <tr> | |
3bd06df9 KJ |
132 | <td class="label">{ts}Paid By{/ts}</td> |
133 | <td>{$payment_instrument}</td> | |
6a488035 TO |
134 | </tr> |
135 | ||
136 | {if $payment_instrument eq 'Check'|ts} | |
3bd06df9 KJ |
137 | <tr> |
138 | <td class="label">{ts}Check Number{/ts}</td> | |
139 | <td>{$check_number}</td> | |
140 | </tr> | |
6a488035 TO |
141 | {/if} |
142 | <tr> | |
3bd06df9 KJ |
143 | <td class="label">{ts}Source{/ts}</td> |
144 | <td>{$source}</td> | |
6a488035 TO |
145 | </tr> |
146 | ||
147 | {if $campaign} | |
3bd06df9 | 148 | <tr> |
6a488035 | 149 | <td class="label">{ts}Campaign{/ts}</td> |
3bd06df9 KJ |
150 | <td>{$campaign}</td> |
151 | </tr> | |
6a488035 TO |
152 | {/if} |
153 | ||
154 | {if $contribution_page_title} | |
3bd06df9 KJ |
155 | <tr> |
156 | <td class="label">{ts}Online Contribution Page{/ts}</td> | |
157 | <td>{$contribution_page_title}</td> | |
158 | </tr> | |
159 | {/if} | |
6a488035 | 160 | {if $receipt_date} |
3bd06df9 KJ |
161 | <tr> |
162 | <td class="label">{ts}Receipt Sent{/ts}</td> | |
163 | <td>{$receipt_date|crmDate}</td> | |
164 | </tr> | |
6a488035 TO |
165 | {/if} |
166 | {foreach from=$note item="rec"} | |
167 | {if $rec } | |
3bd06df9 KJ |
168 | <tr> |
169 | <td class="label">{ts}Note{/ts}</td> | |
170 | <td>{$rec}</td> | |
171 | </tr> | |
6a488035 TO |
172 | {/if} |
173 | {/foreach} | |
174 | ||
175 | {if $trxn_id} | |
3bd06df9 KJ |
176 | <tr> |
177 | <td class="label">{ts}Transaction ID{/ts}</td> | |
178 | <td>{$trxn_id}</td> | |
179 | </tr> | |
6a488035 TO |
180 | {/if} |
181 | ||
182 | {if $invoice_id} | |
3bd06df9 KJ |
183 | <tr> |
184 | <td class="label">{ts}Invoice ID{/ts}</td> | |
185 | <td>{$invoice_id} </td> | |
186 | </tr> | |
6a488035 TO |
187 | {/if} |
188 | ||
189 | {if $honor_display} | |
3bd06df9 KJ |
190 | <tr> |
191 | <td class="label">{$honor_type}</td> | |
192 | <td>{$honor_display} </td> | |
193 | </tr> | |
6a488035 TO |
194 | {/if} |
195 | ||
196 | {if $thankyou_date} | |
3bd06df9 KJ |
197 | <tr> |
198 | <td class="label">{ts}Thank-you Sent{/ts}</td> | |
199 | <td>{$thankyou_date|crmDate}</td> | |
200 | </tr> | |
6a488035 | 201 | {/if} |
2020b311 | 202 | </table> |
6a488035 | 203 | |
3bd06df9 KJ |
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"> | |
207 | {ts}Soft Credit{/ts} | |
2020b311 | 208 | </div> |
3bd06df9 KJ |
209 | <div class="crm-accordion-body"> |
210 | <table class="crm-info-panel"> | |
17db9f82 | 211 | {foreach from=$softContributions.soft_credit item="softCont"} |
7ccf8829 KJ |
212 | <tr> |
213 | <td> | |
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} | |
216 | </a> | |
217 | </td> | |
218 | <td>{$softCont.amount|crmMoney:$currency}</td> | |
219 | </tr> | |
3bd06df9 KJ |
220 | {/foreach} |
221 | </table> | |
222 | </div> | |
223 | </div> | |
224 | {/if} | |
6a488035 TO |
225 | |
226 | {if $premium} | |
3bd06df9 KJ |
227 | <div class="crm-accordion-wrapper "> |
228 | <div class="crm-accordion-header"> | |
229 | {ts}Premium Information{/ts} | |
230 | </div> | |
231 | <div class="crm-accordion-body"> | |
232 | <table class="crm-info-panel"> | |
233 | <td class="label">{ts}Premium{/ts}</td> | |
234 | <td>{$premium}</td> | |
235 | <td class="label">{ts}Option{/ts}</td> | |
236 | <td>{$option}</td> | |
237 | <td class="label">{ts}Fulfilled{/ts}</td> | |
238 | <td>{$fulfilled|truncate:10:''|crmDate}</td> | |
239 | </table> | |
6a488035 | 240 | </div> |
3bd06df9 | 241 | </div> |
6a488035 TO |
242 | {/if} |
243 | ||
244 | {if $pcp_id} | |
3bd06df9 KJ |
245 | <div id='PCPView' class="crm-accordion-wrapper "> |
246 | <div class="crm-accordion-header"> | |
247 | {ts}Personal Campaign Page Contribution Information{/ts} | |
6a488035 | 248 | </div> |
3bd06df9 KJ |
249 | <div class="crm-accordion-body"> |
250 | <table class="crm-info-panel"> | |
251 | <tr> | |
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> | |
255 | </td> | |
256 | </tr> | |
257 | <tr> | |
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> | |
261 | </tr> | |
262 | <tr> | |
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> | |
265 | </tr> | |
266 | {if $pcp_roll_nickname} | |
267 | <tr> | |
268 | <td class="label">{ts}Honor Roll Name{/ts}</td> | |
269 | <td>{$pcp_roll_nickname}</td> | |
270 | </tr> | |
271 | {/if} | |
272 | {if $pcp_personal_note} | |
273 | <tr> | |
274 | <td class="label">{ts}Personal Note{/ts}</td> | |
275 | <td>{$pcp_personal_note}</td> | |
276 | </tr> | |
277 | {/if} | |
278 | </table> | |
279 | </div> | |
280 | </div> | |
6a488035 TO |
281 | {/if} |
282 | ||
283 | {include file="CRM/Custom/Page/CustomDataView.tpl"} | |
284 | ||
285 | {if $billing_address} | |
3bd06df9 KJ |
286 | <fieldset> |
287 | <legend>{ts}Billing Address{/ts}</legend> | |
288 | <div class="form-item"> | |
289 | {$billing_address|nl2br} | |
290 | </div> | |
291 | </fieldset> | |
6a488035 TO |
292 | {/if} |
293 | ||
294 | <div class="crm-submit-buttons"> | |
3bd06df9 KJ |
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"} | |
6a488035 | 299 | {/if} |
3bd06df9 KJ |
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> | |
302 | {/if} | |
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"} | |
6a488035 | 307 | {/if} |
3bd06df9 KJ |
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> | |
310 | {/if} | |
311 | {include file="CRM/common/formButtons.tpl" location="bottom"} | |
6a488035 TO |
312 | </div> |
313 | </div> |