{extends file="admin-layout.tpl"} {block name="no-return-functions"} {$admin_current_location = 'configuration'} {/block} {block name="page-title"}{intl l='Edit a state'}{/block} {block name="check-resource"}admin.configuration.state{/block} {block name="check-access"}update{/block} {block name="main-content"}
{loop name="state_edit" type="state" id="$state_id" backend_context="1" lang="$edit_language_id" visible="*"}
{hook name="state-edit.top" state_id=$state_id}
{intl l='Edit state "%name"' name="{$TITLE}"}
{form name="thelia.admin.state.modification"} {include file = "includes/inner-form-toolbar.html" hide_submit_buttons = false page_url = {url path="/admin/configuration/state/update/%id" id=$ID} close_url = {url path="/admin/configuration/states"} } {* Be sure to get the state ID, even if the form could not be validated *} {form_hidden_fields exclude="locale"} {render_form_field field='success_url' value={url path="/admin/configuration/states"}} {render_form_field field='locale' value={$edit_language_locale}} {if $form_error}
{$form_error_message}
{/if}
{render_form_field field='title'} {render_form_field field="visible"}
{custom_render_form_field field='country_id'}
{/custom_render_form_field} {render_form_field field="isocode"}
{/form}
{hook name="state-edit.bottom" state_id=$state_id} {/loop} {elseloop rel="state_edit"}
{intl l="Sorry, state ID=%id was not found." id={$state_id}}
{/elseloop}
{/block} {block name="javascript-last-call"} {hook name="state.edit-js" location="state-edit-js" state_id=$state_id } {hook name="wysiwyg.js" location="wysiwyg-state-edit-js" } {/block}