{* +--------------------------------------------------------------------+ | 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 | +--------------------------------------------------------------------+ *} {if ($action eq 1 or $action eq 2 or $action eq 4 or $action eq 8 and !$usedBy) and !$isReserved} {include file="CRM/Price/Form/Option.tpl"} {elseif $usedBy}
{icon icon="fa-info-circle"}{/icon} {if $action eq 8} {ts 1=$usedPriceSetTitle}Unable to delete the '%1' Price Field Option - it is currently in use by one or more active events or contribution pages or contributions.{/ts} {/if} {if $usedBy.civicrm_event or $usedBy.civicrm_contribution_page} {include file="CRM/Price/Page/table.tpl"} {/if}
{else} {if $customOption}

{strip} {* handle enable/disable actions*} {include file="CRM/common/enableDisableApi.tpl"} {if $isEvent} {/if} {if $getTaxDetails} {/if} {foreach from=$customOption item=row} {if $isEvent} {/if} {if $getTaxDetails} {/if} {/foreach}
{ts}Option Label{/ts} {ts}Option Amount{/ts} {ts}Non-deductible Amount{/ts} {ts}Pre Help{/ts} {ts}Post Help{/ts}{ts}Participant Count{/ts} {ts}Maximum{/ts}{ts}Default{/ts} {ts}Financial Type{/ts} {ts}Order{/ts}{ts}Tax Label{/ts} {ts}Tax Amount{/ts}{ts}Enabled?{/ts}
{$row.label} {$row.amount|crmMoney} {$row.non_deductible_amount|crmMoney} {$row.help_pre} {$row.help_post}{$row.count} {$row.max_value}{icon condition=$row.is_default}{ts}Default{/ts}{/icon} {$row.financial_type_id} {$row.weight|smarty:nodefaults}{if $row.tax_rate != '' } {$taxTerm} ({$row.tax_rate}%) {/if} {$row.tax_amount|crmMoney}{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if} {$row.action|smarty:nodefaults|replace:'xx':$row.id}
{/strip}
{else} {if $action eq 16}
{ts}status{/ts} {ts}None found.{/ts}
{/if} {/if} {if $addMoreFields && !$isReserved} {/if} {/if}