|
1 | 1 | {include file='header' pageTitle='wcf.acp.paidSubscription.user.list'} |
2 | 2 |
|
3 | | -<script data-relocate="true"> |
4 | | - require(['WoltLabSuite/Core/Ui/User/Search/Input'], (UiUserSearchInput) => { |
5 | | - new UiUserSearchInput(document.getElementById('username')); |
6 | | - }); |
7 | | -</script> |
8 | | - |
9 | 3 | <header class="contentHeader"> |
10 | 4 | <div class="contentHeaderTitle"> |
11 | | - <h1 class="contentTitle">{lang}wcf.acp.paidSubscription.user.list{/lang}{if $items} <span class="badge badgeInverse">{#$items}</span>{/if}</h1> |
| 5 | + <h1 class="contentTitle">{lang}wcf.acp.paidSubscription.user.list{/lang} <span class="badge badgeInverse">{#$gridView->countRows()}</span></h1> |
12 | 6 | </div> |
13 | 7 |
|
14 | 8 | {hascontent} |
|
20 | 14 | {/hascontent} |
21 | 15 | </header> |
22 | 16 |
|
23 | | -<form method="post" action="{link controller='PaidSubscriptionUserList'}{/link}"> |
24 | | - <section class="section"> |
25 | | - <h2 class="sectionTitle">{lang}wcf.global.filter{/lang}</h2> |
26 | | - |
27 | | - <div class="row rowColGap formGrid"> |
28 | | - <dl class="col-xs-12 col-md-4"> |
29 | | - <dt></dt> |
30 | | - <dd> |
31 | | - <input type="text" id="username" name="username" value="{$username}" placeholder="{lang}wcf.user.username{/lang}" class="long"> |
32 | | - </dd> |
33 | | - </dl> |
34 | | - |
35 | | - {if $availableSubscriptions|count > 1} |
36 | | - <dl class="col-xs-12 col-md-4"> |
37 | | - <dt></dt> |
38 | | - <dd> |
39 | | - <select name="subscriptionID" id="subscriptionID"> |
40 | | - <option value="0">{lang}wcf.acp.paidSubscription.subscription{/lang}</option> |
41 | | - {foreach from=$availableSubscriptions item=availableSubscription} |
42 | | - <option value="{$availableSubscription->subscriptionID}"{if $availableSubscription->subscriptionID == $subscriptionID} selected{/if}>{$availableSubscription->getTitle()}</option> |
43 | | - {/foreach} |
44 | | - </select> |
45 | | - </dd> |
46 | | - </dl> |
47 | | - {/if} |
48 | | - |
49 | | - {event name='filterFields'} |
50 | | - </div> |
51 | | - |
52 | | - <div class="formSubmit"> |
53 | | - <input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s"> |
54 | | - {csrfToken} |
55 | | - </div> |
56 | | - </section> |
57 | | -</form> |
58 | | - |
59 | | -{assign var='linkParameters' value=''} |
60 | | -{if $username}{capture append=linkParameters}&username={@$username|rawurlencode}{/capture}{/if} |
61 | | -{if $subscriptionID}{capture append=linkParameters}&subscriptionID={@$subscriptionID}{/capture}{/if} |
62 | | - |
63 | | -{hascontent} |
64 | | - <div class="paginationTop"> |
65 | | - {content}{pages print=true assign=pagesLinks controller='PaidSubscriptionUserList' link="pageNo=%d&sortField=$sortField&sortOrder=$sortOrder$linkParameters"}{/content} |
66 | | - </div> |
67 | | -{/hascontent} |
68 | | - |
69 | | -{if $objects|count} |
70 | | - <div class="section tabularBox"> |
71 | | - <table class="table jsObjectActionContainer" data-object-action-class-name="wcf\data\paid\subscription\user\PaidSubscriptionUserAction" |
72 | | - <thead> |
73 | | - <tr> |
74 | | - <th class="columnID columnSubscriptionUserID{if $sortField == 'subscriptionUserID'} active {@$sortOrder}{/if}" colspan="2"><a href="{link controller='PaidSubscriptionUserList'}pageNo={@$pageNo}&sortField=subscriptionUserID&sortOrder={if $sortField == 'subscriptionUserID' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{@$linkParameters}{/link}">{lang}wcf.global.objectID{/lang}</a></th> |
75 | | - <th class="columnText columnUsername{if $sortField == 'username'} active {@$sortOrder}{/if}"><a href="{link controller='PaidSubscriptionUserList'}pageNo={@$pageNo}&sortField=username&sortOrder={if $sortField == 'username' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{@$linkParameters}{/link}">{lang}wcf.user.username{/lang}</a></th> |
76 | | - <th class="columnText columnSubscriptionTitle{if $sortField == 'subscriptionID'} active {@$sortOrder}{/if}"><a href="{link controller='PaidSubscriptionUserList'}pageNo={@$pageNo}&sortField=subscriptionID&sortOrder={if $sortField == 'subscriptionID' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{@$linkParameters}{/link}">{lang}wcf.acp.paidSubscription.subscription{/lang}</a></th> |
77 | | - <th class="columnDate columnEndDate{if $sortField == 'endDate'} active {@$sortOrder}{/if}"><a href="{link controller='PaidSubscriptionUserList'}pageNo={@$pageNo}&sortField=endDate&sortOrder={if $sortField == 'endDate' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{@$linkParameters}{/link}">{lang}wcf.acp.paidSubscription.user.endDate{/lang}</a></th> |
78 | | - |
79 | | - {event name='columnHeads'} |
80 | | - </tr> |
81 | | - </thead> |
82 | | - |
83 | | - <tbody class="jsReloadPageWhenEmpty"> |
84 | | - {foreach from=$objects item=subscriptionUser} |
85 | | - <tr class="jsPaidSubscriptionUserRow jsObjectActionObject" data-object-id="{@$subscriptionUser->getObjectID()}"> |
86 | | - <td class="columnIcon"> |
87 | | - {if $subscriptionUser->endDate} |
88 | | - <a href="{link controller='PaidSubscriptionUserEdit' id=$subscriptionUser->subscriptionUserID}{/link}" title="{lang}wcf.global.button.edit{/lang}" class="jsTooltip">{icon name='pencil'}</a> |
89 | | - {else} |
90 | | - <span class="disabled" title="{lang}wcf.global.button.edit{/lang}"> |
91 | | - {icon name='pencil'} |
92 | | - </span> |
93 | | - {/if} |
94 | | - {objectAction action="delete" confirmMessage='wcf.acp.paidSubscription.user.delete.confirmMessage'} |
95 | | - |
96 | | - {event name='itemButtons'} |
97 | | - </td> |
98 | | - <td class="columnID columnSubscriptionUserID">{@$subscriptionUser->subscriptionUserID}</td> |
99 | | - <td class="columnText columnUsername"><a href="{link controller='UserEdit' id=$subscriptionUser->userID}{/link}" title="{lang}wcf.acp.user.edit{/lang}">{$subscriptionUser->username}</a></td> |
100 | | - <td class="columnText columnSubscriptionTitle">{$subscriptionUser->title|phrase}</td> |
101 | | - <td class="columnDate columnEndDate">{if $subscriptionUser->endDate}{@$subscriptionUser->endDate|time}{/if}</td> |
102 | | - |
103 | | - {event name='columns'} |
104 | | - </tr> |
105 | | - {/foreach} |
106 | | - </tbody> |
107 | | - </table> |
108 | | - |
109 | | - </div> |
110 | | - |
111 | | - <footer class="contentFooter"> |
112 | | - {hascontent} |
113 | | - <div class="paginationBottom"> |
114 | | - {content}{@$pagesLinks}{/content} |
115 | | - </div> |
116 | | - {/hascontent} |
117 | | - |
118 | | - {hascontent} |
119 | | - <nav class="contentFooterNavigation"> |
120 | | - <ul> |
121 | | - {content}{event name='contentFooterNavigation'}{/content} |
122 | | - </ul> |
123 | | - </nav> |
124 | | - {/hascontent} |
125 | | - </footer> |
126 | | -{else} |
127 | | - <woltlab-core-notice type="info">{lang}wcf.global.noItems{/lang}</woltlab-core-notice> |
128 | | -{/if} |
| 17 | +<div class="section"> |
| 18 | + {unsafe:$gridView->render()} |
| 19 | +</div> |
129 | 20 |
|
130 | 21 | {include file='footer'} |
0 commit comments