{*
+--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
<p></p>
{strip}
{* handle enable/disable actions*}
- {include file="CRM/common/enableDisable.tpl"}
+ {include file="CRM/common/enableDisableApi.tpl"}
+ {include file="CRM/common/crmeditable.tpl"}
{include file="CRM/common/jsortable.tpl"}
<table id="options" class="display">
<thead>
<th>{ts}Default{/ts}</th>
<th>{ts}Financial Type{/ts}</th>
<th id="order" class="sortable">{ts}Order{/ts}</th>
+ {if $getTaxDetails}
+ <th>{ts}Tax Label{/ts}</th>
+ <th>{ts}Tax Amount{/ts}</th>
+ {/if}
<th>{ts}Enabled?{/ts}</th>
<th></th>
<th class="hiddenElement"></th>
</tr>
</thead>
{foreach from=$customOption item=row}
- <tr id="row_{$row.id}"class=" crm-price-option crm-price-option_{$row.id} {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
- <td class="crm-price-option-label">{$row.label}</td>
+ <tr id="price_field_value-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
+ <td class="crm-price-option-label crm-editable" data-field="label">{$row.label}</td>
<td class="crm-price-option-value">{$row.amount|crmMoney}</td>
<td class="crm-price-option-is_default">{if $row.is_default}<img src="{$config->resourceBase}i/check.gif" alt="{ts}Default{/ts}" />{/if}</td>
<td class="nowrap crm-price-option-financial-type-id">{$row.financial_type_id}</td>
<td class="nowrap crm-price-option-order">{$row.weight}</td>
+ {if $getTaxDetails}
+ <td>{if $row.tax_rate != '' }
+ {$taxTerm} ({$row.tax_rate|string_format:"%.2f"}%)
+ {/if}
+ </td>
+ <td>{$row.tax_amount|crmMoney}</td>
+ {/if}
<td id="row_{$row.id}_status" class="crm-price-option-is_active">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
<td>{$row.action|replace:'xx':$row.id}</td>
<td class="order hiddenElement">{$row.weight}</td>