From 4a0403040c1e485553d330541362741ba10cbc93 Mon Sep 17 00:00:00 2001 From: Etienne Roudeix Date: Mon, 7 Oct 2013 10:46:12 +0200 Subject: [PATCH] add tax files --- templates/admin/default/configuration.html | 7 + templates/admin/default/tax-rule-edit.html | 256 +++++++++++++++++++++ templates/admin/default/taxes-rules.html | 90 ++++++++ 3 files changed, 353 insertions(+) create mode 100644 templates/admin/default/tax-rule-edit.html create mode 100644 templates/admin/default/taxes-rules.html diff --git a/templates/admin/default/configuration.html b/templates/admin/default/configuration.html index 50e9296ac..b5484a9af 100644 --- a/templates/admin/default/configuration.html +++ b/templates/admin/default/configuration.html @@ -58,6 +58,13 @@ {/loop} + {loop type="auth" name="pcc6" roles="ADMIN" permissions="admin.configuration.taxe-rules"} + + {intl l='Taxes rules'} + + + {/loop} + {module_include location='catalog_configuration_bottom'} diff --git a/templates/admin/default/tax-rule-edit.html b/templates/admin/default/tax-rule-edit.html new file mode 100644 index 000000000..b5ac36973 --- /dev/null +++ b/templates/admin/default/tax-rule-edit.html @@ -0,0 +1,256 @@ +{extends file="admin-layout.tpl"} + +{block name="page-title"}{intl l='Edit a tax rule'}{/block} + +{block name="check-permissions"}admin.configuration.taxes-rules.edit{/block} + +{block name="main-content"} +
+ +
+ + + +
+
+ +
+ {intl l="Edit tax rule $TITLE"} +
+ +
+ +
+ +
+ + + + +
+
+ +
+ +

{intl l="Countries that have the same tax rule"} :

+

+ Italy + England + Japan +

+ +
+
+ +
+
+

Create a tax rule

+
+
+ +
+

+ + {intl l="Add tax to this group"} +

+
+ +
+ +
+ + {intl l="Apply"} + +
+
+ +
+
+

List of taxes

+
+
+
Cras justo odio
+
Dapibus ac facilisis in
+
Morbi leo risus
+
Porta ac consectetur ac
+
Vestibulum at eros
+
+ +
+ +
+
+ +
+
+ +
+ + {* Confirmation dialog *} + + {capture "confirmation_dialog"} + +
+
+ +
+
+ + {/capture} + + {include + file = "includes/generic-create-dialog.html" + + dialog_id = "confirmation_dialog" + dialog_title = {intl l="Create a new tax rule"} + dialog_body = {$smarty.capture.confirmation_dialog nofilter} + + dialog_ok_label = {intl l="Create this tax rule"} + + form_action = {url path='/admin/categories/create'} + + form_error_message = $form_error_message + } + +{/block} + +{block name="javascript-initialization"} + + {javascripts file='assets/js/bootstrap-select/bootstrap-select.js'} + + {/javascripts} + + {javascripts file='assets/js/main.js'} + + {/javascripts} + + + {literal} + + {/literal} + +{/block} \ No newline at end of file diff --git a/templates/admin/default/taxes-rules.html b/templates/admin/default/taxes-rules.html new file mode 100644 index 000000000..a0284d107 --- /dev/null +++ b/templates/admin/default/taxes-rules.html @@ -0,0 +1,90 @@ +{extends file="admin-layout.tpl"} + +{block name="page-title"}{intl l='Taxes rules'}{/block} + +{block name="check-permissions"}admin.taxes-rules.view{/block} + +{block name="main-content"} +
+ +
+ + + + {module_include location='taxes_rules_top'} + +
+
+
+
+ + + + + + + + + + + + + + + + +
+ {intl l="Taxes rules"} + {loop type="auth" name="can_create" roles="ADMIN" permissions="admin.taxes-rules.create"} + + + + {/loop} +
{intl l="Name"}{intl l="Description"}{intl l="Actions"}
Eco taxeLorem ipsum dolor sit amet, consectetur adipisicing elit. Consequatur, aperiam, voluptatibus odio numquam adipisci! +
+ {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.taxes-rules.change"} + + {/loop} + + {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.configuration.taxes-rules.delete"} + + {/loop} +
+
+
+
+
+
+ + {module_include location='taxes_rules_bottom'} + +
+
+ +{* -- Delete category confirmation dialog ----------------------------------- *} + +{capture "tax_rule_delete_dialog"} + + + {module_include location='tax_rule_delete_form'} + +{/capture} + +{include + file = "includes/generic-confirm-dialog.html" + + dialog_id = "tax_rule_delete_dialog" + dialog_title = {intl l="Delete tax rule"} + dialog_message = {intl l="Do you really want to delete this tax rule ?"} + + form_action = {url path='/admin/configuration/taxes_rules/delete'} + form_content = {$smarty.capture.tax_rule_delete_dialog nofilter} +} + +{/block} \ No newline at end of file