{* +--------------------------------------------------------------------+ | Copyright CiviCRM LLC. All rights reserved. | | | | This work is published under the GNU AGPLv3 license with some | | permitted exceptions and without any warranty. For full license | | and copyright information, see https://civicrm.org/licensing | +--------------------------------------------------------------------+ *} {if $action eq 1 or $action eq 2 or $action eq 8} {* add, update or view *} {include file="CRM/Contribute/Form/Contribution.tpl"} {elseif $action eq 4} {include file="CRM/Contribute/Form/ContributionView.tpl"} {else}
{include file="CRM/common/TabSelected.tpl" defaultTab="contributions" tabContainer="#secondaryTabContainer"}
{if $permission EQ 'edit'} {capture assign=newContribURL}{crmURL p="civicrm/contact/view/contribution" q="reset=1&action=add&cid=`$contactId`&context=contribution"}{/capture} {capture assign=link}class="action-item" href="{$newContribURL}"{/capture} {ts 1=$link}Click Record Contribution to record a new contribution received from this contact.{/ts} {if $newCredit} {capture assign=newCreditURL}{crmURL p="civicrm/contact/view/contribution" q="reset=1&action=add&cid=`$contactId`&context=contribution&mode=live"}{/capture} {capture assign=link}class="action-item" href="{$newCreditURL}"{/capture} {ts 1=$link}Click Submit Credit Card Contribution to process a new contribution on behalf of the contributor using their credit card.{/ts} {/if} {else} {ts 1=$displayName}Contributions received from %1 since inception.{/ts} {/if}
{if $action eq 16 and $permission EQ 'edit'}
{/if} {if $rows} {include file="CRM/Contribute/Page/ContributionTotals.tpl" mode="view"}
{include file="CRM/Contribute/Form/Selector.tpl"} {else}
{ts}No contributions have been recorded from this contact.{/ts}
{/if} {if $softCredit}

{ts}Soft credits{/ts} {help id="id-soft_credit"}

{include file="CRM/Contribute/Page/ContributionSoft.tpl"}
{/if}
{if $recur}

{ts}Active Recurring Contributions{/ts}

{include file="CRM/Contribute/Page/ContributionRecur.tpl" recurRows=$activeRecurRows}

{ts}Inactive Recurring Contributions{/ts}

{include file="CRM/Contribute/Page/ContributionRecur.tpl" recurRows=$inactiveRecurRows}
{/if}
{/if}