{* +--------------------------------------------------------------------+ | 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 | +--------------------------------------------------------------------+ *} {* this template is used for adding/editing/deleting contributions and pledge payments *} {if $priceSetId} {include file="CRM/Price/Form/PriceSet.tpl" context="standalone" extends="Contribution"} {elseif $showAdditionalInfo and $formType } {include file="CRM/Contribute/Form/AdditionalInfo/$formType.tpl"} {else} {include file="CRM/Contribute/Form/AdditionalInfo/Payment.tpl"} {if $contributionMode}
{if $contactId && $payNow} {ts 1=$displayName 2=$contributionMode|upper}Use this form to edit a contribution on behalf of %1. A %2 transaction will be submitted using the selected payment processor.{/ts} {elseif $contactId} {ts 1=$displayName 2=$contributionMode|upper}Use this form to submit a new contribution on behalf of %1. A %2 transaction will be submitted using the selected payment processor.{/ts} {else} {ts 1=$displayName 2=$contributionMode|upper}Use this form to submit a new contribution. A %2 transaction will be submitted using the selected payment processor.{/ts} {/if}
{/if}
{if !$email and $action neq 8 and $context neq 'standalone'}
{icon icon="fa-info-circle"}{/icon}{ts}You will not be able to send an automatic email receipt for this contribution because there is no email address recorded for this contact. If you want a receipt to be sent when this contribution is recorded, click Cancel and then click Edit from the Summary tab to add an email address before recording the contribution.{/ts}
{/if} {if $action eq 8}
{icon icon="fa-info-circle"}{/icon} {ts}WARNING: Deleting this contribution will result in the loss of the associated financial transactions (if any).{/ts} {ts}Do you want to continue?{/ts}
{else} {if $newCredit AND $action EQ 1 AND $contributionMode EQ null} {/if}
{include file="CRM/common/formButtons.tpl"}
{if $isOnline}{assign var=valueStyle value=" class='view-value'"}{else}{assign var=valueStyle value=""}{/if} {$form.financial_type_id.html}  {if $is_test} {ts}(test){/ts} {/if} {help id="id-financial_type"} {if $action eq 2 and $lineItem and !$defaultContribution} {else} {if $buildRecurBlock && !$payNow} {/if} {/if} {if $contributionMode && $processorSupportsFutureStartDate} {/if} {* CRM-7362 --add campaign to contributions *} {include file="CRM/Campaign/Form/addCampaignToComponent.tpl" campaignTrClass="crm-contribution-form-block-campaign_id"} {if !$contributionMode || $payNow} {/if} {if !$contributionMode} {* Cancellation / Refunded fields are hidden unless contribution status is set to Cancelled or Refunded*} {/if} {if $form.revenue_recognition_date && !$payNow} {/if} {if $email and $outBound_option != 2} {elseif $context eq 'standalone' and $outBound_option != 2 } {/if} {if $form.payment_processor_id} {/if}
{$form.contact_id.label} {$form.contact_id.html}
{$form.financial_type_id.label}
{ts}Contribution Amount{/ts} {include file="CRM/Price/Page/LineItem.tpl" context="Contribution"}
{$form.total_amount.label} {$form.currency.html|crmAddClass:eight} {$form.total_amount.html|crmAddClass:eight} {if $freezeFinancialType} {help id="id-total_amount"} {/if} {if !$payNow} {if $hasPriceSets} {ts}OR{/ts} {$form.price_set_id.html}
{/if} {if $ppID}{ts}adjust payment amount{/ts}{help id="adjust-payment-amount"}{/if}
{if $hasPriceSets}{ts}Alternatively, you can use a price set.{/ts}{/if}
{/if}
{$form.is_recur.html} {ts}every{/ts}  {$form.frequency_interval.html}  {$form.frequency_unit.html}  {ts}for{/ts}  {$form.installments.html}  {$form.installments.label}
{ts}Your recurring contribution will be processed automatically for the number of installments you specify. You can leave the number of installments blank if you want to make an open-ended commitment. In either case, you can choose to cancel at any time. You will receive an email receipt for each recurring contribution. The receipts will include a link you can use if you decide to modify or cancel your future contributions.{/ts}
{$form.option_type.html}
{ts}Start Date{/ts} {if $hideCalender neq true}{$form.receive_date.html}{/if}
{ts}You can set a start date for recurring contributions and the first payment will be on that date. For a single post-dated contribution you must select recurring and choose one installment{/ts}
{$form.source.label} {$form.source.html|crmAddClass:huge} {help id="id-contrib_source"}
{$form.contribution_status_id.label} {$form.contribution_status_id.html} {if $contribution_status_id eq 2}{if $is_pay_later }: {ts}Pay Later{/ts} {else}: {ts}Incomplete Transaction{/ts}{/if}{/if} {if !$isUsePaymentBlock && $contactId && $contribID && $contributionMode EQ null && $contribution_status_id eq 2} {capture assign=payNowLink}{crmURL p='civicrm/contact/view/contribution' q="reset=1&action=update&id=`$contribID`&cid=`$contactId`&context=`$context`&mode=live"}{/capture} {ts}Pay with Credit Card{/ts} {/if}
 
