Merge branch 'VAT-572' of github.com:Parag18/civicrm-core into Parag18-VAT-572
[civicrm-core.git] / templates / CRM / Price / Page / Option.tpl
index 83586cde780bf194bfd323f190ae8f083a67cf06..efef17ae28bd2f7328053b812444d16cb8d65021 100644 (file)
@@ -1,8 +1,8 @@
 {*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.3                                                |
+ | CiviCRM version 4.5                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -50,7 +50,8 @@
      <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>