1 {include file='header' pageTitle='wcf.acp.language.list'}
3 <header class="contentHeader">
4 <div class="contentHeaderTitle">
5 <h1 class="contentTitle">{lang}wcf.acp.language.list{/lang} <span class="badge badgeInverse">{#$items}</span></h1>
8 <nav class="contentHeaderNavigation">
10 <li><a href="{link controller='LanguageAdd'}{/link}" class="button">{icon name='plus'} <span>{lang}wcf.acp.language.add{/lang}</span></a></li>
11 <li><a href="{link controller='LanguageImport'}{/link}" class="button">{icon name='upload'} <span>{lang}wcf.acp.language.import{/lang}</span></a></li>
13 {event name='contentHeaderNavigation'}
19 <div class="paginationTop">
20 {content}{pages print=true assign=pagesLinks controller='LanguageList' link="pageNo=%d&sortField=$sortField&sortOrder=$sortOrder"}{/content}
25 <div id="userTableContainer" class="section tabularBox">
26 <table class="table jsObjectActionContainer" data-object-action-class-name="wcf\data\language\LanguageAction">
29 <th class="columnID columnLanguageID{if $sortField == 'languageID'} active {@$sortOrder}{/if}" colspan="2"><a href="{link controller='LanguageList'}pageNo={@$pageNo}&sortField=languageID&sortOrder={if $sortField == 'languageID' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.global.objectID{/lang}</a></th>
30 <th class="columnTitle columnLanguageName{if $sortField == 'languageName'} active {@$sortOrder}{/if}"><a href="{link controller='LanguageList'}pageNo={@$pageNo}&sortField=languageName&sortOrder={if $sortField == 'languageName' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.global.name{/lang}</a></th>
31 <th class="columnDigits columnUsers{if $sortField == 'users'} active {@$sortOrder}{/if}"><a href="{link controller='LanguageList'}pageNo={@$pageNo}&sortField=users&sortOrder={if $sortField == 'users' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.acp.language.users{/lang}</a></th>
32 <th class="columnDigits columnVariables{if $sortField == 'variables'} active {@$sortOrder}{/if}"><a href="{link controller='LanguageList'}pageNo={@$pageNo}&sortField=variables&sortOrder={if $sortField == 'variables' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.acp.language.variables{/lang}</a></th>
33 <th class="columnDigits columnCustomVariables{if $sortField == 'customVariables'} active {@$sortOrder}{/if}"><a href="{link controller='LanguageList'}pageNo={@$pageNo}&sortField=customVariables&sortOrder={if $sortField == 'customVariables' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.acp.language.customVariables{/lang}</a></th>
35 {event name='columnHeads'}
39 <tbody class="jsReloadPageWhenEmpty">
40 {foreach from=$objects item=language}
41 <tr class="jsLanguageRow jsObjectActionObject" data-object-id="{@$language->getObjectID()}">
42 <td class="columnIcon">
43 <a href="{link controller='LanguageExport' id=$language->languageID}{/link}" title="{lang}wcf.acp.language.export{/lang}" class="jsTooltip">{icon name='download'}</a>
45 {if !$language->isDefault}
46 {objectAction action="toggle" isDisabled=$language->isDisabled}
47 <button type="button" class="jsObjectAction jsTooltip" data-object-action="setAsDefault" data-object-action-success="reload" title="{lang}wcf.acp.language.setAsDefault{/lang}">
48 {icon name='circle-check'}
51 <span class="disabled" title="{lang}wcf.global.button.{if $language->isDisabled}enable{else}disable{/if}{/lang}">
52 {if $language->isDisabled}
55 {icon name='square-check'}
58 <span class="disabled" title="{lang}wcf.acp.language.setAsDefault{/lang}">
59 {icon name='circle-check'}
63 <a href="{link controller='LanguageEdit' id=$language->languageID}{/link}" title="{lang}wcf.global.button.edit{/lang}" class="jsTooltip">{icon name='pencil'}</a>
65 {if $language->isDeletable()}
66 {objectAction action="delete" objectTitle=$language->languageName}
68 <span class="disabled" title="{lang}wcf.global.button.delete{/lang}">
73 {event name='rowButtons'}
75 <td class="columnID columnLanguageID">{@$language->languageID}</td>
76 <td class="columnTitle columnLanguageName"><a href="{link controller='LanguageEdit' id=$language->languageID}{/link}">{$language->languageName} ({@$language->languageCode})</a></td>
77 <td class="columnDigits columnUsers">{#$language->users}</td>
78 <td class="columnDigits columnVariables"><a href="{link controller='LanguageItemList'}languageID={@$language->languageID}{/link}">{#$language->variables}</a></td>
79 <td class="columnDigits columnCustomVariables">{if $language->customVariables > 0}<a href="{link controller='LanguageItemList'}languageID={@$language->languageID}&hasCustomValue=1{/link}">{#$language->customVariables}</a>{else}{#$language->customVariables}{/if}</td>
81 {event name='columns'}
88 <footer class="contentFooter">
90 <div class="paginationBottom">
91 {content}{@$pagesLinks}{/content}
95 <nav class="contentFooterNavigation">
97 <li><a href="{link controller='LanguageAdd'}{/link}" class="button">{icon name='plus'} <span>{lang}wcf.acp.language.add{/lang}</span></a></li>
98 <li><a href="{link controller='LanguageImport'}{/link}" class="button">{icon name='upload'} <span>{lang}wcf.acp.language.import{/lang}</span></a></li>
100 {event name='contentFooterNavigation'}
106 {include file='footer'}