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