237f4ca8bc92e7f010cb30a79549c3e235eeaf72
[Packages/TYPO3.CMS.git] / typo3 / sysext / beuser / Resources / Private / Partials / BackendUser / IndexListRow.html
1 {namespace be = TYPO3\CMS\Backend\ViewHelpers}
2 {namespace bu = TYPO3\CMS\Beuser\ViewHelpers}
3
4 <tr>
5 <td>
6 <a href="#" class="t3js-contextmenutrigger" data-table="be_users" data-uid="{backendUser.uid}" title="{f:if(condition: '{backendUser.description}', then: '{backendUser.description} ')}(id={backendUser.uid})">
7 <be:avatar backendUser="{backendUser.uid}" showIcon="TRUE" />
8 </a>
9 </td>
10 <td class="col-title">
11 <a href="{bu:editRecord(parameters: 'edit[be_users][{backendUser.uid}]=edit&returnUrl={returnUrl}')}">
12 <b>{backendUser.userName}</b>
13 </a>
14 <f:if condition="{bu:arrayElement(array: onlineBackendUsers, key: backendUser.uid)}">
15 <span class="label label-success"><f:translate key="online" /></span>
16 </f:if>
17 <br />
18 <a href="{bu:editRecord(parameters: 'edit[be_users][{backendUser.uid}]=edit&returnUrl={returnUrl}')}">{backendUser.realName}</a>
19 </td>
20 <td>
21 <f:if condition="{backendUser.lastLoginDateAndTime}">
22 <f:then>
23 <f:format.date format="{dateFormat} {timeFormat}">{backendUser.lastLoginDateAndTime}</f:format.date>
24 </f:then>
25 <f:else>
26 <f:translate key="never" />
27 </f:else>
28 </f:if>
29 </td>
30 <td class="col-control">
31 <div class="btn-group" role="group">
32 <a class="btn btn-default" href="{bu:editRecord(parameters: 'edit[be_users][{backendUser.uid}]=edit&returnUrl={returnUrl}')}"><core:icon identifier="actions-open" /></a>
33 <f:if condition="{backendUser.currentlyLoggedIn} == 1">
34 <f:then>
35 <span class="btn btn-default disabled"><core:icon identifier="empty-empty" /></span>
36 </f:then>
37 <f:else>
38 <f:if condition="{backendUser.isDisabled} == 1">
39 <f:then>
40 <a class="btn btn-default" href="{bu:issueCommand(parameters: 'data[be_users][{backendUser.uid}][disable]=0', redirectUrl: redirectUrl)}" title="{f:translate(key:'visibility.unhide')}"><core:icon identifier="actions-edit-unhide" /></a>
41 </f:then>
42 <f:else>
43 <a class="btn btn-default" href="{bu:issueCommand(parameters: 'data[be_users][{backendUser.uid}][disable]=1', redirectUrl: redirectUrl)}" title="{f:translate(key:'visibility.hide')}"><core:icon identifier="actions-edit-hide" /></a>
44 </f:else>
45 </f:if>
46 </f:else>
47 </f:if>
48 <f:if condition="{currentUserUid} == {backendUser.uid}">
49 <f:then>
50 <span class="btn btn-default disabled"><core:icon identifier="empty-empty" /></span>
51 </f:then>
52 <f:else>
53 <a class="btn btn-default t3js-modal-trigger" href="{bu:removeUser(backendUser:backendUser)}"
54 title="{f:translate(key:'LLL:EXT:beuser/Resources/Private/Language/locallang.xlf:delete')}"
55 data-severity="warning"
56 data-title="{f:translate(key:'LLL:EXT:backend/Resources/Private/Language/locallang_alt_doc.xlf:label.confirm.delete_record.title')}"
57 data-content="{f:translate(key:'confirm',arguments:'{0:backendUser.userName}')}"
58 data-button-close-text="{f:translate(key:'LLL:EXT:core/Resources/Private/Language/locallang_common.xlf:cancel')}">
59 <core:icon identifier="actions-edit-delete" />
60 </a>
61 </f:else>
62 </f:if>
63 </div>
64 <div class="btn-group" role="group">
65 <a class="btn btn-default" href="#" onclick="top.TYPO3.InfoWindow.showItem('be_users', '{backendUser.uid}'); return false;"><core:icon identifier="actions-document-info" /></a>
66 </div>
67 <div class="btn-group" role="group">
68 <f:if condition="{compareUserUidList.{backendUser.uid}}">
69 <f:then>
70 <f:link.action action="removeFromCompareList" arguments="{uid: backendUser.uid}" class="btn btn-default">
71 <core:icon identifier="actions-remove" size="small"/>
72 <f:translate key="compare" />
73 </f:link.action>
74 </f:then>
75 <f:else>
76 <f:link.action action="addToCompareList" arguments="{uid: backendUser.uid}" class="btn btn-default"><core:icon identifier="actions-add" size="small"/> <f:translate key="compare" /></f:link.action>
77 </f:else>
78 </f:if>
79 <bu:SwitchUser backendUser="{backendUser}" />
80 </div>
81 </td>
82 </tr>