{extends file="admin-layout.tpl"} {block name="no-return-functions"} {$admin_current_location = 'tools'} {/block} {block name="check-resource"}admin.order-status{/block} {block name="check-access"}view{/block} {block name="page-title"}{intl l='Edit order status'}{/block} {block name="main-content"}
{loop name="order_status__edit" type="order-status" id=$order_status_id backend_context="1" lang=$edit_language_id} {hook name="order-status-edit.top" order_status_id=$order_status_id}
{intl l='Edit order status %title' title={$TITLE}}
{hookblock name="order-status.tab" order_status_id="{$order_status_id}" fields="id,title,href,content"} {capture "order_status_tab_tab"} {forhook rel="order-status.tab"}
  • {$title}
  • {/forhook} {/capture} {capture "order_status_tab_content"} {forhook rel="order-status.tab"}
    {if $href} {* ajax *}
    {intl l="Please wait, loading"}
    {else} {$content nofilter} {/if}
    {/forhook} {/capture} {/hookblock}
    {form name="thelia.admin.order-status.modification"}
    {include file="includes/inner-form-toolbar.html" close_url={url path='/admin/configuration/order-status'}} {* Be sure to get the currency ID, even if the form could not be validated *} {form_hidden_fields} {render_form_field field="success_url" value={url path="/admin/configuration/order-status"}} {render_form_field field="locale" value={$edit_language_locale}} {if $form_error}
    {$form_error_message}
    {/if}
    {custom_render_form_field field="code"}
    {/custom_render_form_field}
    {custom_render_form_field field="color"}
    {/custom_render_form_field}
    {include file="includes/standard-description-form-fields.html"}
    {hook name="order-status.update-form" order_status_id=$order_status_id} {include file="includes/inner-form-toolbar.html" hide_submit_buttons = false hide_flags = true close_url={url path="/admin/configuration/order-status"} } {intl l='Order status created on %date_create. Last modification: %date_change' date_create={format_date date=$CREATE_DATE} date_change={format_date date=$UPDATE_DATE} }
    {/form}
    {$smarty.capture.order_status_tab_content nofilter}
    {include file = "includes/inner-form-toolbar.html" hide_submit_buttons = true page_url = $pageUrl|default:null close_url = $closeUrl|default:null current_tab = "modules" }
    {* bad fix : {hook name="brand.tab-content"} *} {include file="includes/module-tab-content.html" hook="order-status.tab-content" id=$order_status_id view="order-status"}
    {hook name="order-status-edit.bottom" order_status_id=$order_status_id} {/loop}
    {/block} {block name="javascript-last-call"} {hook name='order-status.edit-js' order_status_id=$order_status_id} {hook name="wysiwyg.js"} {/block}