{* Set the default translation domain, that will be used by {intl} when the 'd' parameter is not set *} {default_translation_domain domain='bo.default'} {loop name="product_edit" type="product" visible="*" id=$product_id backend_context="1" lang=$edit_language_id}
{include file = "includes/inner-form-toolbar.html" hide_submit_buttons = true page_url = "{url path='/admin/products/update' product_id=$ID}" close_url = "{url path='/admin/categories' category_id=$DEFAULT_CATEGORY}" }
{* -- Begin related content management ------------------------------ *}
{hook name="product.contents-table-header" location="product_contents_table_header" } {loop name="assigned_contents" type="associated_content" visible="*" product="$product_id" backend_context="1" lang="$edit_language_id"} {hook name="product.contents-table-row" location="product_contents_table_row-bottom" } {/loop} {elseloop rel="assigned_contents"} {/elseloop}
{intl l='ID'} {intl l='Content title'} {intl l='Position'}{intl l="Actions"}
{$CONTENT_ID} {$TITLE} {admin_position_block resource="admin.product" access="UPDATE" path={url path='/admin/product/update-content-position' product_id=$product_id current_tab="related"} url_parameter="content_id" in_place_edit_class="contentPositionChange" position=$POSITION id=$ID } {loop type="auth" name="can_create" role="ADMIN" resources="admin.product" access="UPDATE"} {/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}
{hook name="product.accessories-table-header" location="product_accessories_table_header-bottom" } {loop name="assigned_accessories" order="accessory" visible="*" type="accessory" product="$product_id" backend_context="1" lang="$edit_language_id" return_url=false} {hook name="product.accessories-table-row" location="product_accessories_table_row-bottom" } {/loop} {elseloop rel="assigned_accessories"} {/elseloop}
{intl l='ID'} {intl l='Accessory title'} {intl l='Position'}{intl l="Actions"}
{$ID} {$TITLE} {admin_position_block resource="admin.product" access="UPDATE" path={url path='/admin/product/update-accessory-position' product_id=$product_id current_tab="related"} url_parameter="accessory_id" in_place_edit_class="accessoryPositionChange" position=$POSITION id=$ID } {loop type="auth" name="can_create" role="ADMIN" resources="admin.product" access="UPDATE"} {/loop}
{intl l="This product contains no accessories"}
{* -- End accessories management ------------------------------------ *}
{* -- Begin categories management ----------------------------------- *}
{hook name="product.categories-table-header" location="product_categories_table_header" } {loop name="additional_categories" type="category" visible="*" product=$product_id exclude=$DEFAULT_CATEGORY backend_context="1" lang="$edit_language_id" return_url=false} {hook name="product.categories-table-row" location="product_categories_table_row" } {/loop} {elseloop rel="additional_categories"} {/elseloop}
{intl l='ID'} {intl l='Category title'}{intl l="Actions"}
{$ID} {$TITLE} {loop type="auth" name="can_delete" role="ADMIN" resources="admin.product" access="UPDATE"} {/loop}
{intl l="This product doesn't belong to any additional category."}
{* -- End categories management ------------------------------------- *}
{* 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 = {token_url path='/admin/products/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 = {token_url path='/admin/products/accessory/delete'} form_content = {$smarty.capture.delete_accessory_dialog nofilter} } {* Delete category confirmation dialog *} {capture "delete_category_dialog"} {/capture} {include file = "includes/generic-confirm-dialog.html" dialog_id = "delete_category_dialog" dialog_title = {intl l="Remove from category"} dialog_message = {intl l="Do you really want to remove the product from this category ?"} form_action = {token_url path='/admin/products/category/delete'} form_content = {$smarty.capture.delete_category_dialog nofilter} } {/loop}