{extends file="admin-layout.tpl"} {block name="no-return-functions"} {$admin_current_location = 'configuration'} {/block} {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"}
{hook name="languages.top" location="languages_top" } {if $error_message|default:null}
{$error_message}
{/if}
{loop type="lang" name="lang.list" backend_context="1" active="*"} {/loop}
{intl l="Languages management"} {include file='renderer/buttons.html' btn_group=false buttons=[ [ 'type' => 'create', 'class' => 'action-btn', 'title' => {intl l='Add a new language'}, 'href' => '#creation_dialog', 'auth' => ['resource' => 'admin.configuration.language'], 'data' => [ 'toggle' => 'modal' ] ] ]}
{intl l="ID"} {intl l="Language name"} {intl l="ISO 639 Code"} {intl l="Locale"} {intl l="Visible in front"} {intl l="Active"} {intl l="Default"} {intl l="Actions"}
{$ID} {$CODE} {$TITLE} {$CODE} {$LOCALE}
{$buttons = [ [ 'type' => 'edit', 'class' => 'lang-change no-follow-link', 'title' => {intl l='Change this language'}, 'auth' => ['resource' => 'admin.configuration.language'], 'data' => [ 'id' => $ID ] ] ]} {if !$IS_DEFAULT} {$buttons[] = [ 'type' => 'delete', 'class' => 'lang-delete', 'title' => {intl l="Delete this language"}, 'href' => '#delete_dialog', 'data' => [ 'id' => $ID, 'toggle' => 'modal' ], 'auth' => ['resource' => 'admin.configuration.language'] ]} {/if} {include file='renderer/buttons.html' buttons=$buttons}
{intl l="Parameters"}
{form name="thelia.lang.defaultBehavior"}
{form_hidden_fields} {form_field field="behavior"}
{/form_field}
{/form}
{intl l="Using a domain or subdomain for each language"}
{form name="thelia.lang.url"}
{form_hidden_fields} {form_tagged_fields tag='url'} {if $attr_list.url_id} {/if} {/form_tagged_fields}
{$attr_list.url_title}
{if $one_domain_per_lang == 0} {intl l="activate"} {else} {intl l="deactivate"} {/if}
{/form}
{hook name="languages.bottom" location="languages_bottom" }
{form name="thelia.lang.create"} {* Capture the dialog body, to pass it to the generic dialog *} {capture "creation_dialog"} {form_hidden_fields} {form_field field='title'}
{/form_field} {form_field field='code'}
{intl l='Check the list of ISO 639-1 codes'}
{/form_field} {form_field field='locale'}
{/form_field} {form_field field='date_time_format'}
{intl l='The syntax used is identical to the PHP date() function'}
{/form_field} {form_field field='date_format'}
{intl l='The syntax used is identical to the PHP date() function'}
{/form_field} {form_field field='time_format'}
{intl l='The syntax used is identical to the PHP date() function'}
{/form_field} {form_field field='decimal_separator'}
{intl l='Sets the separator for the decimal point'}
{/form_field} {form_field field='thousands_separator'}
{intl l='Sets the thousands separator.'}
{/form_field} {form_field field='decimals'}
{intl l='Decimal places'}
{/form_field} {hook name="language.create-form" 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/add'} form_enctype = {form_enctype} form_error_message = $form_error_message } {/form} {* Delete confirmation dialog *} {capture "delete_dialog"} {hook name="languages.delete-form" 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 = {token_url path='/admin/configuration/languages/delete'} form_content = {$smarty.capture.delete_dialog nofilter} form_error_message = $error_delete_message|default:null }
{/block} {block name="javascript-initialization"} {javascripts file='assets/js/bootstrap-switch/bootstrap-switch.js'} {/javascripts} {javascripts file='assets/js/bootstrap-select/bootstrap-select.js'} {/javascripts} {/block} {block name="javascript-last-call"} {hook name="languages.js" location="languages-js" } {/block}