{* +--------------------------------------------------------------------+ | CiviCRM version 5 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2018 | +--------------------------------------------------------------------+ | 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 | +--------------------------------------------------------------------+ *} {* this template is used for adding/editing/deleting pledge *} {if $showAdditionalInfo and $formType } {include file="CRM/Contribute/Form/AdditionalInfo/$formType.tpl"} {else} {if !$email and $action neq 8 and $context neq 'standalone'}

{ts}You will not be able to send an acknowledgment for this pledge because there is no email address recorded for this contact. If you want a acknowledgment to be sent when this pledge is recorded, click Cancel and then click Edit from the Summary tab to add an email address before recording the pledge.{/ts}

{/if} {if $action EQ 2} {* Check if current Total Pledge Amount is different from original pledge amount. *} {math equation="x / y" x=$amount y=$installments format="%.2f" assign="currentInstallment"} {* Check if current Total Pledge Amount is different from original pledge amount. *} {if $currentInstallment NEQ $eachPaymentAmount} {assign var=originalPledgeAmount value=`$installments*$eachPaymentAmount`} {/if} {/if}
{include file="CRM/common/formButtons.tpl" location="top"}
{if $action eq 8}
  {ts}WARNING: Deleting this pledge will also delete any related pledge payments.{/ts} {ts}This action cannot be undone.{/ts}

{ts}Consider cancelling the pledge instead if you want to maintain an audit trail and avoid losing payment data. To set the pledge status to Cancelled and cancel any not-yet-paid pledge payments, first click Cancel on this form. Then click the more > link from the pledge listing, and select the Cancel action.{/ts}

{else} {if $context eq 'standalone'} {else} {/if} {if $email and $outBound_option != 2} {if $form.is_acknowledge } {/if} {elseif $context eq 'standalone' and $outBound_option != 2 } {/if} {* CRM-7362 --add campaign *} {include file="CRM/Campaign/Form/addCampaignToComponent.tpl" campaignTrClass="crm-pledge-form-block-campaign_id"}
{$form.contact_id.label} {$form.contact_id.html}
{ts}Pledge by{/ts} {$displayName}
{$form.amount.label} {$form.currency.html|crmAddClass:eight} {$form.amount.html|crmAddClass:eight} {if $originalPledgeAmount}
 {ts 1=$originalPledgeAmount|crmMoney:$currency} Pledge total has changed due to payment adjustments. Original pledge amount was %1.{/ts}
{/if}
{$form.installments.label} {$form.installments.html} {ts}installments of{/ts} {if $action eq 1 or $isPending} {$form.eachPaymentAmount.html|crmMoney:$currency} {elseif $action eq 2 and !$isPending} {$eachPaymentAmount|crmMoney:$currency} {/if}  {ts}every{/ts} {$form.frequency_interval.html} {$form.frequency_unit.html}
{$form.frequency_day.label} {$form.frequency_day.html} {ts}day of the period{/ts}
{ts}This applies to weekly, monthly and yearly payments.{/ts}
{$form.create_date.label} {$form.create_date.html}
{ts}Date when pledge was made by the contributor.{/ts}
{$form.start_date.label} {$form.start_date.html}
{ts}Date of first pledge payment.{/ts}
{$form.is_acknowledge.label} {$form.is_acknowledge.html}
{ts 1=$email}Automatically email an acknowledgment of this pledge to %1?{/ts}
{$form.acknowledge_date.label} {$form.acknowledge_date.html}
{ts}Date when an acknowledgment of the pledge was sent.{/ts}
{$form.financial_type_id.label} {$form.financial_type_id.html}
{ts}Sets the default financial type for payments against this pledge.{/ts}
{$form.contribution_page_id.label} {$form.contribution_page_id.html}
{ts}Select an Online Contribution page that the user can access to make self-service pledge payments. (Only Online Contribution pages configured to include the Pledge option are listed.){/ts}
{$status}
{ts}Pledges are "Pending" until the first payment is received. Once a payment is received, status is "In Progress" until all scheduled payments are completed. Overdue pledges are ones with payment(s) past due.{/ts}
{include file="CRM/Custom/Form/CustomData.tpl"}
{literal} {/literal}
{foreach from=$allPanes key=paneName item=paneValue}
{$paneName}
{/foreach}
{/if} {* not delete mode if*}
{include file="CRM/common/formButtons.tpl" location="bottom"}
{literal} {if $email and $outBound_option != 2} {include file="CRM/common/showHideByFieldValue.tpl" trigger_field_id ="is_acknowledge" trigger_value ="" target_element_id ="acknowledgeDate" target_element_type ="table-row" field_type ="radio" invert = 1 } {include file="CRM/common/showHideByFieldValue.tpl" trigger_field_id ="is_acknowledge" trigger_value ="" target_element_id ="fromEmail" target_element_type ="table-row" field_type ="radio" invert = 0 } {/if} {/if} {* closing of main custom data if *}