{* +--------------------------------------------------------------------+ | 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 | +--------------------------------------------------------------------+ *} {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}
{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 $getTaxDetails} {/if} {foreach from=$customOption item=row} {if $getTaxDetails} {/if} {/foreach}
{ts}Option Label{/ts} {ts}Option Amount{/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} {if $row.is_default}{ts}Default{/ts}{/if} {$row.financial_type_id} {$row.weight}{if $row.tax_rate != '' } {$taxTerm} ({$row.tax_rate|string_format:"%.2f"}%) {/if} {$row.tax_amount|crmMoney}{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if} {$row.action|replace:'xx':$row.id}
{/strip}
{else} {if $action eq 16}
{ts}status{/ts} {ts}None found.{/ts}
{/if} {/if} {if $addMoreFields && !$isReserved} {/if} {/if}