|
2 | 2 |
|
3 | 3 | <header class="contentHeader"> |
4 | 4 | <div class="contentHeaderTitle"> |
5 | | - <h1 class="contentTitle">{lang}wcf.acp.group.list{/lang} <span class="badge badgeInverse">{#$items}</span></h1> |
| 5 | + <h1 class="contentTitle">{lang}wcf.acp.group.list{/lang} <span class="badge badgeInverse">{#$gridView->countRows()}</span></h1> |
6 | 6 | </div> |
7 | 7 |
|
8 | 8 | {hascontent} |
|
20 | 20 | {/hascontent} |
21 | 21 | </header> |
22 | 22 |
|
23 | | -{hascontent} |
24 | | - <div class="paginationTop"> |
25 | | - {content}{pages print=true assign=pagesLinks controller="UserGroupList" link="pageNo=%d&sortField=$sortField&sortOrder=$sortOrder"}{/content} |
26 | | - </div> |
27 | | -{/hascontent} |
28 | | - |
29 | | -<div class="section tabularBox"> |
30 | | - <table class="table jsObjectActionContainer" data-object-action-class-name="wcf\data\user\group\UserGroupAction"> |
31 | | - <thead> |
32 | | - <tr> |
33 | | - <th class="columnID columnGroupID{if $sortField == 'groupID'} active {@$sortOrder}{/if}" colspan="2"><a href="{link controller='UserGroupList'}pageNo={@$pageNo}&sortField=groupID&sortOrder={if $sortField == 'groupID' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.global.objectID{/lang}</a></th> |
34 | | - <th class="columnTitle columnGroupName{if $sortField == 'groupNameI18n'} active {@$sortOrder}{/if}"><a href="{link controller='UserGroupList'}pageNo={@$pageNo}&sortField=groupNameI18n&sortOrder={if $sortField == 'groupNameI18n' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.global.name{/lang}</a></th> |
35 | | - <th class="columnDigits columnMembers{if $sortField == 'members'} active {@$sortOrder}{/if}"><a href="{link controller='UserGroupList'}pageNo={@$pageNo}&sortField=members&sortOrder={if $sortField == 'members' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.acp.group.members{/lang}</a></th> |
36 | | - <th class="columnDigits columnPriority{if $sortField == 'priority'} active {@$sortOrder}{/if}"><a href="{link controller='UserGroupList'}pageNo={@$pageNo}&sortField=priority&sortOrder={if $sortField == 'priority' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.acp.group.priority{/lang}</a></th> |
37 | | - |
38 | | - {event name='columnHeads'} |
39 | | - </tr> |
40 | | - </thead> |
41 | | - |
42 | | - <tbody class="jsReloadPageWhenEmpty"> |
43 | | - {foreach from=$objects item=group} |
44 | | - <tr id="groupContainer{@$group->groupID}" class="jsUserGroupRow jsObjectActionObject" data-object-id="{@$group->getObjectID()}"> |
45 | | - <td class="columnIcon"> |
46 | | - {if $group->isEditable()} |
47 | | - <a href="{link controller='UserGroupEdit' id=$group->groupID}{/link}" title="{lang}wcf.global.button.edit{/lang}" class="jsTooltip">{icon name='pencil'}</a> |
48 | | - {else} |
49 | | - <span class="disabled" title="{lang}wcf.global.button.edit{/lang}"> |
50 | | - {icon name='pencil'} |
51 | | - </span> |
52 | | - {/if} |
53 | | - {if $group->isDeletable()} |
54 | | - {objectAction action="delete" objectTitle=$group->getTitle()} |
55 | | - {else} |
56 | | - <span class="disabled" title="{lang}wcf.global.button.delete{/lang}"> |
57 | | - {icon name='xmark'} |
58 | | - </span> |
59 | | - {/if} |
60 | | - |
61 | | - {event name='rowButtons'} |
62 | | - </td> |
63 | | - <td class="columnID columnGroupID">{@$group->groupID}</td> |
64 | | - <td class="columnTitle columnGroupName"> |
65 | | - {if $group->isEditable()} |
66 | | - <a title="{lang}wcf.acp.group.edit{/lang}" href="{link controller='UserGroupEdit' id=$group->groupID}{/link}">{$group->getTitle()}</a> |
67 | | - {else} |
68 | | - {$group->getTitle()} |
69 | | - {/if} |
70 | | - {if $group->isOwner()} |
71 | | - <span class="jsTooltip" title="{lang}wcf.acp.group.type.owner{/lang}"> |
72 | | - {icon name='shield-halved'} |
73 | | - </span> |
74 | | - {/if} |
75 | | - </td> |
76 | | - <td class="columnDigits columnMembers"> |
77 | | - {if $group->groupType == 1 ||$group->groupType == 2} |
78 | | - {* dont't show search links for the everybody and the guest user group *} |
79 | | - {#$group->members} |
80 | | - {else} |
81 | | - <a class="jsTooltip" title="{lang}wcf.acp.group.showMembers{/lang}" href="{link controller='UserSearch'}groupID={@$group->groupID}{/link}">{#$group->members}</a> |
82 | | - {/if} |
83 | | - </td> |
84 | | - <td class="columnDigits columnPriority">{#$group->priority}</td> |
85 | | - |
86 | | - {event name='columns'} |
87 | | - </tr> |
88 | | - {/foreach} |
89 | | - </tbody> |
90 | | - </table> |
| 23 | +<div class="section"> |
| 24 | + {unsafe:$gridView->render()} |
91 | 25 | </div> |
92 | 26 |
|
93 | | -<footer class="contentFooter"> |
94 | | - {hascontent} |
95 | | - <div class="paginationBottom"> |
96 | | - {content}{@$pagesLinks}{/content} |
97 | | - </div> |
98 | | - {/hascontent} |
99 | | - |
100 | | - {hascontent} |
101 | | - <nav class="contentFooterNavigation"> |
102 | | - <ul> |
103 | | - {content} |
104 | | - {if $__wcf->getSession()->getPermission('admin.user.canAddGroup')} |
105 | | - <li><a href="{link controller='UserGroupAdd'}{/link}" class="button">{icon name='plus'} <span>{lang}wcf.acp.group.add{/lang}</span></a></li> |
106 | | - {/if} |
107 | | - |
108 | | - {event name='contentFooterNavigation'} |
109 | | - {/content} |
110 | | - </ul> |
111 | | - </nav> |
112 | | - {/hascontent} |
113 | | -</footer> |
114 | | - |
115 | 27 | {include file='footer'} |
0 commit comments