{extends file="admin-layout.tpl"} {block name="no-return-functions"} {$admin_current_location = 'folder'} {/block} {block name="check-resource"}admin.content{/block} {block name="check-access"}view{/block} {block name="page-title"}{intl l='Edit content'}{/block} {block name="main-content"}
{include file="includes/folder-breadcrumb.html" editing_content="true"} {hook name="content-edit.top" content_id=$content_id}
{loop name="content_edit" type="content" visible="*" id="{$content_id}" backend_context="1" lang="$edit_language_id" with_prev_next_info="true"}
{intl l='Edit content %title' title={$TITLE}}
{if $HAS_PREVIOUS != 0} {else} {/if} {if $HAS_NEXT != 0} {else} {/if}
{hookblock name="content.tab" id="{$content_id}" fields="id,title,href,content"} {capture "content_tab_tab"} {forhook rel="content.tab"}
- {$title}
{/forhook} {/capture} {capture "content_tab_content"} {forhook rel="content.tab"}
{if $href} {* ajax *}
{intl l="Please wait, loading"}
{else} {$content nofilter} {/if}
{/forhook} {/capture} {/hookblock}
{form name="thelia.admin.content.modification"} {include file="includes/inner-form-toolbar.html" close_url="{url path='/admin/folders' parent=$DEFAULT_FOLDER}"} {* 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} {if $form_error}
{$form_error_message}
{/if}
{include file="includes/standard-description-form-fields.html"}
{hook name="content.modification.form-right.top" content_id=$content_id} {form_field field='default_folder'}
{$label} :
{/form_field} {form_field field='visible'}
{intl l='Visibility'}
{$label}
{/form_field} {hook name="content.modification.form-right.bottom" content_id=$content_id}
{include file="includes/inner-form-toolbar.html" hide_submit_buttons = false hide_flags = true close_url="{url path='/admin/folders' parent=$DEFAULT_FOLDER}" } {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/content/seo/save'}" pageUrl = "{url path='/admin/content/update'}/$content_id" closeUrl = "{url path='/admin/folders' parent=$DEFAULT_FOLDER}" success_url = "{url path='/admin/folders' parent=$DEFAULT_FOLDER}" current_id = $content_id seoType = 'content' }
{include file="includes/content-folder-management.html"}
{include file='includes/image-upload-form.html' imageType='content' parentId=$content_id resource="admin.content"}
{include file='includes/document-upload-form.html' documentType='content' parentId=$content_id resource="admin.content"}
{$smarty.capture.content_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="content.tab-content" id="{$content_id}" view="content"} *} {include file="includes/module-tab-content.html" hook="content.tab-content" location="content-edit" id="{$content_id}" view="content"}
{/loop}
{hook name="content-edit.bottom" content_id=$content_id}
{* Delete category confirmation dialog *} {capture "delete_folder_dialog"} {/capture} {include file = "includes/generic-confirm-dialog.html" dialog_id = "delete_folder_dialog" dialog_title = {intl l="Remove associated folder"} dialog_message = {intl l="Do you really want to remove the content from this folder ?"} form_action = {token_url path='/admin/content/folder/delete'} form_content = {$smarty.capture.delete_folder_dialog nofilter} } {/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="content.edit-js" location="content-edit-js" content_id={$content_id} } {hook name="wysiwyg.js" location="wysiwyg-content-edit-js" } {/block}