323e5d90dc854401b8af1c589028907c0aa5dfb5
[Packages/TYPO3.CMS.git] / typo3 / sysext / beuser / Resources / Private / Partials / BackendUser / IndexListRow.html
1 {namespace bu = TYPO3\CMS\Beuser\ViewHelpers}
2
3 <tr class="db_list_normal">
4 <td class="col-icon">
5 <a href="#" class="t3-js-clickmenutrigger" data-table="be_users" data-uid="{backendUser.uid}" data-listframe="1" title="id={backendUser.uid}">
6 <bu:spriteIconForRecord table="be_users" object="{backendUser}" />
7 </a>
8 </td>
9 <td class="t3-title-column">
10 <a href="alt_doc.php?edit[be_users][{backendUser.uid}]=edit&returnUrl={returnUrl}">
11 <b>{backendUser.userName}</b><br />
12 {backendUser.realName}
13 </a>
14 </td>
15 <td>
16 <f:link.action action="addToCompareList" arguments="{uid: backendUser.uid}"><bu:spriteManagerIcon iconName="actions-edit-add"/></f:link.action>
17 <f:link.action action="addToCompareList" arguments="{uid: backendUser.uid}"><f:translate key="compare">Compare</f:translate></f:link.action>
18 </td>
19 <td class="col-control">
20 <div class="btn-group" role="group">
21 <a class="btn" href="#" onclick="top.launchView('be_users', '{backendUser.uid}'); return false;"><bu:spriteManagerIcon iconName="actions-document-info" /></a>
22 <a class="btn" href="alt_doc.php?edit[be_users][{backendUser.uid}]=edit&returnUrl={returnUrl}"><bu:spriteManagerIcon iconName="actions-document-open" /></a>
23
24 <f:if condition="{backendUser.isDisabled} == 1">
25 <f:then>
26 <a class="btn" href="<bu:issueCommand parameters="tce_db.php?&data[be_users][{backendUser.uid}][disable]=0&redirect={redirectUrl}" />"><bu:spriteManagerIcon iconName="actions-edit-unhide" options="{title: 'unhide'}" /></a>
27 </f:then>
28 <f:else>
29 <a class="btn" href="<bu:issueCommand parameters="tce_db.php?&data[be_users][{backendUser.uid}][disable]=1&redirect={redirectUrl}" />"><bu:spriteManagerIcon iconName="actions-edit-hide" options="{title: 'hide'}" /></a>
30 </f:else>
31 </f:if>
32
33 <bu:removeUser backendUser="{backendUser}" />
34
35 <f:comment>
36 No need to check if currently listed user is current user.
37 SU does not work with admin users and current user must always be admin.
38 Only admin users may use the backend user administration.
39 </f:comment>
40 <f:if condition="{backendUser.active} == 1">
41 <bu:SwitchUser backendUser="{backendUser}" />
42 </f:if>
43 </div>
44 </td>
45 <td class="hidden-xs hidden-sm">
46 <f:if condition="{backendUser.lastLoginDateAndTime}">
47 <f:then>
48 <f:format.date format="{dateFormat} {timeFormat}">{backendUser.lastLoginDateAndTime}</f:format.date>
49 </f:then>
50 <f:else>
51 <f:translate key="never">Never</f:translate>
52 </f:else>
53 </f:if>
54 </td>
55 </tr>