{extends file="admin-layout.tpl"} {block name="no-return-functions"} {$admin_current_location = 'configuration'} {/block} {block name="page-title"}{intl l='Edit a tax'}{/block} {block name="check-resource"}admin.configuration.tax{/block} {block name="check-access"}update{/block} {block name="main-content"}
{loop type="tax" name="tax" id=$tax_id backend_context="1" lang=$edit_language_id} {hook name="tax-edit.top" tax_id=$tax_id}
{form name="thelia.admin.tax.modification"} {include file = "includes/inner-form-toolbar.html" hide_submit_buttons = false page_url = {url path="/admin/configuration/taxes/update/%id" id=$tax_id} 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 $form_error}{$value}{else}{if $IS_TRANSLATED == 1}{$DESCRIPTION}{/if}{/if}
{/form_field} {form_field field='type'}
{$label} :
{$typeValue = $value} {/form_field} {form_tagged_fields tag='requirements'}
{$label} {if $formType == 'choice'}
{/if} {if $formType == 'text'} {/if}
{/form_tagged_fields}

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

{/form}
{hook name="tax-edit.bottom" tax_id=$tax_id} {/loop}
{/block} {block name="javascript-initialization"} {javascripts file='assets/js/bootstrap-select/bootstrap-select.js'}
{/javascripts}
{/block} {block name="javascript-last-call"} {hook name="tax.edit-js" location="tax-edit-js" } {hook name="wysiwyg.js" location="wysiwyg-tax-edit-js" } {/block}