{extends file="admin-layout.tpl"} {block name="check-permissions"}admin.catalog.view{/block} {block name="page-title"}{intl l='Edit product'}{/block} {block name="main-content"}
{include file="includes/catalog-breadcrumb.html" editing_category="false" editing_product="true"}
{loop name="product_edit" type="product" visible="*" id=$product_id backend_context="1" lang=$edit_language_id}
{intl l='Edit product %title' title=$TITLE}
{if $HAS_PREVIOUS != 0} {else} {/if} {if $HAS_NEXT != 0} {else} {/if}
{form name="thelia.admin.product.modification"}
{include file="includes/inner-form-toolbar.html" close_url="{url path='/admin/products' product_id=$product_id}"} {* Be sure to get the product ID, even if the form could not be validated *} {form_hidden_fields form=$form} {form_field form=$form field='success_url'} {/form_field} {form_field form=$form field='locale'} {/form_field} {if $form_error}
{$form_error_message}
{/if}
{$REF}
{include file="includes/standard-description-form-fields.html"} {form_field form=$form field='url'}
{/form_field}
{form_field form=$form field='default_category'}
{intl l='You can attach this product to more categories in the details tab.'}
{/form_field}
{form_field form=$form field='visible'}
{/form_field}
 

{intl l='Product 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/inner-form-toolbar.html" hide_submit_buttons=true close_url="{url path='/admin/categories' category_id=$DEFAULT_CATEGORY}" } {* -- Begin related content management -- *}
{module_include location='product_contents_table_header'} {loop name="assigned_contents" type="associated_content" product="$product_id" backend_context="1" lang="$edit_language_id"} {module_include location='product_contents_table_row'} {/loop} {elseloop rel="assigned_contents"} {/elseloop}
{intl l='ID'} {intl l='Content title'}{intl l="Actions"}
{$ID} {$TITLE}
{loop type="auth" name="can_create" roles="ADMIN" permissions="admin.configuration.product.content.delete"} {/loop}
{intl l="This product contains no contents"}
{* -- End related content management ---- *} {* -- Begin accessories management ------ *}

{intl l='Product accessories'}

{intl l='Define here this product\'s accessories'}

{ifloop rel="categories"}
{intl l='Select a category to get its products'}
{intl l='Select a product and click (+) to add it as an accessory'}
{intl l="No available product in this category"}
{/ifloop} {elseloop rel="categories"}
{intl l="No categories found"}
{/elseloop}
{module_include location='product_accessories_table_header'} {loop name="assigned_accessories" order="accessory" type="accessory" product="$product_id" backend_context="1" lang="$edit_language_id"} {module_include location='product_accessories_table_row'} {/loop} {elseloop rel="assigned_accessories"} {/elseloop}
{intl l='ID'} {intl l='Accessory title'} {intl l='Position'}{intl l="Actions"}
{$ID} {$TITLE} {admin_position_block permission="admin.products.edit" path={url path='/admin/products/update-accessory-position' product_id=$ID} url_parameter="accessory_id" in_place_edit_class="accessoryPositionChange" position=$POSITION id=$ID }
{loop type="auth" name="can_create" roles="ADMIN" permissions="admin.configuration.product.accessory.delete"} {/loop}
{intl l="This product contains no accessories"}
{* -- End accessories management -------- *}
{/loop}
{* Delete related content confirmation dialog *} {capture "delete_content_dialog"} {/capture} {include file = "includes/generic-confirm-dialog.html" dialog_id = "delete_content_dialog" dialog_title = {intl l="Remove related content"} dialog_message = {intl l="Do you really want to remove this related content from the product ?"} form_action = {url path='/admin/products/related-content/delete'} form_content = {$smarty.capture.delete_content_dialog nofilter} } {* Delete accessory confirmation dialog *} {capture "delete_accessory_dialog"} {/capture} {include file = "includes/generic-confirm-dialog.html" dialog_id = "delete_accessory_dialog" dialog_title = {intl l="Remove an accessory"} dialog_message = {intl l="Do you really want to remove this accessory from the product ?"} form_action = {url path='/admin/products/accessory/delete'} form_content = {$smarty.capture.delete_accessory_dialog nofilter} } {/block} {block name="javascript-initialization"} {javascripts file='assets/js/bootstrap-editable/bootstrap-editable.js'} {/javascripts} {/block}