{extends file="admin-layout.tpl"} {block name="after-admin-css"} {/block} {block name="no-return-functions"} {$admin_current_location = 'tools'} {/block} {block name="check-resource"}admin.brand{/block} {block name="check-access"}view{/block} {block name="page-title"}{intl l='Edit brand'}{/block} {block name="main-content"}
{loop name="brand_edit" type="brand" visible="*" id="{$brand_id}" backend_context="1" lang="$edit_language_id" with_prev_next_info="true"}
{hook name="brand-edit.top" brand_id=$brand_id}
{intl l='Edit brand %title' title={$TITLE}}
{if $HAS_PREVIOUS != 0} {else} {/if} {if $HAS_NEXT != 0} {else} {/if}
{hookblock name="brand.tab" brand_id="{$brand_id}" fields="id,title,href,content"} {capture "brand_tab_tab"} {forhook rel="brand.tab"}
- {$title}
{/forhook} {/capture} {capture "brand_tab_content"} {forhook rel="brand.tab"}
{if $href} {* ajax *}
{intl l="Please wait, loading"}
{else} {$content nofilter} {/if}
{/forhook} {/capture} {/hookblock}
{form name="thelia.admin.brand.modification"} {include file="includes/inner-form-toolbar.html" close_url={url path='/admin/brand'}} {* Be sure to get the currency ID, even if the form could not be validated *} {form_hidden_fields} {render_form_field field="success_url" value={url path="/admin/brand"}} {render_form_field field="locale" value={$edit_language_locale}} {if $form_error}
{$form_error_message}
{/if}
{include file="includes/standard-description-form-fields.html"}
{hook name="brand.modification.form-right.top" brand_id=$brand_id} {render_form_field field="visible"} {custom_render_form_field field='logo_image_id'}
{/custom_render_form_field} {hook name="brand.modification.form-right.bottom" brand_id=$brand_id}
{hook name="brand.update-form" location='brand_update_form'} {include file="includes/inner-form-toolbar.html" hide_submit_buttons = false hide_flags = true close_url={url path="/admin/brand"} } {intl l='Brand 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/brand/seo/save'} pageUrl = {url path='/admin/brand/update/%id' id=$brand_id} closeUrl = {url path='/admin/brand'} success_url = {url path='/admin/brand'} current_id = $brand_id seoType = 'brand' parentId = $brand_id }
{include file='includes/image-upload-form.html' imageType='brand' parentId=$brand_id resource="admin.brand"}
{include file='includes/document-upload-form.html' documentType='brand' parentId=$brand_id resource="admin.brand"}
{$smarty.capture.brand_tab_content nofilter}
{include file = "includes/inner-form-toolbar.html" hide_submit_buttons = true page_url = $pageUrl close_url = {$closeUrl} current_tab = "modules" }
{* bad fix : {hook name="brand.tab-content"} *} {include file="includes/module-tab-content.html" hook="brand.tab-content" location="brand-edit" id={$brand_id} view="brand"}
{hook name="brand-edit.bottom" brand_id=$brand_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/document-upload.js'}
{/javascripts} {javascripts file='assets/js/jquery-ui-1.10.3.custom.min.js'}
{/javascripts} {javascripts file='assets/js/image-picker/image-picker.min.js'}
{/javascripts}
{/block} {block name="javascript-last-call"} {hook name='brand.edit-js' location='brand-edit-js' brand_id={$brand_id}} {hook name="wysiwyg.js" location="wysiwyg-brand-edit-js" } {/block}