{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"} {assign oder_tab {$smarty.get.tab|default:"data"}} {assign asked_country {$smarty.get.country|default:{country ask="default" attr="id"}}}
{loop type="tax-rule" name="tax-rule" id=$tax_rule_id backend_context="1" lang=$edit_language_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/$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=$form} {form_field form=$form field='success_url'} {/form_field} {form_field form=$form field='locale'} {/form_field} {if $form_error}
{$form_error_message}
{/if} {form_field form=$form field='title'}
{/form_field} {form_field form=$form field='description'}
{/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="Countries that have the same tax rule"} :

{loop type="tax-rule-country" name="same-country-list" tax_rule=$ID taxes="1,2,3"} {$COUNTRY_TITLE} {/loop} {elseloop rel="same-country-list"} {intl l="NONE"} {/elseloop}

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

{assign lastPosition 0} {loop type="tax-rule-country" name="existing-tax-list" tax_rule=$ID country=$asked_country} {if $POSITION != $lastPosition} {assign lastPosition $POSITION} {if $LOOP_COUNT > 1}
{/if}

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

{/if}
{$TAX_TITLE} - {$POSITION}
{if $LOOP_COUNT == $LOOP_TOTAL}
{/if} {/loop}
{intl l="Apply"}

Available taxes

{loop type="tax" name="tax-list" exclude_tax_rule=$ID country=$asked_country}
{$TITLE}
{/loop}
{/loop}
{* 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}