{* +--------------------------------------------------------------------+ | CiviCRM version 4.6 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2015 | +--------------------------------------------------------------------+ | 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 2 } {* update *} {include file="CRM/Pledge/Form/Payment.tpl"} {else} {if $context eq 'dashboard'}{assign var='context' value='pledgeDashboard'}{/if} {foreach from=$rows item=row} {if $context neq user} {if $permission EQ 'edit' and ($row.status eq 'Pending' or $row.status eq 'Overdue' or $row.status eq 'Completed') } {/if} {/if} {/foreach}
{ts}Amount Due{/ts} {ts}Due Date{/ts} {ts}Amount Paid{/ts} {ts}Paid Date{/ts} {ts}Last Reminder{/ts} {ts}Reminders Sent{/ts} {ts}Status{/ts}
{$row.scheduled_amount|crmMoney:$row.currency} {$row.scheduled_date|truncate:10:''|crmDate} {$row.total_amount|crmMoney:$row.currency} {$row.receive_date|truncate:10:''|crmDate} {$row.reminder_date|truncate:10:''|crmDate} {if $row.reminder_count}{$row.reminder_count}{/if} {$row.label} {if $row.status eq 'Completed'} {* Link to view contribution record for completed payment.*} {capture assign=viewContribURL}{crmURL p="civicrm/contact/view/contribution" q="reset=1&id=`$row.contribution_id`&cid=`$contactId`&action=view&context=`$context`"}{/capture} {ts}View Payment{/ts} {else} {* Links to record / submit a payment. *} {capture assign=newContribURL}{crmURL p="civicrm/contact/view/contribution" q="reset=1&action=add&cid=`$contactId`&context=`$context`&ppid=`$row.id`"}{/capture} {ts}Record Payment{/ts} {if $newCredit} {capture assign=newCreditURL}{crmURL p="civicrm/contact/view/contribution" q="reset=1&action=add&cid=`$contactId`&ppid=`$row.id`&context=`$context`&mode=live"}{/capture} {ts}Credit Card Payment{/ts} {/if} {capture assign=editURL}{crmURL p="civicrm/pledge/payment" q="reset=1&action=update&cid=`$contactId`&context=`$context`&ppId=`$row.id`"}{/capture} {ts}Edit Scheduled Payment{/ts} {/if}
{/if}