{* +--------------------------------------------------------------------+ | 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 | +--------------------------------------------------------------------+ *} {crmRegion name="crm-pledge-userdashboard-pre"} {/crmRegion} {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} {if !$userChecksum} {/if} {/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} {crmRegion name="crm-pledge-userdashboard-post"} {/crmRegion}