{extends file="admin-layout.tpl"} {block name="check-resource"}admin.keyword{/block} {block name="check-access"}view{/block} {block name="page-title"}{intl l='View keyword group associations' d='keyword'}{/block} {block name="main-content"}
{loop name="keyword" type="keyword_group" visible="*" id="$keyword_group_id"}
{intl l='View keyword group "%title" associations' title=$TITLE d='keyword'}
{if $HAS_PREVIOUS != 0} {else} {/if} {if $HAS_NEXT != 0} {else} {/if}
{ifloop rel="keyword_list"} {loop name="keyword_list" type="keyword" visible="*" order="manual" backend_context="1" lang=$lang_id keyword_group="$ID"} {/loop} {/ifloop} {elseloop rel="keyword_list"} {/elseloop}
{intl l="Keywords" d='keyword'} {loop type="auth" name="can_create" role="ADMIN" resource="admin.keyword" access="CREATE"} {/loop}
{intl l='ID'} {intl l='Title'} {intl l='Unique identifier' d='keyword'} {intl l='Visible'} {intl l='Position'} {intl l='Actions'}
{$ID} {$TITLE} {$CODE} {loop type="auth" name="can_change" role="ADMIN" resource="admin.keyword" access="UPDATE"}
{/loop} {elseloop rel="can_change"}
{/elseloop}
{admin_position_block resource="admin.keyword" access="update" path={url path='admin/module/Keyword/update-position' keyword_id=$ID keyword_group_id=$keyword_group_id noamp=1} url_parameter="keyword_id" in_place_edit_class="keywordPositionChange" position=$POSITION id=$ID }
{loop type="auth" name="can_change" role="ADMIN" resource="admin.keyword" access="UPDATE"} {/loop} {loop type="auth" name="can_delete" role="ADMIN" resource="admin.keyword" access="DELETE"} {/loop}
{loop type="auth" name="can_create" role="ADMIN" resource="admin.keyword" access="CREATE"} {intl l="There is no keywords. To create a new one, click the + button above." d='keyword'} {/loop} {elseloop rel="can_create"} {intl l="There is no keywords." d='keyword'} {/elseloop}
{/loop}
{* -- Adding a new keyword -------------------------------------------------- *} {form name="keyword.admin.creation"} {* Capture the dialog body, to pass it to the generic dialog *} {capture "keyword_creation_dialog"} {form_hidden_fields form=$form} {form_field form=$form field='success_url'} {/form_field} {form_field form=$form field='keyword_group_id'} {/form_field} {form_field form=$form field='title'}
{loop type="lang" name="default-lang" default_only="1"}
$TITLE
{intl l='Enter here the keyword name in the default language (%title)' title="$TITLE" d='keyword'}
{* Switch edition to the current locale *} {form_field form=$form field='locale'} {/form_field} {/loop}
{/form_field} {form_field form=$form field='code'}
{intl l='Enter here the unique identifier of the keyword which must be use into your loops' d='keyword'}
{/form_field} {form_field form=$form field='visible'}
{/form_field} {/capture} {include file = "includes/generic-create-dialog.html" dialog_id = "keyword_creation_dialog" dialog_title = {intl l="Create a new keyword" d='keyword'} dialog_body = {$smarty.capture.keyword_creation_dialog nofilter} dialog_ok_label = {intl l="Save"} form_action = {url path='/admin/module/Keyword/create'} form_enctype = {form_enctype form=$form} form_error_message = $form_error_message } {/form} {* -- Delete keyword confirmation dialog ----------------------------------- *} {capture "keyword_delete_dialog"} {/capture} {include file = "includes/generic-confirm-dialog.html" dialog_id = "keyword_delete_dialog" dialog_title = {intl l="Delete keyword" d='keyword'} dialog_message = {intl l="Do you really want to delete this keyword and all its associations ?" d='keyword'} form_action = {token_url path='/admin/module/Keyword/delete'} form_content = {$smarty.capture.keyword_delete_dialog nofilter} } {/block} {block name="javascript-initialization"} {javascripts file='assets/js/bootstrap-switch/bootstrap-switch.js'} {/javascripts} {javascripts file='assets/js/bootstrap-editable/bootstrap-editable.js'} {/javascripts} {/block}