{*
+--------------------------------------------------------------------+
| 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 event *}
{capture assign="adminPriceSets"}{crmURL p='civicrm/admin/price' q="reset=1"}{/capture}
{if !$paymentProcessor}
{capture assign=ppUrl}{crmURL p='civicrm/admin/paymentProcessor' q="reset=1"}{/capture}
{ts 1=$ppUrl}No Payment Processor has been configured / enabled for your site. If this is a
paid event AND you want users to be able to
register and pay online, you will need to
configure a Payment Processor first. Then return to this screen and assign the processor to this event.{/ts} {docURL page="user/contributions/payment-processors"}
{ts}NOTE: Alternatively, you can enable the Pay Later option below without setting up a payment processor. All users will then be asked to submit payment offline (e.g. mail in a check, call in a credit card, etc.).{/ts}
{/if}
{include file="CRM/common/deferredFinancialType.tpl" context='Event'}
{include file="CRM/common/showHide.tpl"}
{include file="CRM/common/showHideByFieldValue.tpl"
trigger_field_id ="is_pay_later"
trigger_value =""
target_element_id ="payLaterOptions"
target_element_type ="block"
field_type ="radio"
invert = 0
}
{if $price }
{include file="CRM/common/showHideByFieldValue.tpl"
trigger_field_id ="price_set_id"
trigger_value =""
target_element_id ="map-field"
target_element_type ="block"
field_type ="select"
invert = 0
}
{/if}
{include file="CRM/common/showHideByFieldValue.tpl"
trigger_field_id ="is_discount"
trigger_value =""
target_element_id ="discount"
target_element_type ="block"
field_type ="radio"
invert = 0
}
{if $isQuick}
{literal}
{/literal}
{/if}