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