{* Adding a new Hook *}
{form name="thelia.admin.hook.creation"}
{* Capture the dialog body, to pass it to the generic dialog *}
{capture "hook_creation_dialog"}
{form_hidden_fields exclude="locale,native"}
{* on success, redirect to the edition page, _ID_ is replaced with the created object ID, see controller *}
{render_form_field field="success_url" value={url path="/admin/hook/update/_ID_"}}
{custom_render_form_field field="title"}
{loop type="lang" name="default-lang" default_only="1"}
{* Switch edition to the current locale *}
{render_form_field field="locale" value=$LOCALE}
{intl l="Enter here the value in the default language (%title)" title={$TITLE}}