{* +--------------------------------------------------------------------+ | CiviCRM version 4.6 | +--------------------------------------------------------------------+ | 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 | +--------------------------------------------------------------------+ *} {assign var=isRecordPayment value=1 } {if $paid} {* We retrieve this tpl when event is selected - keep it empty if event is not paid *} {if $priceSet} {if $discount and $hasPayment} {elseif $form.discount_id.label} {/if} {if $action eq 2 and $hasPayment} {* Updating *} {if $lineItem} {else} {/if} {else} {* New participant *} {if $priceSet.fields}
{/if} { if $accessContribution and ! $participantMode and ($action neq 2 or !$rows.0.contribution_id or $onlinePendingContributionId) and $isRecordPayment and ! $registeredByParticipantId } {* Record contribution field only present if we are NOT in submit credit card mode (! participantMode). *} {include file="CRM/common/showHideByFieldValue.tpl" trigger_field_id ="record_contribution" trigger_value ="" target_element_id ="payment_information" target_element_type ="table-row" field_type ="radio" invert = 0 } {/if}
  {ts}Discount Set{/ts}{$discount}
  {$form.discount_id.label}{$form.discount_id.html}
{ts}Selections{/ts} {include file="CRM/Price/Page/LineItem.tpl" context="Event"}
{ts}Change Selections{/ts}
{ts}Event Level{/ts} {$fee_level} {if $fee_amount}- {$fee_amount|crmMoney:$fee_currency}{/if}
{$form.amount.label} {include file="CRM/Price/Form/PriceSet.tpl" extends="Event"} {else} {assign var=isRecordPayment value=0 }
{ts}No active price fields found for this event!{/ts}
{/if}
{/if}
{$form.record_contribution.label} {$form.record_contribution.html}
{ts}Check this box to enter payment information. You will also be able to generate a customized receipt.{/ts}
{ts}Payment Information{/ts} {if $showTransactionId } {/if}
{$form.financial_type_id.label} * {$form.financial_type_id.html}
{ts}Select the appropriate financial type for this payment.{/ts}
{$form.total_amount.label}{$form.total_amount.html|crmMoney:$currency}
{$form.receive_date.label} {include file="CRM/common/jcalendar.tpl" elementName=receive_date}
{$form.payment_instrument_id.label} *{$form.payment_instrument_id.html} {help id="payment_instrument_id" file="CRM/Contribute/Page/Tab.hlp"}
{$form.check_number.label}{$form.check_number.html|crmAddClass:six}
{$form.trxn_id.label}{$form.trxn_id.html}
{$form.contribution_status_id.label}{$form.contribution_status_id.html}
{/if} {* credit card block when it is live or test mode*} {if $participantMode and $paid}
{include file='CRM/Core/BillingBlock.tpl'} {/if} {if ($email OR $batchEmail) and $outBound_option != 2}
{if $paid}{ts}Registration Confirmation and Receipt{/ts}{else}{ts}Registration Confirmation{/ts}{/if} {else} {ts 1=$email}Automatically email a confirmation to %1?{/ts} {/if}
{if $paid}{ts}Send Confirmation and Receipt{/ts}{else}{ts}Send Confirmation{/ts}{/if} {$form.send_receipt.html}
{if $paid} {ts 1=$email}Automatically email a confirmation and receipt to %1?{/ts}
{$form.from_email_address.label} {$form.from_email_address.html} {help id ="id-from_email" file="CRM/Contact/Form/Task/Email.hlp"}
{$form.receipt_text.label} {ts}Enter a message you want included at the beginning of the confirmation email. EXAMPLE: 'Thanks for registering for this event.'{/ts}
{$form.receipt_text.html|crmAddClass:huge}
{elseif $context eq 'standalone' and $outBound_option != 2 } {/if} {if ($email and $outBound_option != 2) OR $context eq 'standalone' } {* Send receipt field only present if contact has a valid email address. *} {include file="CRM/common/showHideByFieldValue.tpl" trigger_field_id ="send_receipt" trigger_value ="" target_element_id ="notice" target_element_type ="table-row" field_type ="radio" invert = 0 } {include file="CRM/common/showHideByFieldValue.tpl" trigger_field_id ="send_receipt" trigger_value ="" target_element_id ="from-email" target_element_type ="table-row" field_type ="radio" invert = 0 } {/if} {if $paid and ($action eq 1 or ( $action eq 2 and !$hasPayment) ) and !$participantMode} {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 $context eq 'standalone' and $outBound_option != 2 } {/if} {if $onlinePendingContributionId} {/if} {if $showFeeBlock && $feeBlockPaid && ! $priceSet && $action neq 2} {/if} {* ADD mode if *}