| 1 | {* |
| 2 | +--------------------------------------------------------------------+ |
| 3 | | CiviCRM version 4.7 | |
| 4 | +--------------------------------------------------------------------+ |
| 5 | | Copyright CiviCRM LLC (c) 2004-2015 | |
| 6 | +--------------------------------------------------------------------+ |
| 7 | | This file is a part of CiviCRM. | |
| 8 | | | |
| 9 | | CiviCRM is free software; you can copy, modify, and distribute it | |
| 10 | | under the terms of the GNU Affero General Public License | |
| 11 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | |
| 12 | | | |
| 13 | | CiviCRM is distributed in the hope that it will be useful, but | |
| 14 | | WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 15 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
| 16 | | See the GNU Affero General Public License for more details. | |
| 17 | | | |
| 18 | | You should have received a copy of the GNU Affero General Public | |
| 19 | | License and the CiviCRM Licensing Exception along | |
| 20 | | with this program; if not, contact CiviCRM LLC | |
| 21 | | at info[AT]civicrm[DOT]org. If you have questions about the | |
| 22 | | GNU Affero General Public License or the licensing of CiviCRM, | |
| 23 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | |
| 24 | +--------------------------------------------------------------------+ |
| 25 | *} |
| 26 | {math equation="x / y" x=$amount y=$installments format="%.2f" assign="currentInstallment"} |
| 27 | {* Check if current Total Pledge Amount is different from original pledge amount. *} |
| 28 | {if $currentInstallment NEQ $original_installment_amount} |
| 29 | {assign var=originalPledgeAmount value=`$installments*$original_installment_amount`} |
| 30 | {/if} |
| 31 | |
| 32 | <div class="crm-block crm-content-block crm-pledge-view-block"> |
| 33 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div> |
| 34 | <table class="crm-info-panel"> |
| 35 | <tr class="crm-pledge-form-block-displayName"><td class="label">{ts}Pledge By{/ts}</td><td class="bold"><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=$contactId"}">{$displayName}</a></td></tr> |
| 36 | <tr class="crm-pledge-form-block-amount"> |
| 37 | <td class="label">{ts}Total Pledge Amount{/ts}</td> |
| 38 | <td><span class="bold">{$amount|crmMoney:$currency}</span> |
| 39 | {if $originalPledgeAmount}<div class="messages status no-popup"><div class="icon inform-icon"></div>{ts 1=$originalPledgeAmount|crmMoney:$currency} Pledge total has changed due to payment adjustments. Original pledge amount was %1.{/ts}</div>{/if} |
| 40 | </td> |
| 41 | </tr> |
| 42 | <tr class="crm-pledge-form-block-installments"><td class="label">{ts}To be paid in{/ts}</td><td>{$installments} {ts}installments of{/ts} {$original_installment_amount|crmMoney:$currency} {ts}every{/ts} {$frequency_interval} {$frequencyUnit}</td></tr> |
| 43 | <tr><td class="label">{ts}Payments are due on the{/ts}</td><td>{$frequency_day} day of the period</td></tr> |
| 44 | |
| 45 | {if $start_date} |
| 46 | <tr class="crm-pledge-form-block-create_date"><td class="label">{ts}Pledge Made{/ts}</td><td>{$create_date|truncate:10:''|crmDate}</td></tr> |
| 47 | <tr class="crm-pledge-form-block-start_date"><td class="label">{ts}Payment Start{/ts}</td><td>{$start_date|truncate:10:''|crmDate}</td></tr> |
| 48 | {/if} |
| 49 | {if $end_date} |
| 50 | <tr class="crm-pledge-form-block-end_date"><td class="label">{ts}End Date{/ts}</td><td>{$end_date|truncate:10:''|crmDate}</td></tr> |
| 51 | {/if} |
| 52 | {if $cancel_date} |
| 53 | <tr class="crm-pledge-form-block-cancel_date"><td class="label">{ts}Cancelled Date{/ts}</td><td>{$cancel_date|truncate:10:''|crmDate}</td></tr> |
| 54 | {/if} |
| 55 | <tr class="crm-pledge-form-block-contribution_type crm-pledge-form-block-financial_type"><td class="label">{ts}Financial Type{/ts}</td><td>{$financial_type} |
| 56 | {if $is_test} |
| 57 | {ts}(test){/ts} |
| 58 | {/if} |
| 59 | </td></tr> |
| 60 | |
| 61 | {if $campaign} |
| 62 | <tr class="crm-pledge-form-block-campaign"> |
| 63 | <td class="label">{ts}Campaign{/ts}</td> |
| 64 | <td>{$campaign}</td> |
| 65 | </tr> |
| 66 | {/if} |
| 67 | |
| 68 | {if $acknowledge_date} |
| 69 | <tr class="crm-pledge-form-block-acknowledge_date"><td class="label">{ts}Received{/ts}</td><td>{$acknowledge_date|truncate:10:''|crmDate} </td></tr> |
| 70 | {/if} |
| 71 | {if $contribution_page} |
| 72 | <tr class="crm-pledge-form-block-contribution_page"><td class="label">{ts}Self-service Payments Page{/ts}</td><td>{$contribution_page}</td></tr> |
| 73 | {/if} |
| 74 | <tr class="crm-pledge-form-block-pledge_status"><td class="label">{ts}Pledge Status{/ts}</td><td{if $status_id eq 3} class="font-red bold"{/if}>{$pledge_status} </td></tr> |
| 75 | {if $honor_contact_id} |
| 76 | <tr class="crm-pledge-form-block-honor_type"><td class="label">{$honor_type}</td><td>{$honor_display}</td></tr> |
| 77 | {/if} |
| 78 | <tr class="crm-pledge-form-block-initial_reminder_day"><td class="label">{ts}Initial Reminder Day{/ts}</td><td>{$initial_reminder_day} days prior to schedule date </td></tr> |
| 79 | <tr class="crm-pledge-form-block-max_reminders"><td class="label">{ts}Maximum Reminders Send{/ts}</td><td>{$max_reminders} </td></tr> |
| 80 | <tr class="crm-pledge-form-block-additional_reminder_day"><td class="label">{ts}Send additional reminders{/ts}</td><td>{$additional_reminder_day} days after the last one sent</td></tr> |
| 81 | |
| 82 | {include file="CRM/Custom/Page/CustomDataView.tpl"} |
| 83 | </table> |
| 84 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div> |
| 85 | </div> |
| 86 | |