Merge pull request #12998 from agileware/CIVICRM-990
[civicrm-core.git] / templates / CRM / Contribute / Form / PaymentInfoBlock.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 5 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2019 |
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>
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>
36 <th></th>
37 </tr>
38 {foreach from=$payments item=payment}
39 <tr class="{cycle values="odd-row,even-row"}">
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>
46 <td>{$payment.action}</td>
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}
58
59 {foreach from=$paymentLinks item=paymentLink}
60 <a class="open-inline action-item crm-hover-button" href="{$paymentLink.url}">&raquo; {ts}{$paymentLink.title}{/ts}</a>
61 {/foreach}
62
63 {/crmRegion}