Merge branch '6.0'
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / acp / templates / languageList.tpl
... / ...
CommitLineData
1{include file='header' pageTitle='wcf.acp.language.list'}
2
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>
6 </div>
7
8 <nav class="contentHeaderNavigation">
9 <ul>
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>
12
13 {event name='contentHeaderNavigation'}
14 </ul>
15 </nav>
16</header>
17
18{hascontent}
19 <div class="paginationTop">
20 {content}{pages print=true assign=pagesLinks controller='LanguageList' link="pageNo=%d&sortField=$sortField&sortOrder=$sortOrder"}{/content}
21 </div>
22{/hascontent}
23
24{if $objects|count}
25 <div id="userTableContainer" class="section tabularBox">
26 <table class="table jsObjectActionContainer" data-object-action-class-name="wcf\data\language\LanguageAction">
27 <thead>
28 <tr>
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>
34
35 {event name='columnHeads'}
36 </tr>
37 </thead>
38
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>
44
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'}
49 </button>
50 {else}
51 <span class="disabled" title="{lang}wcf.global.button.{if $language->isDisabled}enable{else}disable{/if}{/lang}">
52 {if $language->isDisabled}
53 {icon name='square'}
54 {else}
55 {icon name='square-check'}
56 {/if}
57 </span>
58 <span class="disabled" title="{lang}wcf.acp.language.setAsDefault{/lang}">
59 {icon name='circle-check'}
60 </span>
61 {/if}
62
63 <a href="{link controller='LanguageEdit' id=$language->languageID}{/link}" title="{lang}wcf.global.button.edit{/lang}" class="jsTooltip">{icon name='pencil'}</a>
64
65 {if $language->isDeletable()}
66 {objectAction action="delete" objectTitle=$language->languageName}
67 {else}
68 <span class="disabled" title="{lang}wcf.global.button.delete{/lang}">
69 {icon name='xmark'}
70 </span>
71 {/if}
72
73 {event name='rowButtons'}
74 </td>
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>
80
81 {event name='columns'}
82 </tr>
83 {/foreach}
84 </tbody>
85 </table>
86 </div>
87
88 <footer class="contentFooter">
89 {hascontent}
90 <div class="paginationBottom">
91 {content}{@$pagesLinks}{/content}
92 </div>
93 {/hascontent}
94
95 <nav class="contentFooterNavigation">
96 <ul>
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>
99
100 {event name='contentFooterNavigation'}
101 </ul>
102 </nav>
103 </footer>
104{/if}
105
106{include file='footer'}