{* +--------------------------------------------------------------------+ | CiviCRM version 4.5 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2014 | +--------------------------------------------------------------------+ | 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 contributions and pledge payments *} {if $cdType} {include file="CRM/Custom/Form/CustomData.tpl"} {elseif $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}
{if $contributionMode == 'test' } {assign var=contribMode value="TEST"} {elseif $contributionMode == 'live'} {assign var=contribMode value="LIVE"} {/if} {if !$email and $action neq 8 and $context neq 'standalone'}
 {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 $contributionMode}
{if $contactId} {ts 1=$displayName 2=$contribMode}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=$contribMode}Use this form to submit a new contribution. A %2 transaction will be submitted using the selected payment processor.{/ts} {/if}
{/if} {if $action eq 8}
{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}
{include file="CRM/common/formButtons.tpl"} {if $newCredit AND $action EQ 1 AND $contributionMode EQ null} {if $contactId} {capture assign=ccModeLink}{crmURL p='civicrm/contact/view/contribution' q="reset=1&action=add&cid=`$contactId`&context=`$context`&mode=live"}{/capture} {else} {capture assign=ccModeLink}{crmURL p='civicrm/contact/view/contribution' q="reset=1&action=add&context=standalone&mode=live"}{/capture} {/if}  » {ts}submit credit card contribution{/ts} {/if}
{if $isOnline}{assign var=valueStyle value=" class='view-value'"}{else}{assign var=valueStyle value=""}{/if} {if $context neq 'standalone'} {else} {/if} {if $contributionMode} {/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 && !$ppID} {/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} {if $email and $outBound_option != 2} {elseif $context eq 'standalone' and $outBound_option != 2 } {/if} {/if} {if !$contributionMode} {* Cancellation / Refunded fields are hidden unless contribution status is set to Cancelled or Refunded*} {/if}
{ts}Contributor{/ts}{$displayName}
{$form.contact_id.label} {$form.contact_id.html}
{$form.payment_processor_id.label} * {$form.payment_processor_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 $hasPriceSets} {ts}OR{/ts} {$form.price_set_id.html}
{/if} {if $ppID}{ts}adjust payment amount{/ts}{help id="adjust-payment-amount"}{/if}
{ts}Total amount of this contribution.{/ts}{if $hasPriceSets} {ts}Alternatively, you can use a price set.{/ts}{/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}{include file="CRM/common/jcalendar.tpl" elementName=receive_date}{else}{$receive_date|crmDate}{/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.is_email_receipt.label} {$form.is_email_receipt.html}  {ts 1=$email}Automatically email a receipt for this contribution to %1?{/ts}
{$form.receipt_date.label} {include file="CRM/common/jcalendar.tpl" elementName=receipt_date}
{ts}Date that a receipt was sent to the contributor.{/ts}
{$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}
 
{ts}Cancellation or Refund Information{/ts}
{$form.cancel_date.label} {if $hideCalendar neq true} {include file="CRM/common/jcalendar.tpl" elementName=cancel_date} {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}
{ts}Soft Credit{/ts} {help id="id-soft_credit"}
{include file="CRM/Contribute/Form/SoftCredit.tpl"}
{if $siteHasPCPs}
{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}
{/if} {if !$contributionMode}
{ts}Payment Details{/ts}
{if $showCheckNumber || !$isOnline} {/if} {if $email and $outBound_option != 2} {elseif $context eq 'standalone' and $outBound_option != 2 } {/if}
{$form.receive_date.label} {include file="CRM/common/jcalendar.tpl" elementName=receive_date}
{ts}The date this contribution was received.{/ts}
{$form.payment_instrument_id.label} {$form.payment_instrument_id.html} {help id="payment_instrument_id"}
{$form.check_number.label} {$form.check_number.html}
{$form.trxn_id.label} {$form.trxn_id.html} {help id="id-trans_id"}
{$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} {include file="CRM/common/jcalendar.tpl" elementName=receipt_date}
{ts}Date that a receipt was sent to the contributor.{/ts}
{/if}
{*include custom data js file*} {include file="CRM/common/customData.tpl"} {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} {/literal} {if !$contributionMode} {include file="CRM/common/showHideByFieldValue.tpl" trigger_field_id ="payment_instrument_id" trigger_value = '4' target_element_id ="checkNumber" target_element_type ="table-row" field_type ="select" invert = 0 } {/if} {/if} {* not delete mode if*} {/if} {* closing of main custom data if *} {literal} {/literal}