Commit | Line | Data |
---|---|---|
9b2e3ee6 MD |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
1188c7a8 | 3 | | Copyright CiviCRM LLC. All rights reserved. | |
9b2e3ee6 | 4 | | | |
1188c7a8 TO |
5 | | This work is published under the GNU AGPLv3 license with some | |
6 | | permitted exceptions and without any warranty. For full license | | |
7 | | and copyright information, see https://civicrm.org/licensing | | |
9b2e3ee6 MD |
8 | +--------------------------------------------------------------------+ |
9 | *} | |
10 | {crmRegion name="payment-info-block"} | |
11 | {if !empty($payments)} | |
12 | <table class="selector row-highlight"> | |
13 | <tr> | |
9b2e3ee6 MD |
14 | <th>{ts}Amount{/ts}</th> |
15 | <th>{ts}Type{/ts}</th> | |
16 | <th>{ts}Payment Method{/ts}</th> | |
17 | <th>{ts}Received{/ts}</th> | |
18 | <th>{ts}Transaction ID{/ts}</th> | |
19 | <th>{ts}Status{/ts}</th> | |
4ee75265 | 20 | <th></th> |
9b2e3ee6 MD |
21 | </tr> |
22 | {foreach from=$payments item=payment} | |
23 | <tr class="{cycle values="odd-row,even-row"}"> | |
9b2e3ee6 MD |
24 | <td>{$payment.total_amount|crmMoney:$payment.currency}</td> |
25 | <td>{$payment.financial_type}</td> | |
26 | <td>{$payment.payment_instrument}{if $payment.check_number} (#{$payment.check_number}){/if}</td> | |
27 | <td>{$payment.receive_date|crmDate}</td> | |
28 | <td>{$payment.trxn_id}</td> | |
29 | <td>{$payment.status}</td> | |
4ee75265 | 30 | <td>{$payment.action}</td> |
9b2e3ee6 MD |
31 | </tr> |
32 | {/foreach} | |
33 | </table> | |
34 | {else} | |
35 | {if $component eq 'event'} | |
36 | {assign var='entity' value='participant'} | |
37 | {else} | |
38 | {assign var='entity' value=$component} | |
39 | {/if} | |
40 | {ts 1=$entity}No payments found for this %1 record{/ts} | |
41 | {/if} | |
c0406a91 | 42 | |
43 | {foreach from=$paymentLinks item=paymentLink} | |
13a3d214 | 44 | <a class="open-inline action-item crm-hover-button" href="{$paymentLink.url}"><i class="crm-i fa-chevron-right" aria-hidden="true"></i> {ts}{$paymentLink.title}{/ts}</a> |
c0406a91 | 45 | {/foreach} |
46 | ||
9b2e3ee6 | 47 | {/crmRegion} |