{extends file="admin-layout.tpl"} {block name="page-title"}{intl l='Thelia Languages'}{/block} {block name="check-resource"}admin.configuration.language{/block} {block name="check-access"}view{/block} {block name="main-content"}
{module_include location='languages_top'}
{intl l="Languages management"} {loop type="auth" name="can_create" role="ADMIN" resource="admin.configuration.language" access="CREATE"} {/loop}
{intl l="Language name"} {intl l="ISO 639 Code"} {intl l="Default"} {intl l="Actions"}
{intl l="Parameters"}
{intl l="Association language/URL"}
{intl l="France"}
{intl l="English"}
{intl l="Spanish"}
{module_include location='languages_bottom'}
{form name="thelia.admin.language.creation"} {* Capture the dialog body, to pass it to the generic dialog *} {capture "creation_dialog"} {form_hidden_fields form=$form} {* Be sure to get the language_id, even if the form could not be validated *} {form_field form=$form field='success_url'} {* on success, redirect to the edition page, _ID_ is replaced with the created object ID, see controller *} {/form_field} {form_field form=$form field='title'}
{/form_field} {form_field form=$form field='isocode'}
{/form_field} {module_include location='language_create_form'} {/capture} {include file = "includes/generic-create-dialog.html" dialog_id = "creation_dialog" dialog_title = {intl l="Create a new language"} dialog_body = {$smarty.capture.creation_dialog nofilter} dialog_ok_label = {intl l="Create this language"} form_action = {url path='/admin/configuration/languages/create'} form_enctype = {form_enctype form=$form} form_error_message = $form_error_message } {/form} {* Delete confirmation dialog *} {capture "delete_dialog"} {module_include location='languages_delete_form'} {/capture} {include file = "includes/generic-confirm-dialog.html" dialog_id = "delete_dialog" dialog_title = {intl l="Delete language"} dialog_message = {intl l="Do you really want to delete this language ?"} form_action = {url path='/admin/configuration/languages/delete'} form_content = {$smarty.capture.delete_dialog nofilter} } {/block} {block name="javascript-initialization"} {javascripts file='assets/js/bootstrap-switch/bootstrap-switch.js'} {/javascripts} {javascripts file='assets/js/main.js'} {/javascripts} {javascripts file='assets/js/bootstrap-select/bootstrap-select.js'} {/javascripts} {/block}