@@ -234,11 +235,16 @@
{intl l="Tax rule taxes will be update for the following countries :"}
{/form_field}
@@ -283,6 +289,29 @@
$('#tax_list_update_dialog').modal();
{/if}
+
+ $('.js-collapse').each(function(k, v) {
+ var h = $(v).data('collapse-height');
+ if( $(v).height() > h ) {
+ $(v).css('overflow', 'hidden').css('height', h + 'px');
+ } else {
+ $('[data-collapse-block=' + $(v).attr('id') + ']').hide();
+ }
+ });
+
+ $('.js-collapse-btn').click(function(e) {
+ e.preventDefault();
+ var block = $(this).data('collapseBlock');
+ $('#' + block).css('overflow', 'initial').css('height', 'initial');
+ $(this).unbind().remove();
+ });
+
+ $('.js-uncheck-all').click(function(e) {
+ e.preventDefault();
+ var selectId = $(this).data('uncheckSelect');
+ $('#' + selectId).selectpicker('deselectAll');
+ });
+
{literal}
$('#country-selector').change(function(e) {
$('#country-selector-form').submit();
@@ -308,7 +337,6 @@
});
});
- console.log(taxesRules);
$('#tax_list').val(JSON.stringify(taxesRules));
});
diff --git a/templates/admin/default/taxes-rules.html b/templates/admin/default/taxes-rules.html
index 67e8b414a..73eb35b40 100644
--- a/templates/admin/default/taxes-rules.html
+++ b/templates/admin/default/taxes-rules.html
@@ -21,6 +21,72 @@
+
+
+
{intl l="In order to manges your shop taxes you can manage"} {intl l="taxes"} {intl l="and"} {intl l="tax rules"}.
+
{intl l="Taxes define the amount of money which is add to a bought product."}
+
+ {intl l="Example :"}
+
+ - {intl l="French 19.6% VAT is a tax which add a 19.6% tax to the product price."}
+ - {intl l="Ecotax is a tax wich add a defined amount (throug a product feature) to the product price."}
+
+
+
{intl l="Tax rules are combination of different taxes."}
+
+ {intl l="Example :"}
+
+ - {intl l="French 19.6% VAT with ecotax is the applicance of the ecotax (on the product price) then the applicance of the 19.6% tax (on the product price + the ecotax amount)."}
+
+
+
{intl l="you can combine taxes in tax rules and chose if they are applied one after the other or at the same time : it allows to apply taxes on an already taxed price or not."}
+
+
+
+
+
+
+ {intl l="Taxes"}
+ {loop type="auth" name="can_create" roles="ADMIN" permissions="admin.taxes.create"}
+
+
+
+ {/loop}
+
+
+
+ | {intl l="Name"} |
+ {intl l="Description"} |
+ {intl l="Actions"} |
+
+
+
+
+ {loop type="tax" name="taxes" backend_context="1"}
+
+
+ | {$TITLE} |
+ {$DESCRIPTION} |
+
+
+ {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.taxes.change"}
+
+ {/loop}
+
+ {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.taxes.change"}
+
+ {/loop}
+
+ |
+
+
+ {/loop}
+
+
+
+
+
+
@@ -41,7 +107,7 @@
- {loop type="tax-rule" name="taxes-rules"}
+ {loop type="tax-rule" name="taxes-rules" backend_context="1"}
| {$TITLE} |
@@ -61,10 +127,10 @@
{/loop}
-
+
-
+