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