First commit
This commit is contained in:
commit
c6e2478c40
13918 changed files with 2303184 additions and 0 deletions
|
@ -0,0 +1,90 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{* CiviPledge DashBoard (launch page) *}
|
||||
|
||||
<h3>{ts}Pledge Summary{/ts}</h3>
|
||||
<table class="report">
|
||||
<tr class="columnheader-dark">
|
||||
<th> </th>
|
||||
<th scope="col" colspan="2" class="right" style="padding-right: 10px;">{$previousMonthYear}</th>
|
||||
<th scope="col" colspan="2" class="right" style="padding-right: 10px;">{$currentMonthYear}<br /><span class="extra">{ts}(current month){/ts}</span></th>
|
||||
<th scope="col" colspan="2" class="right" style="padding-right: 10px;">{$curYear}<br /><span class="extra">{ts}(current year){/ts}</span></th>
|
||||
<th scope="col" colspan="2" class="right" style="padding-right: 10px;">{ts}Cumulative{/ts}<br /><span class="extra">{ts}(since inception){/ts}</span></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td scope="row"><strong>{ts}Total Pledges{/ts}</strong></td>
|
||||
{* prior month *}
|
||||
<td class="right"><a href="{$previousToDate.Completed.purl}">{$previousToDate.Completed.pledge_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $previousToDate.Completed.pledge_count }<a href="{$previousToDate.Completed.purl}">{$previousToDate.Completed.pledge_amount}</a>{/if}</td>
|
||||
{* current month *}
|
||||
<td class="right"><a href="{$monthToDate.Completed.purl}">{$monthToDate.Completed.pledge_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $monthToDate.Completed.pledge_count }<a href="{$monthToDate.Completed.purl}">{$monthToDate.Completed.pledge_amount}</a>{/if}</td>
|
||||
{* current year *}
|
||||
<td class="right"><a href="{$yearToDate.Completed.purl}">{$yearToDate.Completed.pledge_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $yearToDate.Completed.pledge_count }<a href="{$yearToDate.Completed.purl}">{$yearToDate.Completed.pledge_amount}</a>{/if}</td>
|
||||
{* cumulative *}
|
||||
<td class="right"><a href="{$startToDate.Completed.purl}">{$startToDate.Completed.pledge_count}</a></td><td class="right">{if $startToDate.Completed.pledge_count }<a href="{$startToDate.Completed.purl}">{$startToDate.Completed.pledge_amount}</a>{/if}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td scope="row"><strong>{ts}Payments Received{/ts}</strong></td>
|
||||
{* prior month *}
|
||||
<td class="right"><a href="{$previousToDate.Completed.url}">{$previousToDate.Completed.received_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $previousToDate.Completed.received_count }<a href="{$previousToDate.Completed.url}">{$previousToDate.Completed.received_amount}</a>{/if}</td>
|
||||
{* current month *}
|
||||
<td class="right"><a href="{$monthToDate.Completed.url}">{$monthToDate.Completed.received_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $monthToDate.Completed.received_count}<a href="{$monthToDate.Completed.url}">{$monthToDate.Completed.received_amount}</a>{/if}</td>
|
||||
{* current year *}
|
||||
<td class="right"><a href="{$yearToDate.Completed.url}">{$yearToDate.Completed.received_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $yearToDate.Completed.received_count }<a href="{$yearToDate.Completed.url}">{$yearToDate.Completed.received_amount}</a>{/if}</td>
|
||||
{* cumulative *}
|
||||
<td class="right"><a href="{$startToDate.Completed.url}">{$startToDate.Completed.received_count}</a></td><td class="right">{if $startToDate.Completed.received_count }<a href="{$startToDate.Completed.url}">{$startToDate.Completed.received_amount}</a>{/if}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td scope="row"><strong>{ts}Balance Due{/ts}</strong></td>
|
||||
{* prior month *}
|
||||
<td class="right"><a href="{$previousToDate.Pending.url}">{$previousToDate.Pending.received_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $previousToDate.Pending.received_count }<a href="{$previousToDate.Pending.url}">{$previousToDate.Pending.received_amount}</a>{/if}</td>
|
||||
{* current month *}
|
||||
<td class="right"><a href="{$monthToDate.Pending.url}">{$monthToDate.Pending.received_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $monthToDate.Pending.received_count }<a href="{$monthToDate.Pending.url}">{$monthToDate.Pending.received_amount}</a>{/if}</td>
|
||||
{* current year *}
|
||||
<td class="right"><a href="{$yearToDate.Pending.url}">{$yearToDate.Pending.received_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $yearToDate.Pending.received_count }<a href="{$yearToDate.Pending.url}">{$yearToDate.Pending.received_amount}</a>{/if}</td>
|
||||
{* cumulative *}
|
||||
<td class="right"><a href="{$startToDate.Pending.url}">{$startToDate.Pending.received_count}</a></td><td class="right">{if $startToDate.Pending.received_count }<a href="{$startToDate.Pending.url}">{$startToDate.Pending.received_amount}</a>{/if}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td scope="row"><strong>{ts}Past Due{/ts}</strong></td>
|
||||
{* prior month *}
|
||||
<td class="right"><a href="{$previousToDate.Overdue.url}">{$previousToDate.Overdue.received_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $previousToDate.Overdue.received_count }<a href="{$previousToDate.Overdue.url}">{$previousToDate.Overdue.received_amount}</a>{/if}</td>
|
||||
{* current month *}
|
||||
<td class="right"><a href="{$monthToDate.Overdue.url}">{$monthToDate.Overdue.received_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $monthToDate.Overdue.received_count }<a href="{$monthToDate.Overdue.url}">{$monthToDate.Overdue.received_amount}</a>{/if}</td>
|
||||
{* current year *}
|
||||
<td class="right"><a href="{$yearToDate.Overdue.url}">{$yearToDate.Overdue.received_count}</a></td><td class="right" style="border-right: 5px double #999999;">{if $yearToDate.Overdue.received_count }<a href="{$yearToDate.Overdue.url}">{$yearToDate.Overdue.received_amount}</a>{/if}</td>
|
||||
{* cumulative *}
|
||||
<td class="right"><a href="{$startToDate.Overdue.url}">{$startToDate.Overdue.received_count}</a></td><td class="right">{if $startToDate.Overdue.received_count }<a href="{$startToDate.Overdue.url}">{$startToDate.Overdue.received_amount}</a>{/if}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="spacer"></div>
|
||||
|
||||
{if $pager->_totalItems}
|
||||
<h3>{ts}Recent Pledges{/ts}</h3>
|
||||
<div>
|
||||
{include file="CRM/Pledge/Form/Selector.tpl" context="dashboard"}
|
||||
</div>
|
||||
{/if}
|
|
@ -0,0 +1,42 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{htxt id="adjust-payment-amount-title"}
|
||||
{ts}Payment Amount{/ts}
|
||||
{/htxt}
|
||||
{htxt id="adjust-payment-amount"}
|
||||
{ts}If you enter an amount which is different than the current scheduled amount, choose one of these options:{/ts}
|
||||
<p>
|
||||
<strong>{ts}Adjust Pledge Payment Schedule{/ts}</strong><br />
|
||||
{ts}The next scheduled payment will be adjusted up or down to make up the difference.{/ts}<br />
|
||||
<em>{ts}Example: If you enter a payment of 60 when the scheduled amount is 50, the next scheduled payment is adjusted to 40.{/ts}</em>
|
||||
</p>
|
||||
<p>
|
||||
<strong>{ts}Adjust Total Pledge Amount{/ts}</strong><br />
|
||||
{ts}The total amount of the pledge will be adjusted up or down to make up the difference. The payment schedule ( amounts / dates for future pending pledge payments ) is not changed.{/ts}<br />
|
||||
<em>{ts}Example: If you enter a payment of 60 when the scheduled amount is 50, the total pledge amount will be increased by 10.{/ts}</em>
|
||||
</p>
|
||||
{/htxt}
|
||||
|
|
@ -0,0 +1,72 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 2 } {* update *}
|
||||
{include file="CRM/Pledge/Form/Payment.tpl"}
|
||||
{else}
|
||||
{if $context eq 'dashboard'}{assign var='context' value='pledgeDashboard'}{/if}
|
||||
<table class="nestedSelector">
|
||||
<tr class="columnheader">
|
||||
<th>{ts}Amount Due{/ts}</th>
|
||||
<th>{ts}Due Date{/ts}</th>
|
||||
<th>{ts}Amount Paid{/ts}</th>
|
||||
<th>{ts}Paid Date{/ts}</th>
|
||||
<th>{ts}Last Reminder{/ts}</th>
|
||||
<th>{ts}Reminders Sent{/ts}</th>
|
||||
<th colspan="2">{ts}Status{/ts}</th>
|
||||
</tr>
|
||||
|
||||
{foreach from=$rows item=row}
|
||||
<tr class="{cycle values="odd-row,even-row"} {if $row.status eq 'Overdue' } status-overdue{/if}">
|
||||
<td class="right">{$row.scheduled_amount|crmMoney:$row.currency}</td>
|
||||
<td>{$row.scheduled_date|truncate:10:''|crmDate}</td>
|
||||
<td class="right">{$row.total_amount|crmMoney:$row.currency}</td>
|
||||
<td>{$row.receive_date|truncate:10:''|crmDate}</td>
|
||||
<td>{$row.reminder_date|truncate:10:''|crmDate}</td>
|
||||
<td class="right">{if $row.reminder_count}{$row.reminder_count}{/if}</td>
|
||||
<td {if ! ($permission EQ 'edit' and ($row.status eq 'Pending' or $row.status eq 'Overdue' or $row.status eq 'Completed')) } colspan="2"{/if} >{$row.label}</td>
|
||||
{if $context neq user}
|
||||
{if $permission EQ 'edit' and ($row.status eq 'Pending' or $row.status eq 'Overdue' or $row.status eq 'Completed') }
|
||||
<td class="nowrap">
|
||||
{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}
|
||||
<a class="crm-hover-button action-item" href="{$viewContribURL}">{ts}View Payment{/ts}</a>
|
||||
{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}
|
||||
<a class="open-inline-noreturn crm-hover-button action-item" href="{$newContribURL}">{ts}Record Payment{/ts}</a>
|
||||
{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}
|
||||
<a class="open-inline-noreturn action-item crm-hover-button" href="{$newCreditURL}">{ts}Credit Card Payment{/ts}</a>
|
||||
{/if}
|
||||
{capture assign=editURL}{crmURL p="civicrm/pledge/payment" q="reset=1&action=update&cid=`$contactId`&context=`$context`&ppId=`$row.id`"}{/capture}
|
||||
<a class="crm-hover-button action-item" href="{$editURL}">{ts}Edit Scheduled Payment{/ts}</a>
|
||||
{/if}
|
||||
</td>
|
||||
{/if}
|
||||
{/if}
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{/if}
|
41
sites/all/modules/civicrm/templates/CRM/Pledge/Page/Tab.hlp
Normal file
41
sites/all/modules/civicrm/templates/CRM/Pledge/Page/Tab.hlp
Normal file
|
@ -0,0 +1,41 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{htxt id="id-payment-reminders-title"}
|
||||
{ts}Payment Reminders{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-payment-reminders"}
|
||||
<p>
|
||||
{ts}One or more payment reminders can be emailed to this contributor based on the values entered in this section. If a 'Self-service Payments Page' has been selected, the reminder will include a link for the contributor to make their payment online.{/ts}
|
||||
</p>
|
||||
<p>
|
||||
{ts}In order for reminders to be sent:{/ts}
|
||||
<ol>
|
||||
<li>{ts}Your site administrator must configure the scheduled job (Administer > System Settings > Scheduled Jobs) which updates pledge payment statuses and sends the reminders.{/ts}</li>
|
||||
<li>{ts}Your site administrator must also configure a "cron job" (scheduled server task) to run this script.{/ts}</li>
|
||||
<li>{ts}This contributor must have a valid email address (and must not have the "Do Not Email" flag checked).{/ts}</li>
|
||||
</ol>
|
||||
</p>
|
||||
{/htxt}
|
68
sites/all/modules/civicrm/templates/CRM/Pledge/Page/Tab.tpl
Normal file
68
sites/all/modules/civicrm/templates/CRM/Pledge/Page/Tab.tpl
Normal file
|
@ -0,0 +1,68 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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 |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
<div class="view-content">
|
||||
{if $action eq 1 or $action eq 2 or $action eq 8} {* add, update or view *}
|
||||
{include file="CRM/Pledge/Form/Pledge.tpl"}
|
||||
{elseif $action eq 4}
|
||||
{include file="CRM/Pledge/Form/PledgeView.tpl"}
|
||||
{else}
|
||||
<div class="help">
|
||||
{ts 1=$displayName}Pledges received from %1 since inception.{/ts}
|
||||
{if $permission EQ 'edit'}
|
||||
{capture assign=newContribURL}{crmURL p="civicrm/contact/view/pledge" q="reset=1&action=add&cid=`$contactId`&context=pledge"}{/capture}
|
||||
{capture assign=link}class="action-item" href="{$newContribURL}"{/capture}
|
||||
{ts 1=$link}Click <a %1>Add Pledge</a> to record a new pledge received from this contact.{/ts}
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{if $action eq 16 and $permission EQ 'edit'}
|
||||
<div class="action-link">
|
||||
<a accesskey="N" href="{$newContribURL}" class="button"><span><i class="crm-i fa-plus-circle"></i> {ts}Add Pledge{/ts}</a></span>
|
||||
<br/><br/>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
|
||||
{if $rows}
|
||||
<p> </p>
|
||||
{include file="CRM/Pledge/Form/Selector.tpl"}
|
||||
|
||||
{else}
|
||||
<div class="messages status no-popup">
|
||||
<div class="icon inform-icon"></div>
|
||||
{ts}No pledges have been recorded from this contact.{/ts}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $honor}
|
||||
<div class="solid-border-top">
|
||||
<br /><label>{ts 1=$displayName}Contributions made in honor of %1{/ts}</label>
|
||||
</div>
|
||||
{include file="CRM/Contribute/Page/ContributionHonor.tpl"}
|
||||
{/if}
|
||||
|
||||
{/if}
|
||||
</div>
|
|
@ -0,0 +1,101 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| 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'}
|
||||
<div class="view-content">
|
||||
{if $pledge_rows}
|
||||
{strip}
|
||||
<table class="selector">
|
||||
<tr class="columnheader">
|
||||
{foreach from=$pledge_columnHeaders item=header}
|
||||
<th>{$header.name}</th>
|
||||
{/foreach}
|
||||
</tr>
|
||||
{counter start=0 skip=1 print=false}
|
||||
{foreach from=$pledge_rows item=row}
|
||||
<tr id='rowid{$row.pledge_id}' class="{cycle values="odd-row,even-row"} {if $row.pledge_status_name eq 'Overdue' } disabled{/if} crm-pledge crm-pledge_{$row.pledge_id} ">
|
||||
<td class="crm-pledge-pledge_amount">{$row.pledge_amount|crmMoney:$row.pledge_currency}</td>
|
||||
<td class="crm-pledge-pledge_total_paid">{$row.pledge_total_paid|crmMoney:$row.pledge_currency}</td>
|
||||
<td class="crm-pledge-pledge_amount">{$row.pledge_amount-$row.pledge_total_paid|crmMoney:$row.pledge_currency}</td>
|
||||
<td class="crm-pledge-pledge_contribution_type">{$row.pledge_financial_type}</td>
|
||||
<td class="crm-pledge-pledge_create_date">{$row.pledge_create_date|truncate:10:''|crmDate}</td>
|
||||
<td class="crm-pledge-pledge_next_pay_date">{$row.pledge_next_pay_date|truncate:10:''|crmDate}</td>
|
||||
<td class="crm-pledge-pledge_next_pay_amount">{$row.pledge_next_pay_amount|crmMoney:$row.pledge_currency}</td>
|
||||
<td class="crm-pledge-pledge_status crm-pledge-pledge_status_{$row.pledge_status}">{$row.pledge_status}</td>
|
||||
<td>
|
||||
{if $row.pledge_contribution_page_id and ($row.pledge_status_name neq 'Completed') and ( $row.contact_id eq $loggedUserID ) }
|
||||
<a href="{crmURL p='civicrm/contribute/transact' q="reset=1&id=`$row.pledge_contribution_page_id`&pledgeId=`$row.pledge_id`"}">{ts}Make Payment{/ts}</a><br/>
|
||||
{/if}
|
||||
<a class="crm-expand-row" title="{ts}view payments{/ts}" href="{crmURL p='civicrm/pledge/payment' q="action=browse&context=`$context`&pledgeId=`$row.pledge_id`&cid=`$row.contact_id`"}">{ts}Payments{/ts}</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{/strip}
|
||||
{crmScript file='js/crm.expandRow.js'}
|
||||
{else}
|
||||
<div class="messages status no-popup">
|
||||
<div class="icon inform-icon"></div>
|
||||
{ts}There are no Pledges for your record.{/ts}
|
||||
</div>
|
||||
{/if}
|
||||
{*pledge row if*}
|
||||
|
||||
{*Display honor block*}
|
||||
{if $pledgeHonor && $pledgeHonorRows}
|
||||
{strip}
|
||||
<div class="help">
|
||||
<p>{ts}Pledges made in your honor.{/ts}</p>
|
||||
</div>
|
||||
<table class="selector">
|
||||
<tr class="columnheader">
|
||||
<th>{ts}Pledger{/ts}</th>
|
||||
<th>{ts}Amount{/ts}</th>
|
||||
<th>{ts}Type{/ts}</th>
|
||||
<th>{ts}Financial Type{/ts}</th>
|
||||
<th>{ts}Create date{/ts}</th>
|
||||
<th>{ts}Acknowledgment Sent{/ts}</th>
|
||||
<th>{ts}Acknowledgment Date{/ts}</th>
|
||||
<th>{ts}Status{/ts}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
{foreach from=$pledgeHonorRows item=row}
|
||||
<tr id='rowid{$row.honorId}' class="{cycle values="odd-row,even-row"}">
|
||||
<td class="crm-pledge-display_name"><a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$row.honorId`"}" id="view_contact">{$row.display_name}</a></td>
|
||||
<td class="crm-pledge-amount">{$row.amount|crmMoney:$row.pledge_currency}</td>
|
||||
<td class="crm-pledge-honor-type">{$row.honor_type}</td>
|
||||
<td class="crm-pledge-type">{$row.type}</td>
|
||||
<td class="crm-pledge-create_date">{$row.create_date|truncate:10:''|crmDate}</td>
|
||||
<td align="center">{if $row.acknowledge_date}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}</td>
|
||||
<td class="crm-pledge-acknowledge_date">{$row.acknowledge_date|truncate:10:''|crmDate}</td>
|
||||
<td class="crm-pledge-status">{$row.status}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{/strip}
|
||||
{/if}
|
||||
</div>
|
||||
{* main if close*}
|
||||
{/if}
|
Loading…
Add table
Add a link
Reference in a new issue