Commit | Line | Data |
---|---|---|
9b2e3ee6 MD |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
3 | | CiviCRM version 4.7 | | |
4 | +--------------------------------------------------------------------+ | |
8c9251b3 | 5 | | Copyright CiviCRM LLC (c) 2004-2018 | |
9b2e3ee6 MD |
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 | {crmRegion name="payment-info-block"} | |
27 | {if !empty($payments)} | |
28 | <table class="selector row-highlight"> | |
29 | <tr> | |
9b2e3ee6 MD |
30 | <th>{ts}Amount{/ts}</th> |
31 | <th>{ts}Type{/ts}</th> | |
32 | <th>{ts}Payment Method{/ts}</th> | |
33 | <th>{ts}Received{/ts}</th> | |
34 | <th>{ts}Transaction ID{/ts}</th> | |
35 | <th>{ts}Status{/ts}</th> | |
4ee75265 | 36 | <th></th> |
9b2e3ee6 MD |
37 | </tr> |
38 | {foreach from=$payments item=payment} | |
39 | <tr class="{cycle values="odd-row,even-row"}"> | |
9b2e3ee6 MD |
40 | <td>{$payment.total_amount|crmMoney:$payment.currency}</td> |
41 | <td>{$payment.financial_type}</td> | |
42 | <td>{$payment.payment_instrument}{if $payment.check_number} (#{$payment.check_number}){/if}</td> | |
43 | <td>{$payment.receive_date|crmDate}</td> | |
44 | <td>{$payment.trxn_id}</td> | |
45 | <td>{$payment.status}</td> | |
4ee75265 | 46 | <td>{$payment.action}</td> |
9b2e3ee6 MD |
47 | </tr> |
48 | {/foreach} | |
49 | </table> | |
50 | {else} | |
51 | {if $component eq 'event'} | |
52 | {assign var='entity' value='participant'} | |
53 | {else} | |
54 | {assign var='entity' value=$component} | |
55 | {/if} | |
56 | {ts 1=$entity}No payments found for this %1 record{/ts} | |
57 | {/if} | |
c0406a91 | 58 | |
59 | {foreach from=$paymentLinks item=paymentLink} | |
60 | <a class="open-inline action-item crm-hover-button" href="{$paymentLink.url}">» {ts}{$paymentLink.title}{/ts}</a> | |
61 | {/foreach} | |
62 | ||
9b2e3ee6 | 63 | {/crmRegion} |