{extends file="admin-layout.tpl"} {block name="no-return-functions"} {$admin_current_location = 'configuration'} {/block} {block name="page-title"}{intl l='Edit a tax rule'}{/block} {block name="check-resource"}admin.configuration.tax{/block} {block name="check-access"}update{/block} {block name="main-content"} {assign oder_tab {$smarty.get.tab|default:$smarty.post.tab|default:'data'}} {assign asked_country {$smarty.get.country|default:{country ask="default" attr="id"}}} {assign asked_state {$smarty.get.state|default:0}}
{loop type="tax-rule" name="tax-rule" id=$tax_rule_id backend_context="1" lang=$edit_language_id} {hook name="tax-rule-edit.top" tax_rule_id=$tax_rule_id}
{form name="thelia.admin.taxrule.modification"} {include file = "includes/inner-form-toolbar.html" hide_submit_buttons = false page_url = {url path="/admin/configuration/taxes_rules/update/%id" id=$tax_rule_id tab=data} close_url = {url path="/admin/configuration/taxes_rules"} } {* Be sure to get the product ID, even if the form could not be validated *} {form_hidden_fields} {form_field field='success_url'} {/form_field} {form_field field='locale'} {/form_field} {if $form_error}
{$form_error_message}
{/if} {form_field field='title'}
{$label} :
{/form_field} {form_field field='description'}
{$label} : {intl l="The detailed description."} {if $error}{$value}{else}{if $IS_TRANSLATED == 1}{$DESCRIPTION}{/if}{/if}
{/form_field}

{intl l='Tax rule created on %date_create. Last modification: %date_change' date_create={format_date date=$CREATE_DATE} date_change={format_date date=$UPDATE_DATE}}

{/form}
{intl l="Manage taxes"}

{intl l="Select a configuration"}
{intl l="Choose a configuration"} :
{intl l="Choose a country"} :
{intl l="Countries/states configuration"}
{intl l="No filters"} {intl l="Use this config."} {intl l="No config."} {intl l="Use an other config."}
{loop type="country" name="country-list" visible="1" has_states="0"} {$TITLE} {/loop}
{loop type="country" name="country-list" visible="1" has_states="1"} {$country_id=$ID} {$country_title=$TITLE}
{$country_title}
{intl l="all states/provinces"} {loop type="state" name="state-list" visible="*" country={$country_id}} {$TITLE} {/loop}
{/loop}
{intl l="Taxes configuration"}

### {intl l="Manage the tax rule taxes appliance order"}

### {intl l="Available taxes"}

{intl l="Apply"}
{hook name="tax-rule-edit.bottom" tax_rule_id=$tax_rule_id} {/loop}
{* Confirmation dialog *} {form name="thelia.admin.taxrule.taxlistupdate"} {* Capture the dialog body, to pass it to the generic dialog *} {capture "tax_list_update_dialog"}
{form_hidden_fields}
{intl l="Countries/states that will use this configuration"}
{intl l="Countries/states deleted of this configuration"}
{hook name="taxes.update-form" location="tax_list_update_form" tax_rule_id={$tax_rule_id} } {/capture} {include file = "includes/generic-create-dialog.html" dialog_id = "tax_list_update_dialog" dialog_title = {intl l="Update tax rule taxes"} dialog_body = {$smarty.capture.tax_list_update_dialog nofilter} dialog_ok_label = {intl l="Save tax rule taxes"} dialog_cancel_label = {intl l="Cancel"} form_action = {url path="/admin/configuration/taxes_rules/saveTaxes"} form_enctype = {form_enctype} } {/form} {/block} {block name="javascript-initialization"} {javascripts file='assets/js/bootstrap-select/bootstrap-select.js'}
{/javascripts} {javascripts file='assets/js/libs/underscore-min.js'}
{/javascripts}
{* get taxes configuration *} {$taxes=[]} {loop type="tax" name="tax-list"} {$taxes[$ID]= {$TITLE}} {/loop}
{/block} {block name="javascript-last-call"} {hook name="tax-rule.edit-js" location="tax-rule-edit-js" tax_rule_id={$tax_rule_id} } {hook name="wysiwyg.js" location="wysiwyg-tax-rule-edit-js" } {/block} {block name="after-bootstrap-css"}
{/block}