diff --git a/admin-dev/ajax.php b/admin-dev/ajax.php index 10992a728..d1ceff13b 100644 --- a/admin-dev/ajax.php +++ b/admin-dev/ajax.php @@ -970,3 +970,15 @@ if (Tools::isSubmit('getParentCategoriesId') AND $id_category = Tools::getValue( die(Tools::jsonEncode($output)); } +/* Update attribute */ +if (Tools::isSubmit('ajaxUpdateTaxRule')) +{ + $id_tax_rule = Tools::getValue('id_tax_rule'); + $tax_rules = new TaxRule((int)$id_tax_rule); + $output = array(); + foreach($tax_rules as $key => $result) + $output[$key] = $result; + die(Tools::jsonEncode($output)); + +} + diff --git a/admin-dev/themes/template/helper/form/form.tpl b/admin-dev/themes/template/helper/form/form.tpl index ca9c98109..3968bc9d1 100644 --- a/admin-dev/themes/template/helper/form/form.tpl +++ b/admin-dev/themes/template/helper/form/form.tpl @@ -61,6 +61,8 @@ {rdelim}); + {block name="script"} + {/block} {/if} {if isset($toolbar) && $toolbar} @@ -70,7 +72,7 @@ {if isset($fields.title)}
{l s='Back'}
+ {else}
+
{l s='Back to list'}
+ {/if}
+
\ No newline at end of file
diff --git a/admin-dev/themes/template/tax_rules/list_content.tpl b/admin-dev/themes/template/tax_rules/list_content.tpl
new file mode 100644
index 000000000..d027983e7
--- /dev/null
+++ b/admin-dev/themes/template/tax_rules/list_content.tpl
@@ -0,0 +1,126 @@
+{*
+* 2007-2011 PrestaShop
+*
+* NOTICE OF LICENSE
+*
+* This source file is subject to the Academic Free License (AFL 3.0)
+* that is bundled with this package in the file LICENSE.txt.
+* It is also available through the world-wide-web at this URL:
+* http://opensource.org/licenses/afl-3.0.php
+* If you did not receive a copy of the license and are unable to
+* obtain it through the world-wide-web, please send an email
+* to license@prestashop.com so we can send you a copy immediately.
+*
+* DISCLAIMER
+*
+* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
+* versions in the future. If you wish to customize PrestaShop for your
+* needs please refer to http://www.prestashop.com for more information.
+*
+* @author PrestaShop SA
+ {elseif isset($params.position)}
+ {if $order_by == 'position' && $order_way != 'DESC'}
+
+
+
+
+
+
+
+ {else}
+ {$tr.$key.position + 1}
+ {/if}
+ {elseif isset($params.image)}
+ {$tr.$key}
+ {elseif (isset($params.icon))}
+