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