[FEATURE] Backend ViewHelpers for edit creation and editing
[Packages/TYPO3.CMS.git] / typo3 / sysext / beuser / Resources / Private / Templates / BackendUser / Compare.html
1 <html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
2 xmlns:core="http://typo3.org/ns/TYPO3/CMS/Core/ViewHelpers"
3 xmlns:be="http://typo3.org/ns/TYPO3/CMS/Backend/ViewHelpers"
4 xmlns:bu="http://typo3.org/ns/TYPO3/CMS/Beuser/ViewHelpers">
5
6 <f:layout name="Default" />
7
8 <f:section name="headline">
9 <h1><f:translate key="compareBackendUsers">Compare backend users</f:translate></h1>
10 </f:section>
11
12 <f:section name="content">
13 <div class="table-fit">
14 <table border="0" cellpadding="0" cellspacing="0" id="tx_beuser_compare" class="table table-striped table-bordered table-hover">
15 <thead>
16 <tr>
17 <th></th>
18 <f:for each="{compareUserList}" as="compareUser">
19 <th>
20 <a href="#" class="t3js-contextmenutrigger" data-table="be_users" data-uid="{compareUser.uid}" title="id={compareUser.uid}">
21 <be:avatar backendUser="{compareUser.uid}" showIcon="true" />
22 </a>
23 {compareUser.userName}
24 <be:link.editRecord class="btn btn-default pull-right" table="be_users" uid="{compareUser.uid}" returnUrl="{returnUrl}" title="edit">
25 <core:icon identifier="actions-open" />
26 </be:link.editRecord>
27 </th>
28 </f:for>
29 </tr>
30 </thead>
31 <tbody>
32 <tr>
33 <th><f:translate key="realName" /></th>
34 <f:for each="{compareUserList}" as="compareUser">
35 <td>{compareUser.realName}</td>
36 </f:for>
37 </tr>
38 <tr>
39 <th><f:translate key="email" /></th>
40 <f:for each="{compareUserList}" as="compareUser">
41 <td>
42 <f:if condition="{compareUser.email}">
43 <f:then>
44 <f:link.email email="{compareUser.email}" />
45 </f:then>
46 <f:else>
47 -
48 </f:else>
49 </f:if>
50 </td>
51 </f:for>
52 </tr>
53 <tr>
54 <th><f:translate key="admin" /></th>
55 <f:for each="{compareUserList}" as="compareUser">
56 <td>
57 <f:if condition="{compareUser.isAdministrator}">
58 <f:then><f:translate key="yes" /></f:then>
59 <f:else><f:translate key="no" /></f:else>
60 </f:if>
61 </td>
62 </f:for>
63 </tr>
64 <tr>
65 <th><f:translate key="disable_compare" /></th>
66 <f:for each="{compareUserList}" as="compareUser">
67 <td>
68 <f:if condition="{compareUser.currentlyLoggedIn} == 0">
69 <f:if condition="{compareUser.isDisabled} == 1">
70 <f:then>
71 <a class="btn btn-default" href="{bu:issueCommand(parameters: 'data[be_users][{compareUser.uid}][disable]=0', redirectUrl: redirectUrl)}" title="{f:translate(key: 'visibility.unhide')}">
72 <core:icon identifier="actions-edit-unhide" />
73 </a>
74 </f:then>
75 <f:else>
76 <a class="btn btn-default" href="{bu:issueCommand(parameters: 'data[be_users][{compareUser.uid}][disable]=1', redirectUrl: redirectUrl)}" title="{f:translate(key: 'visibility.hide')}">
77 <core:icon identifier="actions-edit-hide" />
78 </a>
79 </f:else>
80 </f:if>
81 </f:if>
82 </td>
83 </f:for>
84 </tr>
85 <tr>
86 <th><f:translate key="startDateAndTime" /></th>
87 <f:for each="{compareUserList}" as="compareUser">
88 <td>
89 <f:if condition="{compareUser.startDateAndTime}">
90 <f:then>
91 <f:format.date format="{dateFormat} {timeFormat}">{compareUser.startDateAndTime}</f:format.date>
92 </f:then>
93 <f:else>
94 -
95 </f:else>
96 </f:if>
97 </td>
98 </f:for>
99 </tr>
100 <tr>
101 <th><f:translate key="endDateAndTime" /></th>
102 <f:for each="{compareUserList}" as="compareUser">
103 <td>
104 <f:if condition="{compareUser.endDateAndTime}">
105 <f:then>
106 <f:format.date format="{dateFormat} {timeFormat}">{compareUser.endDateAndTime}</f:format.date>
107 </f:then>
108 <f:else>
109 -
110 </f:else>
111 </f:if>
112 </td>
113 </f:for>
114 </tr>
115 <tr>
116 <th><f:translate key="lastLogin" /></th>
117 <f:for each="{compareUserList}" as="compareUser">
118 <td>
119 <f:if condition="{compareUser.lastLoginDateAndTime}">
120 <f:then>
121 <f:format.date format="{dateFormat} {timeFormat}">{compareUser.lastLoginDateAndTime}</f:format.date>
122 </f:then>
123 <f:else>
124 <f:translate key="never" />
125 </f:else>
126 </f:if>
127 </td>
128 </f:for>
129 </tr>
130 <tr>
131 <th><f:translate key="backendUserGroups" /></th>
132 <f:for each="{compareUserList}" as="compareUser">
133 <td>
134 <f:for each="{compareUser.BackendUserGroups}" as="backendUserGroup">
135 <a href="#" class="t3js-contextmenutrigger" data-table="be_groups" data-uid="{backendUserGroup.uid}" title="id={backendUserGroup.uid}">
136 <bu:spriteIconForRecord table="be_users" object="{backendUserGroup}" />
137 </a>
138 {backendUserGroup.title}<br />
139 </f:for>
140 </td>
141 </f:for>
142 </tr>
143 <tr>
144 <th><f:translate key="allowedLanguages" /></th>
145 <f:for each="{compareUserList}" as="compareUser">
146 <td>
147 <f:if condition="{compareUser.allowedLanguages}">
148 <f:then>
149 <bu:display.sysLanguage uids="{compareUser.allowedLanguages}" />
150 </f:then>
151 <f:else>
152 -
153 </f:else>
154 </f:if>
155 </td>
156 </f:for>
157 </tr>
158 <tr>
159 <th><f:translate key="dbMountPoints" /></th>
160 <f:for each="{compareUserList}" as="compareUser">
161 <td>
162 <f:if condition="{compareUser.dbMountPoints}">
163 <f:then>
164 <bu:display.pages uids="{compareUser.dbMountPoints}" />
165 </f:then>
166 <f:else>
167 -
168 </f:else>
169 </f:if>
170 </td>
171 </f:for>
172 </tr>
173 <tr>
174 <th><f:translate key="fileMounts" /></th>
175 <f:for each="{compareUserList}" as="compareUser">
176 <td>
177 <f:if condition="{compareUser.fileMountPoints}">
178 <f:then>
179 <bu:display.sysFileMounts uids="{compareUser.fileMountPoints}" />
180 </f:then>
181 <f:else>
182 -
183 </f:else>
184 </f:if>
185 </td>
186 </f:for>
187 </tr>
188 <tr>
189 <th><f:translate key="disableIpLock" /></th>
190 <f:for each="{compareUserList}" as="compareUser">
191 <td>
192 <f:if condition="{compareUser.ipLockIsDisabled} == 1">
193 <f:then><f:translate key="yes" /></f:then>
194 <f:else><f:translate key="no" /></f:else>
195 </f:if>
196 </td>
197 </f:for>
198 </tr>
199 </tbody>
200 </table>
201 </div>
202 </f:section>
203 </html>