{* 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 ------------------------------ *}

{intl l='Related content'}

{intl l='You can attach here some content to this product'}

{ifloop rel="folders"}
{intl l='Select a folder to get its content'}
{intl l='Select a content and click (+) to add it to this product'}
{intl l="No available content in this folder"}
{/ifloop} {elseloop rel="folders"}
{intl l="No folders found"}
{/elseloop}

{intl l='ID'} | {intl l='Content title'} | {intl l='Position'} {hook name="product.contents-table-header" location="product_contents_table_header" } | {intl l="Actions"}
--- | --- | --- | ---
{loop name="assigned_contents" type="associated_content" visible="*" product="$product_id" backend_context="1" lang="$edit_language_id"}
{$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 } {hook name="product.contents-table-row" location="product_contents_table_row-bottom" } | {loop type="auth" name="can_create" role="ADMIN" resources="admin.product" access="UPDATE"} {/loop}
{/loop} {elseloop rel="assigned_contents"}
{intl l="This product contains no contents"}
{/elseloop}

{* -- 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}

{intl l='ID'} | {intl l='Accessory title'} | {intl l='Position'} {hook name="product.accessories-table-header" location="product_accessories_table_header-bottom" } | {intl l="Actions"}
--- | --- | --- | ---
{loop name="assigned_accessories" order="accessory" visible="*" type="accessory" product="$product_id" backend_context="1" lang="$edit_language_id" return_url=false}
{$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 } {hook name="product.accessories-table-row" location="product_accessories_table_row-bottom" } | {loop type="auth" name="can_create" role="ADMIN" resources="admin.product" access="UPDATE"} {/loop}
{/loop} {elseloop rel="assigned_accessories"}
{intl l="This product contains no accessories"}
{/elseloop}

{* -- End accessories management ------------------------------------ *}
{* -- Begin categories management ----------------------------------- *}

{intl l='Additional categories'}

{intl l='A product could be attached to more than one category. Select here the additional categories for this product.'} {loop name="default_category" visible="*" type="category" id=$DEFAULT_CATEGORY return_url=false} {intl l='You can change the default category (%title) in the "General" tab.' title={$TITLE}} {/loop} {$exclude_from_tree = "-1"} {loop name="additional_categories" type="category" product=$product_id visible="*" exclude=$DEFAULT_CATEGORY backend_context="1" lang="$edit_language_id" return_url=false} {$exclude_from_tree = "$exclude_from_tree,$ID"} {/loop} {ifloop rel="categories"}

{intl l='Select a category and click (+) to add it to the additional category list'} {/ifloop} {elseloop rel="categories"}
{intl l="No categories found"}
{/elseloop}

{intl l='ID'} | {intl l='Category title'} {hook name="product.categories-table-header" location="product_categories_table_header" } | {intl l="Actions"}
--- | --- | ---
{loop name="additional_categories" type="category" visible="*" product=$product_id exclude=$DEFAULT_CATEGORY backend_context="1" lang="$edit_language_id" return_url=false}
{$ID} | {$TITLE} {hook name="product.categories-table-row" location="product_categories_table_row" } | {loop type="auth" name="can_delete" role="ADMIN" resources="admin.product" access="UPDATE"} {/loop}
{/loop} {elseloop rel="additional_categories"}
{intl l="This product doesn't belong to any additional category."}
{/elseloop}

{* -- 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}