{* +--------------------------------------------------------------------+ | CiviCRM version 5 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2019 | +--------------------------------------------------------------------+ | 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 | +--------------------------------------------------------------------+ *} {crmRegion name="crm-contribute-userdashboard-pre"} {/crmRegion}
{if $contribute_rows} {strip} {if $invoicing && $invoices} {/if} {if $invoicing && $defaultInvoicePage} {/if} {foreach from=$contribute_rows item=row} {if $invoicing && $invoices} {/if} {if $defaultInvoicePage && $row.contribution_status_name == 'Pending' } {/if} {/foreach}
{ts}Total Amount{/ts} {ts}Financial Type{/ts} {ts}Received date{/ts} {ts}Receipt Sent{/ts} {ts}Status{/ts}
{$row.total_amount|crmMoney:$row.currency} {if $row.amount_level } - {$row.amount_level} {/if} {if $row.contribution_recur_id}
{ts}(Recurring Contribution){/ts} {/if}
{$row.financial_type} {$row.receive_date|truncate:10:''|crmDate} {$row.receipt_date|truncate:10:''|crmDate} {$row.contribution_status} {assign var='id' value=$row.contribution_id} {assign var='contact_id' value=$row.contact_id} {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id"} {if call_user_func(array('CRM_Core_Permission','check'), 'view my invoices') OR call_user_func(array('CRM_Core_Permission','check'), 'access CiviContribute')} {if $row.contribution_status_name != 'Refunded' && $row.contribution_status_name != 'Cancelled' } {ts}Print Invoice{/ts} {else} {ts}Print Invoice and Credit Note{/ts} {/if} {/if} {assign var='checksum_url' value=""} {if $userChecksum} {assign var='checksum_url' value="&cid=$contactId&cs=$userChecksum"} {/if} {assign var='id' value=$row.contribution_id} {capture assign=payNowLink}{crmURL p='civicrm/contribute/transact' q="reset=1&id=`$defaultInvoicePage`&ccid=`$id`$checksum_url"}{/capture} {ts}Pay Now{/ts}
{/strip} {if $contributionSummary.total.count gt 12} {ts}Contact us for information about contributions prior to those listed above.{/ts} {/if} {else}
{ts}There are no contributions on record for you.{/ts}
{/if} {if $honor} {if $honorRows} {strip}
{ts}Contributions made in your honor{/ts}:
{foreach from=$honorRows item=row} {/foreach}
{ts}Contributor{/ts} {ts}Amount{/ts} {ts}Type{/ts} {ts}Financial Type{/ts} {ts}Received date{/ts} {ts}Receipt Sent{/ts} {ts}Status{/ts}
{$row.display_name} {$row.amount} {$row.honor_type} {$row.type} {$row.receive_date|truncate:10:''|crmDate} {$row.receipt_date|truncate:10:''|crmDate} {$row.contribution_status}
{/strip} {/if} {/if} {if $recur} {if $recurRows} {strip}
{foreach from=$recurRows item=row key=id} {/foreach}
{ts}Terms:{/ts} {ts}Status{/ts} {ts}Installments{/ts} {ts}Created{/ts}
every {$recurRows.$id.frequency_interval} {$recurRows.$id.frequency_unit} for {$recurRows.$id.installments} installments {$recurRows.$id.recur_status} {if $recurRows.$id.completed}{$recurRows.$id.completed} /{$recurRows.$id.installments} {else}0/{$recurRows.$id.installments} {/if} {$recurRows.$id.create_date|crmDate} {$recurRows.$id.action|replace:'xx':$recurRows.id}
{/strip} {/if} {/if}
{crmRegion name="crm-contribute-userdashboard-post"} {/crmRegion}