{extends file="admin-layout.tpl"} {block name="no-return-functions"} {$admin_current_location = 'folder'} {/block} {block name="check-resource"}admin.folder{/block} {block name="check-access"}update{/block} {block name="page-title"}{intl l='Edit folder'}{/block} {block name="main-content"}
{include file="includes/folder-breadcrumb.html" } {hook name="folder-edit.top" folder_id=$folder_id}
{loop name="folder_edit" type="folder" visible="*" id="{$folder_id}" backend_context="1" lang="$edit_language_id" with_prev_next_info="true"} {* Define close url *} {assign var='close_url' value="{url path='/admin/folders' folder_id=$ID}"}
{intl l='Edit folder %title' title={$TITLE}}
{hookblock name="folder.tab" id="{$folder_id}" fields="id,title,href,content"} {capture "folder_tab_tab"} {forhook rel="folder.tab"}
- {$title}
{/forhook} {/capture} {capture "folder_tab_content"} {forhook rel="folder.tab"}
{if $href} {* ajax *}
{intl l="Please wait, loading"}
{else} {$content nofilter} {/if}
{/forhook} {/capture} {/hookblock}
{form name="thelia.admin.folder.modification"} {include file="includes/inner-form-toolbar.html" close_url=$close_url} {* Be sure to get the folder ID, even if the form could not be validated *} {form_hidden_fields} {form_field field='success_url'} {/form_field} {form_field field='locale'} {/form_field} {* Display error message if exist *} {include file='includes/notifications.html' message=$form_error_message}
{include file="includes/standard-description-form-fields.html"}
{hook name="folder.modification.form-right.top" folder_id=$folder_id} {form_field field='parent'}
{$label} :
{/form_field} {form_field field='visible'}
{intl l='Visibility'}
{$label}
{/form_field} {hook name="folder.modification.form-right.bottom" folder_id=$folder_id}
{include file="includes/inner-form-toolbar.html" hide_flags = true close_url=$close_url } {intl l='Folder 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/seo-tab.html" formAction = "{url path='/admin/folders/seo/save'}" pageUrl = "{url path='/admin/folders/update'}/$folder_id" closeUrl = $close_url success_url = $close_url current_id = $folder_id seoType = 'folder' }
{include file='includes/image-upload-form.html' imageType='folder' parentId=$ID resource="admin.folder"}
{include file='includes/document-upload-form.html' documentType='folder' parentId=$ID resource="admin.folder"}
{$smarty.capture.folder_tab_content nofilter}
{include file = "includes/inner-form-toolbar.html" hide_submit_buttons = true page_url = {$pageUrl} close_url = {$closeUrl} current_tab = "modules" }
{* ugly fix : {hook name="folder.tab-content" id="{$folder_id}" view="folder"} *} {include file="includes/module-tab-content.html" hook="folder.tab-content" location="folder-edit" id="{$folder_id}" view="folder"}
{/loop}
{hook name="folder-edit.bottom" folder_id=$folder_id}
{/block} {block name="javascript-initialization"} {javascripts file='assets/js/dropzone.js'}
{/javascripts} {javascripts file='assets/js/image-upload.js'}
{/javascripts} {javascripts file='assets/js/document-upload.js'}
{/javascripts} {javascripts file='assets/js/jquery-ui-1.10.3.custom.min.js'}
{/javascripts}
{/block} {block name="javascript-last-call"} {hook name="folder.edit-js" location="folder-edit-js" folder_id={$folder_id} } {hook name="wysiwyg.js" location="wysiwyg-folder-edit-js" } {/block}