{* +--------------------------------------------------------------------+ | 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 | +--------------------------------------------------------------------+ *} {*Javascript function controls showing and hiding of form elements based on html type.*} {literal} {/literal}
{include file="CRM/common/formButtons.tpl" location="top"}
{if $action neq 4 and $action neq 2} {/if}
{$form.label.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_price_field' field='label' id=$fid}{/if}{$form.label.html}
{$form.html_type.label} {$form.html_type.html}
  {ts}Select the html type used to offer options for this field{/ts}
{if $useForEvent} {/if}
{$form.price.label} * {$form.price.html} {if $action neq 4}
{ts}Unit price.{/ts} {help id="id-negative"} {/if}
{$form.non_deductible_amount.label} {$form.non_deductible_amount.html}
{$form.count.label} {$form.count.html}
{ts}Enter a value here if you want to increment the number of registered participants per unit against the maximum number of participants allowed for this event.{/ts} {help id="id-participant-count"}
{$form.max_value.label} {$form.max_value.html}
{$form.financial_type_id.label}* {if !$financialType} {capture assign=ftUrl}{crmURL p='civicrm/admin/financial/financialType' q="reset=1"}{/capture} {ts 1=$ftUrl}There is no Financial Type configured of Account Relation Revenue. Click here if you want to configure financial type for your site.{/ts} {else} {$form.financial_type_id.html} {/if}
{if $action eq 1} {* Conditionally show table for setting up selection options - for field types = radio, checkbox or select *}
{ include file="CRM/Price/Form/OptionFields.tpl"}
{/if}
{$form.options_per_line.label} {$form.options_per_line.html|crmAddClass:two}
{$form.is_display_amounts.label} {$form.is_display_amounts.html} {if $action neq 4}
{ts}Display amount next to each option? If no, then the amount should be in the option description.{/ts}
{/if}
{$form.weight.label} {$form.weight.html|crmAddClass:two} {if $action neq 4}
{ts}Weight controls the order in which fields are displayed in a group. Enter a positive or negative integer - lower numbers are displayed ahead of higher numbers.{/ts}
{/if}
{$form.help_pre.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_price_field' field='help_pre' id=$fid}{/if}{$form.help_pre.html|crmAddClass:huge}  {if $action neq 4}
{ts}Explanatory text displayed to users at the beginning of this field.{/ts}
{/if}
{$form.help_post.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_price_field' field='help_post' id=$fid}{/if}{$form.help_post.html|crmAddClass:huge}  {if $action neq 4}
{ts}Explanatory text displayed to users below this field.{/ts}
{/if}
{$form.active_on.label} {$form.active_on.html} {if $action neq 4}
{ts}Date this field becomes effective (optional). Used for price set fields that are made available starting on a specific date.{/ts} {/if}
{$form.expire_on.label} {$form.expire_on.html} {if $action neq 4}
{ts}Date this field expires (optional). Used for price set fields that are no longer available after a specific date (e.g. early-bird pricing).{/ts} {/if}
{$form.is_required.label}  {$form.is_required.html}
{$form.visibility_id.label}  {$form.visibility_id.html} {help id="id-visibility"}
{$form.is_active.label} {$form.is_active.html}
{include file="CRM/common/formButtons.tpl" location="bottom"}
{literal} {/literal} {* Give link to view/edit choice options if in edit mode and html_type is one of the multiple choice types *} {if $action eq 2 AND ($form.data_type.value.1.0 eq 'CheckBox' OR $form.data_type.value.1.0 eq 'Radio' OR $form.data_type.value.1.0 eq 'Select') } {/if}