[TASK] Replace sprite icon for visibility with IconFactory
[Packages/TYPO3.CMS.git] / typo3 / sysext / beuser / Resources / Private / Templates / BackendUser / Compare.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="iconButtons">
8 <f:link.action action="index"><be:spriteManagerIcon iconName="actions-view-go-back" /></f:link.action>
9 </f:section>
10
11 <f:section name="headline">
12 <h1><f:translate key="compareBackendUsers">Compare backend users</f:translate></h1>
13 </f:section>
14
15 <f:section name="content">
16 <div class="table-fit">
17 <table border="0" cellpadding="0" cellspacing="0" id="tx_beuser_compare" class="table table-striped table-bordered table-hover">
18 <thead>
19 <tr>
20 <th></th>
21 <f:for each="{compareUserList}" as="compareUser">
22 <th>
23 <a href="#" class="t3-js-clickmenutrigger" data-table="be_users" data-uid="{compareUser.uid}" data-listframe="1" title="id={compareUser.uid}">
24 <be:avatar backendUser="{compareUser.uid}" showIcon="true" />
25 </a>
26 {compareUser.userName}
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.isDisabled} == 1">
69 <f:then>
70 <a class="btn btn-default" href="{bu:issueCommand(parameters: 'data[be_users][{compareUser.uid}][disable]=0', redirectUrl: redirectUrl)}" title="{f:translate(key: 'visibility.unhide')}">
71 <core:icon identifier="actions-edit-unhide" size="small"/>
72 </a>
73 </f:then>
74 <f:else>
75 <a class="btn btn-default" href="{bu:issueCommand(parameters: 'data[be_users][{compareUser.uid}][disable]=1', redirectUrl: redirectUrl)}" title="{f:translate(key: 'visibility.hide')}">
76 <core:icon identifier="actions-edit-hide" size="small"/>
77 </a>
78 </f:else>
79 </f:if>
80 </td>
81 </f:for>
82 </tr>
83 <tr>
84 <th><f:translate key="startDateAndTime" /></th>
85 <f:for each="{compareUserList}" as="compareUser">
86 <td>
87 <f:if condition="{compareUser.startDateAndTime}">
88 <f:then>
89 <f:format.date format="{dateFormat} {timeFormat}">{compareUser.startDateAndTime}</f:format.date>
90 </f:then>
91 <f:else>
92 -
93 </f:else>
94 </f:if>
95 </td>
96 </f:for>
97 </tr>
98 <tr>
99 <th><f:translate key="endDateAndTime" /></th>
100 <f:for each="{compareUserList}" as="compareUser">
101 <td>
102 <f:if condition="{compareUser.endDateAndTime}">
103 <f:then>
104 <f:format.date format="{dateFormat} {timeFormat}">{compareUser.endDateAndTime}</f:format.date>
105 </f:then>
106 <f:else>
107 -
108 </f:else>
109 </f:if>
110 </td>
111 </f:for>
112 </tr>
113 <tr>
114 <th><f:translate key="lastLogin" /></th>
115 <f:for each="{compareUserList}" as="compareUser">
116 <td>
117 <f:if condition="{compareUser.lastLoginDateAndTime}">
118 <f:then>
119 <f:format.date format="{dateFormat} {timeFormat}">{compareUser.lastLoginDateAndTime}</f:format.date>
120 </f:then>
121 <f:else>
122 <f:translate key="never" />
123 </f:else>
124 </f:if>
125 </td>
126 </f:for>
127 </tr>
128 <tr>
129 <th><f:translate key="backendUserGroups" /></th>
130 <f:for each="{compareUserList}" as="compareUser">
131 <td>
132 <f:for each="{compareUser.BackendUserGroups}" as="backendUserGroup">
133 <a href="#" class="t3-js-clickmenutrigger" data-table="be_groups" data-uid="{backendUserGroup.uid}" data-listframe="1" title="id={backendUserGroup.uid}">
134 <bu:spriteIconForRecord table="be_users" object="{backendUserGroup}" />
135 </a>
136 {backendUserGroup.title}<br />
137 </f:for>
138 </td>
139 </f:for>
140 </tr>
141 <tr>
142 <th><f:translate key="allowedLanguages" /></th>
143 <f:for each="{compareUserList}" as="compareUser">
144 <td>
145 <f:if condition="{compareUser.allowedLanguages}">
146 <f:then>
147 <bu:display.sysLanguage uids="{compareUser.allowedLanguages}" />
148 </f:then>
149 <f:else>
150 -
151 </f:else>
152 </f:if>
153 </td>
154 </f:for>
155 </tr>
156 <tr>
157 <th><f:translate key="dbMountPoints" /></th>
158 <f:for each="{compareUserList}" as="compareUser">
159 <td>
160 <f:if condition="{compareUser.dbMountPoints}">
161 <f:then>
162 <bu:display.pages uids="{compareUser.dbMountPoints}" />
163 </f:then>
164 <f:else>
165 -
166 </f:else>
167 </f:if>
168 </td>
169 </f:for>
170 </tr>
171 <tr>
172 <th><f:translate key="fileMounts" /></th>
173 <f:for each="{compareUserList}" as="compareUser">
174 <td>
175 <f:if condition="{compareUser.fileMountPoints}">
176 <f:then>
177 <bu:display.sysFileMounts uids="{compareUser.fileMountPoints}" />
178 </f:then>
179 <f:else>
180 -
181 </f:else>
182 </f:if>
183 </td>
184 </f:for>
185 </tr>
186 <tr>
187 <th><f:translate key="disableIpLock" /></th>
188 <f:for each="{compareUserList}" as="compareUser">
189 <td>
190 <f:if condition="{compareUser.ipLockIsDisabled} == 1">
191 <f:then><f:translate key="yes" /></f:then>
192 <f:else><f:translate key="no" /></f:else>
193 </f:if>
194 </td>
195 </f:for>
196 </tr>
197 </tbody>
198 </table>
199 </div>
200 </f:section>