+--------------------------------------------------------------------+
*}
{if $transaction}
- {if !empty($rows)}
- <table id='info'>
- <tr class="columnheader">
- <th>{ts}Amount{/ts}</th>
- <th>{ts}Type{/ts}</th>
- <th>{ts}Payment Method{/ts}</th>
- <th>{ts}Received{/ts}</th>
- <th>{ts}Transaction ID{/ts}</th>
- <th>{ts}Status{/ts}</th>
- </tr>
- {foreach from=$rows item=row}
- <tr>
- <td>{$row.total_amount|crmMoney:$row.currency}</td>
- <td>{$row.financial_type}</td>
- <td>{$row.payment_instrument}{if $row.check_number} (#{$row.check_number}){/if}</td>
- <td>{$row.receive_date|crmDate}</td>
- <td>{$row.trxn_id}</td>
- <td>{$row.status}</td>
- </tr>
- {/foreach}
- <table>
- {else}
- {if $component eq 'event'}
- {assign var='entity' value='participant'}
- {else}
- {assign var='entity' value=$component}
- {/if}
- {ts 1=$entity}No payments found for this %1 record{/ts}
- {/if}
+ {include file="CRM/Contribute/Form/PaymentInfoBlock.tpl"}
{if !$suppressPaymentFormButtons}
<div class="crm-submit-buttons">
{include file="CRM/common/formButtons.tpl"}
<tr>
<td class="font-size12pt label"><strong>{if $component eq 'event'}{ts}Participant{/ts}{else}{ts}Contact{/ts}{/if}</strong></td><td class="font-size12pt"><strong>{$displayName}</strong></td>
</tr>
- {if $contributionMode}
- <tr class="crm-payment-form-block-payment_processor_id"><td class="label nowrap">{$form.payment_processor_id.label}<span class="crm-marker"> * </span></td><td>{$form.payment_processor_id.html}</td></tr>
- {/if}
{if $eventName}
<tr>
<td class='label'>{ts}Event{/ts}</td><td>{$eventName}</td>
<td>{$form.from_email_address.html}</td>
</tr>
{/if}
+ {if $contributionMode}
+ <tr class="crm-payment-form-block-payment_processor_id"><td class="label nowrap">{$form.payment_processor_id.label}<span class="crm-marker"> * </span></td><td>{$form.payment_processor_id.html}</td></tr>
+ {/if}
</tr>
</table>
<td >{$form.payment_instrument_id.html} {help id="payment_instrument_id"}</td>
</td>
</tr>
- {if $showCheckNumber || !$isOnline}
- <tr id="checkNumber" class="crm-payment-form-block-check_number">
- <td class="label">{$form.check_number.label}</td>
- <td>{$form.check_number.html}</td>
- </tr>
- {/if}
<tr class="crm-payment-form-block-trxn_id">
<td class="label">{$form.trxn_id.label}</td>
<td>{$form.trxn_id.html} {help id="id-trans_id"}</td>
</script>
{/literal}
- {if !$contributionMode}
- {include file="CRM/common/showHideByFieldValue.tpl"
- trigger_field_id ="payment_instrument_id"
- trigger_value = '4'
- target_element_id ="checkNumber"
- target_element_type ="table-row"
- field_type ="select"
- invert = 0
- }
- {/if}
{/if}