Commit | Line | Data |
---|---|---|
4b3d9dab | 1 | {include file='header' pageTitle='wcf.acp.label.group.list'} |
3b75466f | 2 | |
9543d9fe | 3 | <script data-relocate="true"> |
3b75466f MW |
4 | $(function() { |
5 | new WCF.Action.Delete('wcf\\data\\label\\group\\LabelGroupAction', '.jsLabelGroupRow'); | |
6 | ||
7 | var options = { }; | |
8 | {if $pages > 1} | |
9 | options.refreshPage = true; | |
10 | {if $pages == $pageNo} | |
11 | options.updatePageNumber = -1; | |
12 | {/if} | |
13 | {else} | |
6e0ea1f0 | 14 | options.emptyMessage = '{lang}wcf.global.noItems{/lang}'; |
3b75466f MW |
15 | {/if} |
16 | ||
17 | new WCF.Table.EmptyTableHandler($('#labelGroupTableContainer'), 'jsLabelGroupRow', options); | |
18 | }); | |
3b75466f MW |
19 | </script> |
20 | ||
95961bdf | 21 | <header class="contentHeader"> |
b5c94e9e | 22 | <div class="contentHeaderTitle"> |
0edfe081 | 23 | <h1 class="contentTitle">{lang}wcf.acp.label.group.list{/lang}{if $items} <span class="badge badgeInverse">{#$items}</span>{/if}</h1> |
b5c94e9e | 24 | </div> |
3b75466f | 25 | |
b5c94e9e | 26 | <nav class="contentHeaderNavigation"> |
3b75466f | 27 | <ul> |
f2b50825 | 28 | <li><a href="{link controller='LabelGroupAdd'}{/link}" class="button"><span class="icon icon16 fa-plus"></span> <span>{lang}wcf.acp.label.group.add{/lang}</span></a></li> |
4b3d9dab | 29 | |
b5c94e9e | 30 | {event name='contentHeaderNavigation'} |
3b75466f MW |
31 | </ul> |
32 | </nav> | |
b5c94e9e AE |
33 | </header> |
34 | ||
35 | {hascontent} | |
36 | <div class="paginationTop"> | |
37 | {content}{pages print=true assign=pagesLinks controller="LabelGroupList" link="pageNo=%d&sortField=$sortField&sortOrder=$sortOrder"}{/content} | |
38 | </div> | |
39 | {/hascontent} | |
3b75466f MW |
40 | |
41 | {if $objects|count} | |
95961bdf | 42 | <div id="labelGroupTableContainer" class="section tabularBox"> |
3b75466f MW |
43 | <table class="table"> |
44 | <thead> | |
45 | <tr> | |
46 | <th class="columnID columnLabelGroupID{if $sortField == 'groupID'} active {@$sortOrder}{/if}" colspan="2"><a href="{link controller='LabelGroupList'}pageNo={@$pageNo}&sortField=groupID&sortOrder={if $sortField == 'groupID' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.global.objectID{/lang}</a></th> | |
82bd1c5b | 47 | <th class="columnTitle columnGroupName{if $sortField == 'groupName'} active {@$sortOrder}{/if}"><a href="{link controller='LabelGroupList'}pageNo={@$pageNo}&sortField=groupName&sortOrder={if $sortField == 'groupName' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.global.title{/lang}</a></th> |
f3db386c | 48 | <th class="columnText columnGroupDescription{if $sortField == 'groupDescription'} active {@$sortOrder}{/if}"><a href="{link controller='LabelGroupList'}pageNo={@$pageNo}&sortField=groupDescription&sortOrder={if $sortField == 'groupDescription' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.global.description{/lang}</a></th> |
4fe327c5 | 49 | <th class="columnDigits columnShowOrder{if $sortField == 'showOrder'} active {@$sortOrder}{/if}"><a href="{link controller='LabelGroupList'}pageNo={@$pageNo}&sortField=showOrder&sortOrder={if $sortField == 'showOrder' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.global.showOrder{/lang}</a></th> |
3b75466f MW |
50 | |
51 | {event name='columnHeads'} | |
52 | </tr> | |
53 | </thead> | |
54 | ||
55 | <tbody> | |
56 | {foreach from=$objects item=group} | |
57 | <tr class="jsLabelGroupRow"> | |
58 | <td class="columnIcon"> | |
f2b50825 | 59 | <a href="{link controller='LabelGroupEdit' object=$group}{/link}" title="{lang}wcf.global.button.edit{/lang}" class="jsTooltip"><span class="icon icon16 fa-pencil"></span></a> |
23e43ac5 | 60 | <span class="icon icon16 fa-times jsDeleteButton jsTooltip pointer" title="{lang}wcf.global.button.delete{/lang}" data-object-id="{@$group->groupID}" data-confirm-message-html="{lang __encode=true}wcf.acp.label.group.delete.sure{/lang}"></span> |
3b75466f MW |
61 | |
62 | {event name='rowButtons'} | |
63 | </td> | |
64 | <td class="columnID">{@$group->groupID}</td> | |
e76c454b | 65 | <td class="columnTitle columnGroupName"><a href="{link controller='LabelGroupEdit' object=$group}{/link}">{$group}</a></td> |
f3db386c | 66 | <td class="columnText columnGroupDescription">{$group->groupDescription}</td> |
e76c454b | 67 | <td class="columnDigits columnShowOrder">{@$group->showOrder}</td> |
3b75466f MW |
68 | |
69 | {event name='columns'} | |
70 | </tr> | |
71 | {/foreach} | |
72 | </tbody> | |
73 | </table> | |
74 | </div> | |
75 | ||
b5c94e9e AE |
76 | <footer class="contentFooter"> |
77 | {hascontent} | |
78 | <div class="paginationBottom"> | |
79 | {content}{@$pagesLinks}{/content} | |
80 | </div> | |
81 | {/hascontent} | |
3b75466f | 82 | |
b5c94e9e | 83 | <nav class="contentFooterNavigation"> |
3b75466f | 84 | <ul> |
f2b50825 | 85 | <li><a href="{link controller='LabelGroupAdd'}{/link}" class="button"><span class="icon icon16 fa-plus"></span> <span>{lang}wcf.acp.label.group.add{/lang}</span></a></li> |
4b3d9dab | 86 | |
b5c94e9e | 87 | {event name='contentFooterNavigation'} |
3b75466f MW |
88 | </ul> |
89 | </nav> | |
b5c94e9e | 90 | </footer> |
3b75466f | 91 | {else} |
6e0ea1f0 | 92 | <p class="info">{lang}wcf.global.noItems{/lang}</p> |
3b75466f MW |
93 | {/if} |
94 | ||
95 | {include file='footer'} |