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