{ts}Cancellation or Refund Information{/ts}
{$form.cancel_date.label} {if $hideCalendar neq true} {$form.cancel_date.html} {else} {$form.cancel_date.value|crmDate} {/if}
  {ts}Enter the cancellation or refunded date, or you can skip this field and the cancellation date or refunded date will be automatically set to TODAY.{/ts}
{$form.cancel_reason.label} {$form.cancel_reason.html}
{$form.refund_trxn_id.label} {$form.refund_trxn_id.html}
{$form.receive_date.label} {$form.receive_date.html}
{ts}The date this contribution was received.{/ts}
{$form.revenue_recognition_date.label} {$form.revenue_recognition_date.html}
{$form.is_email_receipt.label} {$form.is_email_receipt.html}  {ts 1=$email}Automatically email a receipt for this payment to %1?{/ts}
{$form.receipt_date.label} {$form.receipt_date.html}
{ts}Date that a receipt was sent to the contributor.{/ts}
{$form.payment_processor_id.label} * {$form.payment_processor_id.html}
{if !$contributionMode}
{ts}Payment Details{/ts} {if $isUsePaymentBlock} {include file="CRM/Contribute/Form/PaymentInfoBlock.tpl"} {else}
{$form.payment_instrument_id.label} {$form.payment_instrument_id.html} {help id="payment_instrument_id"}
{$form.trxn_id.label} {$form.trxn_id.html} {help id="id-trans_id"}
{/if}
{/if} {if !$isUsePaymentBlock} {include file='CRM/Core/BillingBlockWrapper.tpl'} {/if} {if !$payNow}
{ts}Soft Credit{/ts} {help id="id-soft_credit"}
{include file="CRM/Contribute/Form/SoftCredit.tpl"}
{/if} {if $siteHasPCPs && !$payNow}
{ts}Personal Campaign Page{/ts} {help id="id-pcp"}
{$form.pcp_made_through_id.label} {$form.pcp_made_through_id.html}  
{ts}Search for the Personal Campaign Page by the fund-raiser's last name or email address.{/ts}
{$form.pcp_display_in_roll.label} {$form.pcp_display_in_roll.html}
{$form.pcp_roll_nickname.label} {$form.pcp_roll_nickname.html|crmAddClass:big}
{ts}Name or nickname contributor wants to be displayed in the Honor Roll. Enter "Anonymous" for anonymous contributions.{/ts}
{$form.pcp_personal_note.label} {$form.pcp_personal_note.html}
{ts}Personal message submitted by contributor for display in the Honor Roll.{/ts}
{include file="CRM/Contribute/Form/PCP.js.tpl"} {/if} {if !$payNow} {include file="CRM/common/customDataBlock.tpl"} {/if} {literal}
{* Additional Detail / Honoree Information / Premium Information *} {foreach from=$allPanes key=paneName item=paneValue}
{$paneName}
{/foreach}
{/if}
{include file="CRM/common/formButtons.tpl" location="bottom"}
{literal} {/literal} {if $action neq 8} {literal} {/if} {* not delete mode if*} {/if} {* closing of main custom data if *} {literal} {/literal}