[TASK] Use actions-remove to remove items from list
[Packages/TYPO3.CMS.git] / typo3 / sysext / beuser / Resources / Private / Templates / BackendUser / Index.html
1 {namespace be = TYPO3\CMS\Backend\ViewHelpers}
2 {namespace bu = TYPO3\CMS\Beuser\ViewHelpers}
3
4 <f:layout name="Default" />
5
6 <f:section name="headline">
7 <h1><f:translate key="backendUserListing" /></h1>
8 </f:section>
9
10 <f:section name="content">
11
12 <f:comment>
13 Listing of users on compare list
14 </f:comment>
15 <f:if condition="{compareUserList}">
16 <h3>{f:translate(key: 'section.compare', default: 'Compare')}</h3>
17 <div class="table-fit">
18 <table id="typo3-backend-user-list-compare" class="table table-hover">
19 <tbody>
20 <f:for each="{compareUserList}" as="compareUser">
21 <tr>
22 <td>
23 <a href="#" class="t3js-contextmenutrigger" data-table="be_users" data-uid="{compareUser.uid}" title="id={compareUser.uid}">
24 <be:avatar backendUser="{compareUser.uid}" showIcon="TRUE" />
25 </a>
26 </td>
27 <td class="col-title">
28 {compareUser.userName}
29 </td>
30 <td>
31 <f:link.action action="removeFromCompareList" arguments="{uid: compareUser.uid}" class="pull-right btn btn-default">
32 <core:icon identifier="actions-remove" />
33 </f:link.action>
34 </td>
35 </tr>
36 </f:for>
37 </tbody>
38 </table>
39 </div>
40 <f:form action="compare">
41 <f:form.submit value="{f:translate(key: 'compareUserList', default: 'Compare user list')}" class="btn btn-default" />
42 </f:form>
43 <hr>
44 </f:if>
45
46 <f:comment>
47 Filter section
48 </f:comment>
49 <f:render partial="Filters/BackendUser/Index" arguments="{demand: demand, backendUserGroups: backendUserGroups}" />
50
51 <f:comment>
52 Listing of all users
53 </f:comment>
54 <f:be.widget.paginate objects="{backendUsers}" as="paginatedBackendUsers" configuration="{itemsPerPage: 50, insertBelow: 1}">
55 <div class="table-fit">
56 <table id="typo3-backend-user-list" class="table table-striped table-hover">
57 <thead>
58 <tr>
59 <th></th>
60 <th class="col-title"><f:translate key="userName" /> / <f:translate key="realName" /></th>
61 <th><f:translate key="lastLogin" /></th>
62 <th class="col-control"></th>
63 </tr>
64 </thead>
65 <tbody>
66 <f:for each="{paginatedBackendUsers}" as="backendUser">
67 <f:render partial="BackendUser/IndexListRow" arguments="{demand: demand, backendUser: backendUser, onlineBackendUsers: onlineBackendUsers, dateFormat: dateFormat, timeFormat: timeFormat, returnUrl: returnUrl, compareUserUidList: compareUserUidList}" />
68 </f:for>
69 <f:comment>
70 Footer row: no officially defined style yet
71 </f:comment>
72 </tbody>
73 <tfoot>
74 <tr>
75 <td colspan="5">
76 <f:count subject="{backendUsers}" /> <f:translate key="users" />
77 </td>
78 </tr>
79 </tfoot>
80 </table>
81 </div>
82 </f:be.widget.paginate>
83
84 </f:section>