|
2 | 2 |
|
3 | 3 | <header class="contentHeader"> |
4 | 4 | <div class="contentHeaderTitle"> |
5 | | - <h1 class="contentTitle">{lang}wcf.acp.box.list{/lang}{if $items} <span class="badge badgeInverse">{#$items}</span>{/if}</h1> |
| 5 | + <h1 class="contentTitle">{lang}wcf.acp.box.list{/lang}</h1> |
6 | 6 | </div> |
7 | 7 |
|
8 | 8 | <nav class="contentHeaderNavigation"> |
|
19 | 19 | </nav> |
20 | 20 | </header> |
21 | 21 |
|
22 | | -<form method="post" action="{link controller='BoxList'}{/link}"> |
23 | | - <section class="section"> |
24 | | - <h2 class="sectionTitle">{lang}wcf.global.filter{/lang}</h2> |
25 | | - |
26 | | - <div class="row rowColGap formGrid"> |
27 | | - <dl class="col-xs-12 col-md-4"> |
28 | | - <dt></dt> |
29 | | - <dd> |
30 | | - <input type="text" id="name" name="name" value="{$name}" placeholder="{lang}wcf.global.name{/lang}" class="long"> |
31 | | - </dd> |
32 | | - </dl> |
33 | | - |
34 | | - <dl class="col-xs-12 col-md-4"> |
35 | | - <dt></dt> |
36 | | - <dd> |
37 | | - <input type="text" id="boxTitle" name="title" value="{$title}" placeholder="{lang}wcf.global.title{/lang}" class="long"> |
38 | | - </dd> |
39 | | - </dl> |
40 | | - |
41 | | - <dl class="col-xs-12 col-md-4"> |
42 | | - <dt></dt> |
43 | | - <dd> |
44 | | - <input type="text" id="boxContent" name="content" value="{$content}" placeholder="{lang}wcf.acp.box.content{/lang}" class="long"> |
45 | | - </dd> |
46 | | - </dl> |
47 | | - |
48 | | - <dl class="col-xs-12 col-md-4"> |
49 | | - <dt></dt> |
50 | | - <dd> |
51 | | - <select name="position" id="boxPosition"> |
52 | | - <option value="0">{lang}wcf.acp.box.position{/lang}</option> |
53 | | - {foreach from=$availablePositions item=availablePosition} |
54 | | - <option value="{$availablePosition}"{if $availablePosition == $position} selected{/if}>{lang}wcf.acp.box.position.{@$availablePosition}{/lang}</option> |
55 | | - {/foreach} |
56 | | - </select> |
57 | | - </dd> |
58 | | - </dl> |
59 | | - |
60 | | - <dl class="col-xs-12 col-md-4"> |
61 | | - <dt></dt> |
62 | | - <dd> |
63 | | - <select name="boxType" id="boxType"> |
64 | | - <option value="">{lang}wcf.acp.box.type{/lang}</option> |
65 | | - <option value="text"{if $boxType == 'text'} selected{/if}>{lang}wcf.acp.box.type.text{/lang}</option> |
66 | | - <option value="html"{if $boxType == 'html'} selected{/if}>{lang}wcf.acp.box.type.html{/lang}</option> |
67 | | - <option value="tpl"{if $boxType == 'tpl'} selected{/if}>{lang}wcf.acp.box.type.tpl{/lang}</option> |
68 | | - <option value="system"{if $boxType == 'system'} selected{/if}>{lang}wcf.acp.box.type.system{/lang}</option> |
69 | | - </select> |
70 | | - </dd> |
71 | | - </dl> |
72 | | - |
73 | | - <dl class="col-xs-12 col-md-4"> |
74 | | - <dt></dt> |
75 | | - <dd> |
76 | | - <label><input type="checkbox" name="originIsNotSystem" value="1"{if $originIsNotSystem} checked{/if}> {lang}wcf.acp.box.originIsNotSystem{/lang}</label> |
77 | | - </dd> |
78 | | - </dl> |
79 | | - |
80 | | - {event name='filterFields'} |
81 | | - </div> |
82 | | - |
83 | | - <div class="formSubmit"> |
84 | | - <input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s"> |
85 | | - {csrfToken} |
86 | | - </div> |
87 | | - </section> |
88 | | -</form> |
89 | | - |
90 | | -{hascontent} |
91 | | - <div class="paginationTop"> |
92 | | - {content} |
93 | | - {assign var='linkParameters' value=''} |
94 | | - {if $name}{capture append=linkParameters}&name={@$name|rawurlencode}{/capture}{/if} |
95 | | - {if $title}{capture append=linkParameters}&title={@$title|rawurlencode}{/capture}{/if} |
96 | | - {if $content}{capture append=linkParameters}&content={@$content|rawurlencode}{/capture}{/if} |
97 | | - {if $position}{capture append=linkParameters}&position={@$position}{/capture}{/if} |
98 | | - {if $boxType}{capture append=linkParameters}&boxType={@$boxType|rawurlencode}{/capture}{/if} |
99 | | - {if $originIsNotSystem}{capture append=linkParameters}&originIsNotSystem=1{/capture}{/if} |
100 | | - |
101 | | - {pages print=true assign=pagesLinks controller="BoxList" link="pageNo=%d&sortField=$sortField&sortOrder=$sortOrder$linkParameters"} |
102 | | - {/content} |
103 | | - </div> |
104 | | -{/hascontent} |
105 | | - |
106 | | -{if $objects|count} |
107 | | - <div class="section tabularBox"> |
108 | | - <table class="table jsObjectActionContainer" data-object-action-class-name="wcf\data\box\BoxAction"> |
109 | | - <thead> |
110 | | - <tr> |
111 | | - <th class="columnID columnBoxID{if $sortField == 'boxID'} active {@$sortOrder}{/if}" colspan="2"><a href="{link controller='BoxList'}pageNo={@$pageNo}&sortField=boxID&sortOrder={if $sortField == 'boxID' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{@$linkParameters}{/link}">{lang}wcf.global.objectID{/lang}</a></th> |
112 | | - <th class="columnTitle columnName{if $sortField == 'name'} active {@$sortOrder}{/if}"><a href="{link controller='BoxList'}pageNo={@$pageNo}&sortField=name&sortOrder={if $sortField == 'name' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{@$linkParameters}{/link}">{lang}wcf.global.name{/lang}</a></th> |
113 | | - <th class="columnText columnBoxType{if $sortField == 'boxType'} active {@$sortOrder}{/if}"><a href="{link controller='BoxList'}pageNo={@$pageNo}&sortField=boxType&sortOrder={if $sortField == 'boxType' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{@$linkParameters}{/link}">{lang}wcf.acp.box.type{/lang}</a></th> |
114 | | - <th class="columnText columnPosition{if $sortField == 'position'} active {@$sortOrder}{/if}"><a href="{link controller='BoxList'}pageNo={@$pageNo}&sortField=position&sortOrder={if $sortField == 'position' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{@$linkParameters}{/link}">{lang}wcf.acp.box.position{/lang}</a></th> |
115 | | - <th class="columnDigits columnShowOrder{if $sortField == 'showOrder'} active {@$sortOrder}{/if}"><a href="{link controller='BoxList'}pageNo={@$pageNo}&sortField=showOrder&sortOrder={if $sortField == 'showOrder' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{@$linkParameters}{/link}">{lang}wcf.global.showOrder{/lang}</a></th> |
116 | | - |
117 | | - {event name='columnHeads'} |
118 | | - </tr> |
119 | | - </thead> |
120 | | - |
121 | | - <tbody class="jsReloadPageWhenEmpty"> |
122 | | - {foreach from=$objects item=box} |
123 | | - <tr class="jsBoxRow jsObjectActionObject" data-object-id="{@$box->getObjectID()}"> |
124 | | - <td class="columnIcon"> |
125 | | - {objectAction action="toggle" isDisabled=$box->isDisabled} |
126 | | - <a href="{link controller='BoxEdit' id=$box->boxID}{/link}" title="{lang}wcf.global.button.edit{/lang}" class="jsTooltip">{icon name='pencil'}</a> |
127 | | - {if $box->canDelete()} |
128 | | - {objectAction action="delete" objectTitle=$box->name} |
129 | | - {else} |
130 | | - <span class="disabled" title="{lang}wcf.global.button.delete{/lang}"> |
131 | | - {icon name='xmark'} |
132 | | - </span> |
133 | | - {/if} |
134 | | - |
135 | | - {event name='rowButtons'} |
136 | | - </td> |
137 | | - <td class="columnID columnBoxID">{@$box->boxID}</td> |
138 | | - <td class="columnTitle columnName"><a href="{link controller='BoxEdit' id=$box->boxID}{/link}">{$box->name}</a></td> |
139 | | - <td class="columnText columnBoxType">{lang}wcf.acp.box.type.{@$box->boxType}{/lang}</td> |
140 | | - <td class="columnText columnPosition">{lang}wcf.acp.box.position.{@$box->position}{/lang}</td> |
141 | | - <td class="columnDigits columnShowOrder">{#$box->showOrder}</td> |
142 | | - |
143 | | - {event name='columns'} |
144 | | - </tr> |
145 | | - {/foreach} |
146 | | - </tbody> |
147 | | - </table> |
148 | | - </div> |
149 | | - |
150 | | - <footer class="contentFooter"> |
151 | | - {hascontent} |
152 | | - <div class="paginationBottom"> |
153 | | - {content}{@$pagesLinks}{/content} |
154 | | - </div> |
155 | | - {/hascontent} |
156 | | - |
157 | | - <nav class="contentFooterNavigation"> |
158 | | - <ul> |
159 | | - <li> |
160 | | - <button class="button jsButtonBoxAdd"> |
161 | | - {icon name='plus'} |
162 | | - <span>{lang}wcf.acp.box.add{/lang}</span> |
163 | | - </button> |
164 | | - </li> |
165 | | - |
166 | | - {event name='contentFooterNavigation'} |
167 | | - </ul> |
168 | | - </nav> |
169 | | - </footer> |
170 | | -{else} |
171 | | - <woltlab-core-notice type="info">{lang}wcf.global.noItems{/lang}</woltlab-core-notice> |
172 | | -{/if} |
| 22 | +<div class="section"> |
| 23 | + {unsafe:$gridView->render()} |
| 24 | +</div> |
173 | 25 |
|
174 | 26 | {include file='boxAddDialog'} |
175 | 27 |
|
|
0 commit comments