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