{extends file="admin-layout.tpl"} {block name="page-title"}{intl l='Edit a hook'}{/block} {block name="check-resource"}admin.hook{/block} {block name="check-access"}update{/block} {block name="main-content"}
{loop name="hook_edit" type="hook" id="$hook_id" backend_context="1" lang="$edit_language_id"}
{hook name="hook-edit.top" hook_id=$hook_id}
{intl l='Edit hook "%name"' name="{$TITLE}"}
{form name="thelia.admin.hook.modification"} {include file = "includes/inner-form-toolbar.html" hide_submit_buttons = false page_url = {url path="/admin/hook/update/%id" id=$ID} close_url = {url path="/admin/hooks"} }
{* Be sure to get the hook ID, even if the form could not be validated *} {form_hidden_fields} {render_form_field field="success_url" value={url path="/admin/hooks"}} {render_form_field field="locale" value={$edit_language_locale}} {if $form_error}
{$form_error_message}
{/if} {render_form_field field='code'} {render_form_field field='type'} {render_form_field field='by_module'} {render_form_field field='block'} {render_form_field field='active'}
{render_form_field field='title'} {render_form_field field="chapo"} {render_form_field field="description" extra_class="wysiwyg"}
{/form}
{hook name="hook-edit.bottom" hook_id=$hook_id} {/loop} {elseloop rel="hook_edit"}
{intl l="Sorry, hook ID=%id was not found." id={$hook_id}}
{/elseloop}
{/block} {block name="javascript-last-call"} {hook name="hook.edit-js" location="hook-edit-js" hook_id={$hook_id} } {hook name="wysiwyg.js" location="wysiwyg-hook-edit-js" } {/block}