*}
<div class="crm-block crm-content-block crm-contribution-view-form-block">
<h3>{ts}View Contribution{/ts}</h3>
+
<div class="action-link">
- <div class="crm-submit-buttons">
+ <div class="crm-submit-buttons">
{if call_user_func(array('CRM_Core_Permission','check'), 'edit contributions')}
- {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context"}
- {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
- {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&key=$searchKey"}
- {/if}
- <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>
+ {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context"}
+ {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
+ {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&key=$searchKey"}
+ {/if}
+ <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>
{/if}
{if call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviContribute')}
- {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context"}
- {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
- {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&key=$searchKey"}
- {/if}
- <a class="button" href="{crmURL p='civicrm/contact/view/contribution' q=$urlParams}"><span><div class="icon delete-icon"></div>{ts}Delete{/ts}</span></a>
+ {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context"}
+ {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
+ {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&key=$searchKey"}
+ {/if}
+ <a class="button" href="{crmURL p='civicrm/contact/view/contribution' q=$urlParams}"><span>
+ <div class="icon delete-icon"></div>{ts}Delete{/ts}</span>
+ </a>
{/if}
{include file="CRM/common/formButtons.tpl" location="top"}
- </div>
+ </div>
</div>
<table class="crm-info-panel">
+ <tr>
+ <td class="label">{ts}From{/ts}</td>
+ <td class="bold">{$displayName}</td>
+ </tr>
+ <tr>
+ <td class="label">{ts}Financial Type{/ts}</td>
+ <td>{$financial_type}{if $is_test} {ts}(test){/ts} {/if}</td>
+ </tr>
+ {if $lineItem}
<tr>
- <td class="label">{ts}From{/ts}</td>
- <td class="bold">{$displayName}</td>
+ <td class="label">{ts}Contribution Amount{/ts}</td>
+ <td>{include file="CRM/Price/Page/LineItem.tpl" context="Contribution"}
+ {if $contribution_recur_id}
+ <strong>{ts}Recurring Contribution{/ts}</strong>
+ <br/>
+ {ts}Installments{/ts}: {if $recur_installments}{$recur_installments}{else}{ts}(ongoing){/ts}{/if}, {ts}Interval{/ts}: {$recur_frequency_interval} {$recur_frequency_unit}(s)
+ {/if}
+ </td>
</tr>
+ {else}
<tr>
- <td class="label">{ts}Financial Type{/ts}</td>
- <td>{$financial_type}{if $is_test} {ts}(test){/ts} {/if}</td>
+ <td class="label">{ts}Total Amount{/ts}</td>
+ <td><strong>{$total_amount|crmMoney:$currency}</strong>
+ {if $contribution_recur_id}
+ <strong>{ts}Recurring Contribution{/ts}</strong>
+ <br/>
+ {ts}Installments{/ts}: {if $recur_installments}{$recur_installments}{else}{ts}(ongoing){/ts}{/if}, {ts}Interval{/ts}: {$recur_frequency_interval} {$recur_frequency_unit}(s)
+ {/if}
+ </td>
</tr>
- {if $lineItem}
- <tr>
- <td class="label">{ts}Contribution Amount{/ts}</td>
- <td>{include file="CRM/Price/Page/LineItem.tpl" context="Contribution"}
- {if $contribution_recur_id}
- <strong>{ts}Recurring Contribution{/ts}</strong> <br/>
- {ts}Installments{/ts}: {if $recur_installments}{$recur_installments}{else}{ts}(ongoing){/ts}{/if}, {ts}Interval{/ts}: {$recur_frequency_interval} {$recur_frequency_unit}(s)
- {/if}</td>
- </tr>
- {else}
+ {/if}
+ {if $non_deductible_amount}
<tr>
- <td class="label">{ts}Total Amount{/ts}</td>
- <td><strong>{$total_amount|crmMoney:$currency}</strong>
- {if $contribution_recur_id}
- <strong>{ts}Recurring Contribution{/ts}</strong> <br/>
- {ts}Installments{/ts}: {if $recur_installments}{$recur_installments}{else}{ts}(ongoing){/ts}{/if}, {ts}Interval{/ts}: {$recur_frequency_interval} {$recur_frequency_unit}(s)
- {/if}
- </td>
+ <td class="label">{ts}Non-deductible Amount{/ts}</td>
+ <td>{$non_deductible_amount|crmMoney:$currency}</td>
</tr>
- {/if}
- {if $non_deductible_amount}
- <tr>
- <td class="label">{ts}Non-deductible Amount{/ts}</td>
- <td>{$non_deductible_amount|crmMoney:$currency}</td>
- </tr>
{/if}
{if $fee_amount}
- <tr>
- <td class="label">{ts}Fee Amount{/ts}</td>
- <td>{$fee_amount|crmMoney:$currency}</td>
- </tr>
+ <tr>
+ <td class="label">{ts}Fee Amount{/ts}</td>
+ <td>{$fee_amount|crmMoney:$currency}</td>
+ </tr>
{/if}
{if $net_amount}
- <tr>
- <td class="label">{ts}Net Amount{/ts}</td>
- <td>{$net_amount|crmMoney:$currency}</td>
- </tr>
+ <tr>
+ <td class="label">{ts}Net Amount{/ts}</td>
+ <td>{$net_amount|crmMoney:$currency}</td>
+ </tr>
{/if}
<tr>
- <td class="label">{ts}Received{/ts}</td>
- <td>{if $receive_date}{$receive_date|crmDate}{else}({ts}not available{/ts}){/if}</td>
+ <td class="label">{ts}Received{/ts}</td>
+ <td>{if $receive_date}{$receive_date|crmDate}{else}({ts}not available{/ts}){/if}</td>
</tr>
- {if $to_financial_account }
+ {if $to_financial_account }
+ <tr>
+ <td class="label">{ts}Received Into{/ts}</td>
+ <td>{$to_financial_account}</td>
+ </tr>
+ {/if}
<tr>
- <td class="label">{ts}Received Into{/ts}</td>
- <td>{$to_financial_account}</td>
- </tr>
- {/if}
- <tr>
- <td class="label">{ts}Contribution Status{/ts}</td>
- <td {if $contribution_status_id eq 3} class="font-red bold"{/if}>{$contribution_status}
+ <td class="label">{ts}Contribution Status{/ts}</td>
+ <td {if $contribution_status_id eq 3} class="font-red bold"{/if}>{$contribution_status}
{if $contribution_status_id eq 2} {if $is_pay_later}: {ts}Pay Later{/ts} {else} : {ts}Incomplete Transaction{/ts} {/if}{/if}</td>
</tr>
{if $cancel_date}
- <tr>
- <td class="label">{ts}Cancelled / Refunded Date{/ts}</td>
- <td>{$cancel_date|crmDate}</td>
- </tr>
- {if $cancel_reason}
- <tr>
- <td class="label">{ts}Cancellation / Refund Reason{/ts}</td>
- <td>{$cancel_reason}</td>
- </tr>
- {/if}
+ <tr>
+ <td class="label">{ts}Cancelled / Refunded Date{/ts}</td>
+ <td>{$cancel_date|crmDate}</td>
+ </tr>
+ {if $cancel_reason}
+ <tr>
+ <td class="label">{ts}Cancellation / Refund Reason{/ts}</td>
+ <td>{$cancel_reason}</td>
+ </tr>
+ {/if}
{/if}
<tr>
- <td class="label">{ts}Paid By{/ts}</td>
- <td>{$payment_instrument}</td>
+ <td class="label">{ts}Paid By{/ts}</td>
+ <td>{$payment_instrument}</td>
</tr>
{if $payment_instrument eq 'Check'|ts}
- <tr>
- <td class="label">{ts}Check Number{/ts}</td>
- <td>{$check_number}</td>
- </tr>
+ <tr>
+ <td class="label">{ts}Check Number{/ts}</td>
+ <td>{$check_number}</td>
+ </tr>
{/if}
<tr>
- <td class="label">{ts}Source{/ts}</td>
- <td>{$source}</td>
+ <td class="label">{ts}Source{/ts}</td>
+ <td>{$source}</td>
</tr>
{if $campaign}
- <tr>
+ <tr>
<td class="label">{ts}Campaign{/ts}</td>
- <td>{$campaign}</td>
- </tr>
+ <td>{$campaign}</td>
+ </tr>
{/if}
{if $contribution_page_title}
- <tr>
- <td class="label">{ts}Online Contribution Page{/ts}</td>
- <td>{$contribution_page_title}</td>
- </tr>
- {/if}
+ <tr>
+ <td class="label">{ts}Online Contribution Page{/ts}</td>
+ <td>{$contribution_page_title}</td>
+ </tr>
+ {/if}
{if $receipt_date}
- <tr>
- <td class="label">{ts}Receipt Sent{/ts}</td>
- <td>{$receipt_date|crmDate}</td>
- </tr>
+ <tr>
+ <td class="label">{ts}Receipt Sent{/ts}</td>
+ <td>{$receipt_date|crmDate}</td>
+ </tr>
{/if}
{foreach from=$note item="rec"}
{if $rec }
- <tr>
- <td class="label">{ts}Note{/ts}</td><td>{$rec}</td>
- </tr>
+ <tr>
+ <td class="label">{ts}Note{/ts}</td>
+ <td>{$rec}</td>
+ </tr>
{/if}
{/foreach}
{if $trxn_id}
- <tr>
- <td class="label">{ts}Transaction ID{/ts}</td>
- <td>{$trxn_id}</td>
- </tr>
+ <tr>
+ <td class="label">{ts}Transaction ID{/ts}</td>
+ <td>{$trxn_id}</td>
+ </tr>
{/if}
{if $invoice_id}
- <tr>
- <td class="label">{ts}Invoice ID{/ts}</td>
- <td>{$invoice_id} </td>
- </tr>
+ <tr>
+ <td class="label">{ts}Invoice ID{/ts}</td>
+ <td>{$invoice_id} </td>
+ </tr>
{/if}
{if $honor_display}
- <tr>
- <td class="label">{$honor_type}</td>
- <td>{$honor_display} </td>
- </tr>
+ <tr>
+ <td class="label">{$honor_type}</td>
+ <td>{$honor_display} </td>
+ </tr>
{/if}
{if $thankyou_date}
- <tr>
- <td class="label">{ts}Thank-you Sent{/ts}</td>
- <td>{$thankyou_date|crmDate}</td>
- </tr>
+ <tr>
+ <td class="label">{ts}Thank-you Sent{/ts}</td>
+ <td>{$thankyou_date|crmDate}</td>
+ </tr>
{/if}
</table>
- {if $softContributions and !$pcp_id} {* We show soft credit name with PCP section if contribution is linked to a PCP. *}
- <div class="crm-accordion-wrapper ">
- <div class="crm-accordion-header">
- {ts}Soft Credit{/ts}
- </div>
- <div class="crm-accordion-body">
- <table class="crm-info-panel">
- {foreach from=$softContributions item="softCont"}
- {if $softCont }
- <tr>
- <td class="label">{ts}Soft Credit To{/ts}</td>
- <td><a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$softCont.soft_credit_to`"}" id="view_contact" title="{ts}View contact record{/ts}">{$softCont.softCreditToName}</a></td>
- <td class="label">{ts}Amount{/ts}</td>
- <td>{$softCont.soft_credit_amount|crmMoney:$currency}</td>
- </tr>
- {/if}
- {/foreach}
- </table>
- </div>
+{if $softContributions and !$pcp_id} {* We show soft credit name with PCP section if contribution is linked to a PCP. *}
+ <div class="crm-accordion-wrapper ">
+ <div class="crm-accordion-header">
+ {ts}Soft Credit{/ts}
</div>
- {/if}
+ <div class="crm-accordion-body">
+ <table class="crm-info-panel">
+ {foreach from=$softContributions item="softCont"}
+ {if $softCont }
+ <tr>
+ <td class="label">{ts}Soft Credit To{/ts}</td>
+ <td><a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$softCont.soft_credit_to`"}"
+ id="view_contact" title="{ts}View contact record{/ts}">{$softCont.softCreditToName}</a></td>
+ <td class="label">{ts}Amount{/ts}</td>
+ <td>{$softCont.soft_credit_amount|crmMoney:$currency}</td>
+ </tr>
+ {/if}
+ {/foreach}
+ </table>
+ </div>
+ </div>
+{/if}
{if $premium}
- <div class="crm-accordion-wrapper ">
- <div class="crm-accordion-header">
- {ts}Premium Information{/ts}
- </div>
- <div class="crm-accordion-body">
- <table class="crm-info-panel">
- <td class="label">{ts}Premium{/ts}</td><td>{$premium}</td>
- <td class="label">{ts}Option{/ts}</td><td>{$option}</td>
- <td class="label">{ts}Fulfilled{/ts}</td><td>{$fulfilled|truncate:10:''|crmDate}</td>
- </table>
- </div>
+ <div class="crm-accordion-wrapper ">
+ <div class="crm-accordion-header">
+ {ts}Premium Information{/ts}
+ </div>
+ <div class="crm-accordion-body">
+ <table class="crm-info-panel">
+ <td class="label">{ts}Premium{/ts}</td>
+ <td>{$premium}</td>
+ <td class="label">{ts}Option{/ts}</td>
+ <td>{$option}</td>
+ <td class="label">{ts}Fulfilled{/ts}</td>
+ <td>{$fulfilled|truncate:10:''|crmDate}</td>
+ </table>
</div>
+ </div>
{/if}
{if $pcp_id}
- <div id='PCPView' class="crm-accordion-wrapper ">
- <div class="crm-accordion-header">
- {ts}Personal Campaign Page Contribution Information{/ts}
- </div>
- <div class="crm-accordion-body">
- <table class="crm-info-panel">
- <tr>
- <td class="label">{ts}Personal Campaign Page{/ts}</td>
- <td><a href="{crmURL p="civicrm/pcp/info" q="reset=1&id=`$pcp_id`"}">{$pcp}</a><br />
- <span class="description">{ts}Contribution was made through this personal campaign page.{/ts}</span>
- </td>
- </tr>
- <tr>
- <td class="label">{ts}Soft Credit To{/ts}</td>
- <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>
- </tr>
- <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>
- {if $pcp_roll_nickname}
- <tr><td class="label">{ts}Honor Roll Name{/ts}</td><td>{$pcp_roll_nickname}</td></tr>
- {/if}
- {if $pcp_personal_note}
- <tr><td class="label">{ts}Personal Note{/ts}</td><td>{$pcp_personal_note}</td></tr>
- {/if}
- </table>
- </div>
+ <div id='PCPView' class="crm-accordion-wrapper ">
+ <div class="crm-accordion-header">
+ {ts}Personal Campaign Page Contribution Information{/ts}
</div>
+ <div class="crm-accordion-body">
+ <table class="crm-info-panel">
+ <tr>
+ <td class="label">{ts}Personal Campaign Page{/ts}</td>
+ <td><a href="{crmURL p="civicrm/pcp/info" q="reset=1&id=`$pcp_id`"}">{$pcp}</a><br/>
+ <span class="description">{ts}Contribution was made through this personal campaign page.{/ts}</span>
+ </td>
+ </tr>
+ <tr>
+ <td class="label">{ts}Soft Credit To{/ts}</td>
+ <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>
+ </tr>
+ <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>
+ {if $pcp_roll_nickname}
+ <tr>
+ <td class="label">{ts}Honor Roll Name{/ts}</td>
+ <td>{$pcp_roll_nickname}</td>
+ </tr>
+ {/if}
+ {if $pcp_personal_note}
+ <tr>
+ <td class="label">{ts}Personal Note{/ts}</td>
+ <td>{$pcp_personal_note}</td>
+ </tr>
+ {/if}
+ </table>
+ </div>
+ </div>
{/if}
{include file="CRM/Custom/Page/CustomDataView.tpl"}
{if $billing_address}
-<fieldset><legend>{ts}Billing Address{/ts}</legend>
- <div class="form-item">
- {$billing_address|nl2br}
- </div>
-</fieldset>
+ <fieldset>
+ <legend>{ts}Billing Address{/ts}</legend>
+ <div class="form-item">
+ {$billing_address|nl2br}
+ </div>
+ </fieldset>
{/if}
<div class="crm-submit-buttons">
- {if call_user_func(array('CRM_Core_Permission','check'), 'edit contributions')}
- {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context"}
- {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
- {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&key=$searchKey"}
- {/if}
- <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>
+ {if call_user_func(array('CRM_Core_Permission','check'), 'edit contributions')}
+ {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context"}
+ {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
+ {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&key=$searchKey"}
{/if}
- {if call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviContribute')}
- {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context"}
- {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
- {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&key=$searchKey"}
- {/if}
- <a class="button" href="{crmURL p='civicrm/contact/view/contribution' q=$urlParams}"><span><div class="icon delete-icon"></div>{ts}Delete{/ts}</span></a>
+ <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>
+ {/if}
+ {if call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviContribute')}
+ {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context"}
+ {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
+ {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&key=$searchKey"}
{/if}
- {include file="CRM/common/formButtons.tpl" location="bottom"}
+ <a class="button" href="{crmURL p='civicrm/contact/view/contribution' q=$urlParams}"><span><div
+ class="icon delete-icon"></div>{ts}Delete{/ts}</span></a>
+ {/if}
+ {include file="CRM/common/formButtons.tpl" location="bottom"}
</div>
</div>