{extends file="admin-layout.tpl"} {block name="no-return-functions"} {$admin_current_location = 'modules'} {/block} {block name="page-title"}{intl l='Edit a module'}{/block} {block name="check-resource"}admin.module{/block} {block name="check-access"}update{/block} {block name="main-content"}
{loop type="module" name="module" id=$module_id backend_context="1" lang=$edit_language_id} {hook name="module-edit.top" module_id=$module_id}
{form name="thelia.admin.module.modification"} {include file = "includes/inner-form-toolbar.html" hide_submit_buttons = false page_url = {url path="/admin/module/update/$module_id"} close_url = {url path="/admin/modules"} } {* Be sure to get the module ID, even if the form could not be validated *} {form_hidden_fields} {render_form_field field="success_url" value={url path="/admin/modules"}} {if $form_error}
{$form_error_message}
{/if} {include file="includes/standard-description-form-fields.html"}

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

{/form}
{include file='includes/image-upload-form.html' imageType='module' parentId=$module_id}
{hook name="module-edit.bottom" module_id=$module_id} {/loop}
{/block} {block name="javascript-initialization"} {javascripts file='assets/js/dropzone.js'}
{/javascripts} {javascripts file='assets/js/image-upload.js'}
{/javascripts} {javascripts file='assets/js/jquery-ui-1.10.3.custom.min.js'}
{/javascripts}
{/block} {block name="javascript-last-call"} {hook name="module.edit-js" location="module-edit-js" module_id={$module_id} } {hook name="wysiwyg.js" location="wysiwyg-module-edit-js" } {/block}