{* +--------------------------------------------------------------------+ | 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 $context eq 'user'}
{if $pledge_rows} {strip} {foreach from=$pledge_columnHeaders item=header} {/foreach} {counter start=0 skip=1 print=false} {foreach from=$pledge_rows item=row} {/foreach}
{$header.name}
{$row.pledge_amount|crmMoney:$row.pledge_currency} {$row.pledge_total_paid|crmMoney:$row.pledge_currency} {$row.pledge_amount-$row.pledge_total_paid|crmMoney:$row.pledge_currency} {$row.pledge_financial_type} {$row.pledge_create_date|truncate:10:''|crmDate} {$row.pledge_next_pay_date|truncate:10:''|crmDate} {$row.pledge_next_pay_amount|crmMoney:$row.pledge_currency} {$row.pledge_status} {if $row.pledge_contribution_page_id and ($row.pledge_status_name neq 'Completed') and ( $row.contact_id eq $loggedUserID ) } {ts}Make Payment{/ts}
{/if} {ts}Payments{/ts}
{/strip} {crmScript file='js/crm.expandRow.js'} {else}
{ts}There are no Pledges for your record.{/ts}
{/if} {*pledge row if*} {*Display honor block*} {if $pledgeHonor && $pledgeHonorRows} {strip}

{ts}Pledges made in your honor.{/ts}

{foreach from=$pledgeHonorRows item=row} {/foreach}
{ts}Pledger{/ts} {ts}Amount{/ts} {ts}Type{/ts} {ts}Financial Type{/ts} {ts}Create date{/ts} {ts}Acknowledgment Sent{/ts} {ts}Acknowledgment Date{/ts} {ts}Status{/ts}
{$row.display_name} {$row.amount|crmMoney:$row.pledge_currency} {$row.honor_type} {$row.type} {$row.create_date|truncate:10:''|crmDate} {if $row.acknowledge_date}{ts}Yes{/ts}{else}{ts}No{/ts}{/if} {$row.acknowledge_date|truncate:10:''|crmDate} {$row.status}
{/strip} {/if}
{* main if close*} {/if}