{* +--------------------------------------------------------------------+ | CiviCRM version 4.7 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2017 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | | CiviCRM is free software; you can copy, modify, and distribute it | | under the terms of the GNU Affero General Public License | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | | | CiviCRM is distributed in the hope that it will be useful, but | | WITHOUT ANY WARRANTY; without even the implied warranty of | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | See the GNU Affero General Public License for more details. | | | | You should have received a copy of the GNU Affero General Public | | License and the CiviCRM Licensing Exception along | | with this program; if not, contact CiviCRM LLC | | at info[AT]civicrm[DOT]org. If you have questions about the | | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://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}
{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 $recur}

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

{ts}Soft credits{/ts} {help id="id-soft_credit"}
{include file="CRM/Contribute/Page/ContributionSoft.tpl"} {/if}
{/if}