b4271edf04d435e3eb6fccb29b2256241a62d806
[Packages/TYPO3.CMS.git] / typo3 / sysext / beuser / Resources / Private / Templates / BackendUser / Index.html
1 {namespace bu = TYPO3\CMS\Beuser\ViewHelpers}
2
3 <f:layout name="Default" />
4
5 <f:section name="iconButtons">
6 <a href="#" onclick="window.location.href='alt_doc.php?returnUrl='+T3_THIS_LOCATION+'&edit[be_users][0]=new'; return false;"><bu:spriteManagerIcon iconName="actions-document-new" /></a>
7 </f:section>
8
9 <f:section name="content">
10 <f:comment>
11 Listing of users on compare list
12 </f:comment>
13
14 <f:if condition="{compareUserList}">
15 <bu:Section title="Compare" collapsible="TRUE">
16 <ul id="compareUsers">
17 <f:for each="{compareUserList}" as="compareUser">
18 <li>
19 <f:link.action
20 action="removeFromCompareList"
21 arguments="{uid: compareUser.uid}"
22 ><bu:SpriteManagerIcon iconName="actions-selection-delete" /></f:link.action>
23
24 <a href="#" onClick="showClickmenu('be_users', '{compareUser.uid}', '1', '', '', ''); return false;" title="id={compareUser.uid}">
25 <bu:spriteIconForRecord table="be_users" object="{compareUser}" />
26 </a>
27
28 {compareUser.userName}
29 </li>
30 </f:for>
31 </ul>
32
33 <f:form action="compare">
34 <f:form.submit value="Compare user list" />
35 </f:form>
36
37 </bu:Section>
38 </f:if>
39
40 <f:comment>
41 Filter section
42 </f:comment>
43
44 <f:render partial="Filters/BackendUser/Index" arguments="{demand: demand, backendUserGroups: backendUserGroups}" />
45
46 <f:comment>
47 Listing of all users
48 </f:comment>
49
50 <h3><f:translate key="backendUserListing">Backend User Listing</f:translate></h3>
51
52 <f:if condition="<f:count subject='{backendUsers}' /> > 50">
53 <f:then>
54 <f:be.widget.paginate objects="{backendUsers}" as="paginatedBackendUsers" configuration="{itemsPerPage: 50, insertAbove: 1, insertBelow: 1}">
55 <table border="0" cellpadding="0" cellspacing="0" class="typo3-dblist">
56 <tr class="t3-row-header">
57 <td></td>
58 <td><f:translate key="userName">Username</f:translate></td>
59 <td><f:translate key="realName">Real name</f:translate></td>
60 <td>&nbsp;</td>
61 <td>&nbsp;</td>
62 <td><f:translate key="lastLogin">Last login</f:translate></td>
63 </tr>
64 <f:for each="{paginatedBackendUsers}" as="backendUser">
65 <f:render partial="BackendUser/IndexListRow" arguments="{demand: demand, backendUser: backendUser, dateFormat: dateFormat, timeFormat: timeFormat, returnUrl: returnUrl}" />
66 </f:for>
67 <f:comment>
68 Footer row: no officially defined style yet
69 </f:comment>
70 <tr>
71 <td colspan="6">
72 <f:count subject="{backendUsers}" /> Users
73 </td>
74 </tr>
75 </table>
76 </f:be.widget.paginate>
77 </f:then>
78 <f:else>
79 <table border="0" cellpadding="0" cellspacing="0" class="typo3-dblist">
80 <tr class="t3-row-header">
81 <td></td>
82 <td><f:translate key="userName">Username</f:translate></td>
83 <td><f:translate key="realName">Real name</f:translate></td>
84 <td>&nbsp;</td>
85 <td>&nbsp;</td>
86 <td><f:translate key="lastLogin">Last login</f:translate></td>
87 </tr>
88 <f:for each="{backendUsers}" as="backendUser">
89 <f:render partial="BackendUser/IndexListRow" arguments="{demand: demand, backendUser: backendUser, dateFormat: dateFormat, timeFormat: timeFormat, returnUrl: returnUrl}" />
90 </f:for>
91 <f:comment>
92 Footer row: no officially defined style yet
93 </f:comment>
94 <tr>
95 <td colspan="6">
96 <f:count subject="{backendUsers}" /> Users
97 </td>
98 </tr>
99 </table>
100 </f:else>
101 </f:if>
102 </f:section>