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