|
2 | 2 |
|
3 | 3 | <header class="contentHeader"> |
4 | 4 | <div class="contentHeaderTitle"> |
5 | | - <h1 class="contentTitle">{lang}wcf.acp.template.group.list{/lang} <span class="badge badgeInverse">{#$items}</span></h1> |
| 5 | + <h1 class="contentTitle">{lang}wcf.acp.template.group.list{/lang} <span class="badge badgeInverse">{#$gridView->countRows()}</span></h1> |
6 | 6 | </div> |
7 | 7 |
|
8 | 8 | <nav class="contentHeaderNavigation"> |
|
14 | 14 | </nav> |
15 | 15 | </header> |
16 | 16 |
|
17 | | -{hascontent} |
18 | | - <div class="paginationTop"> |
19 | | - {content}{pages print=true assign=pagesLinks controller="TemplateGroupList" link="pageNo=%d&sortField=$sortField&sortOrder=$sortOrder"}{/content} |
20 | | - </div> |
21 | | -{/hascontent} |
22 | | - |
23 | | -{if $objects|count} |
24 | | - <div id="templateGroupTableContainer" class="section tabularBox"> |
25 | | - <table class="table jsObjectActionContainer" data-object-action-class-name="wcf\data\template\group\TemplateGroupAction"> |
26 | | - <thead> |
27 | | - <tr> |
28 | | - <th class="columnID columnTemplateGroupID{if $sortField == 'templateGroupID'} active {@$sortOrder}{/if}" colspan="2"><a href="{link controller='TemplateGroupList'}pageNo={@$pageNo}&sortField=templateGroupID&sortOrder={if $sortField == 'templateGroupID' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.global.objectID{/lang}</a></th> |
29 | | - <th class="columnTitle columnTemplateGroupName{if $sortField == 'templateGroupName'} active {@$sortOrder}{/if}"><a href="{link controller='TemplateGroupList'}pageNo={@$pageNo}&sortField=templateGroupName&sortOrder={if $sortField == 'templateGroupName' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.global.name{/lang}</a></th> |
30 | | - <th class="columnText columnTemplateGroupFolderName{if $sortField == 'templateGroupFolderName'} active {@$sortOrder}{/if}"><a href="{link controller='TemplateGroupList'}pageNo={@$pageNo}&sortField=templateGroupFolderName&sortOrder={if $sortField == 'templateGroupFolderName' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.acp.template.group.folderName{/lang}</a></th> |
31 | | - <th class="columnDigits columnTemplates{if $sortField == 'templates'} active {@$sortOrder}{/if}"><a href="{link controller='TemplateGroupList'}pageNo={@$pageNo}&sortField=templates&sortOrder={if $sortField == 'templates' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.acp.template.group.templates{/lang}</a></th> |
32 | | - <th class="columnDigits columnStyles{if $sortField == 'styles'} active {@$sortOrder}{/if}"><a href="{link controller='TemplateGroupList'}pageNo={@$pageNo}&sortField=styles&sortOrder={if $sortField == 'styles' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.acp.template.group.styles{/lang}</a></th> |
33 | | - |
34 | | - {event name='columnHeads'} |
35 | | - </tr> |
36 | | - </thead> |
37 | | - |
38 | | - <tbody class="jsReloadPageWhenEmpty"> |
39 | | - {foreach from=$objects item=templateGroup} |
40 | | - <tr class="jsTemplateGroupRow jsObjectActionObject" data-object-id="{@$templateGroup->getObjectID()}"> |
41 | | - <td class="columnIcon"> |
42 | | - {if $templateGroup->isImmutable()} |
43 | | - <span class="disabled" title="{lang}wcf.global.button.edit{/lang}"> |
44 | | - {icon name='pencil'} |
45 | | - </span> |
46 | | - {else} |
47 | | - <a href="{link controller='TemplateGroupEdit' id=$templateGroup->templateGroupID}{/link}" title="{lang}wcf.global.button.edit{/lang}" class="jsTooltip">{icon name='pencil'}</a> |
48 | | - {/if} |
49 | | - |
50 | | - <a href="{link controller='TemplateList' templateGroupID=$templateGroup->templateGroupID}{/link}" title="{lang}wcf.acp.template.list{/lang}" class="jsTooltip">{icon name='list'}</a> |
51 | | - |
52 | | - {if $templateGroup->isImmutable()} |
53 | | - <span class="disabled" title="{lang}wcf.global.button.delete{/lang}"> |
54 | | - {icon name='xmark'} |
55 | | - </span> |
56 | | - {else} |
57 | | - {objectAction action="delete" objectTitle=$templateGroup->getName()} |
58 | | - {/if} |
59 | | - |
60 | | - {event name='rowButtons'} |
61 | | - </td> |
62 | | - <td class="columnID">{@$templateGroup->templateGroupID}</td> |
63 | | - <td class="columnTitle columnTemplateGroupName"> |
64 | | - {if !$templateGroup->isImmutable()} |
65 | | - <a href="{link controller='TemplateGroupEdit' id=$templateGroup->templateGroupID}{/link}"> |
66 | | - {$templateGroup->getName()} |
67 | | - </a> |
68 | | - {else} |
69 | | - {$templateGroup->getName()} |
70 | | - {/if} |
71 | | - </td> |
72 | | - <td class="columnText columnTemplateGroupFolderName">{$templateGroup->templateGroupFolderName}</td> |
73 | | - <td class="columnDigits columnTemplates">{#$templateGroup->templates}</td> |
74 | | - <td class="columnDigits columnStyles">{#$templateGroup->styles}</td> |
75 | | - |
76 | | - {event name='columns'} |
77 | | - </tr> |
78 | | - {/foreach} |
79 | | - </tbody> |
80 | | - </table> |
81 | | - |
82 | | - </div> |
83 | | - |
84 | | - <footer class="contentFooter"> |
85 | | - {hascontent} |
86 | | - <div class="paginationBottom"> |
87 | | - {content}{@$pagesLinks}{/content} |
88 | | - </div> |
89 | | - {/hascontent} |
90 | | - |
91 | | - <nav class="contentFooterNavigation"> |
92 | | - <ul> |
93 | | - <li><a href="{link controller='TemplateGroupAdd'}{/link}" class="button">{icon name='plus'} <span>{lang}wcf.acp.template.group.add{/lang}</span></a></li> |
94 | | - |
95 | | - {event name='contentFooterNavigation'} |
96 | | - </ul> |
97 | | - </nav> |
98 | | - </footer> |
99 | | -{else} |
100 | | - <woltlab-core-notice type="info">{lang}wcf.global.noItems{/lang}</woltlab-core-notice> |
101 | | -{/if} |
| 17 | +<div class="section"> |
| 18 | + {unsafe:$gridView->render()} |
| 19 | +</div> |
102 | 20 |
|
103 | 21 | {include file='footer'} |
0 commit comments