1ff04e6895204b6a59af51d9608f3d2d8b83db1f
[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 {namespace core = TYPO3\CMS\Core\ViewHelpers}
4
5 <tr>
6 <td class="col-icon">
7 <a href="#" class="t3-js-clickmenutrigger" data-table="be_users" data-uid="{backendUser.uid}" data-listframe="1" title="{f:if(condition: '{backendUser.description}', then: '{backendUser.description} ')}(id={backendUser.uid})">
8 <be:avatar backendUser="{backendUser.uid}" showIcon="TRUE" />
9 </a>
10 </td>
11 <td class="col-title">
12 <a href="{bu:editRecord(parameters: 'edit[be_users][{backendUser.uid}]=edit&returnUrl={returnUrl}')}">
13 <b>{backendUser.userName}</b>
14 </a>
15 <f:if condition="{bu:arrayElement(array: onlineBackendUsers, key: backendUser.uid)}">
16 <span class="label label-success"><f:translate key="online" /></span>
17 </f:if>
18 <br />
19 <a href="{bu:editRecord(parameters: 'edit[be_users][{backendUser.uid}]=edit&returnUrl={returnUrl}')}">{backendUser.realName}</a>
20 </td>
21 <td>
22 <f:if condition="{backendUser.lastLoginDateAndTime}">
23 <f:then>
24 <f:format.date format="{dateFormat} {timeFormat}">{backendUser.lastLoginDateAndTime}</f:format.date>
25 </f:then>
26 <f:else>
27 <f:translate key="never" />
28 </f:else>
29 </f:if>
30 </td>
31 <td class="col-control">
32 <f:link.action action="addToCompareList" arguments="{uid: backendUser.uid}" class="btn btn-default"><core:icon identifier="actions-edit-add" size="small"/> <f:translate key="compare" /></f:link.action>
33 <div class="btn-group" role="group">
34 <a class="btn btn-default" href="#" onclick="top.launchView('be_users', '{backendUser.uid}'); return false;"><core:icon identifier="actions-document-info" /></a>
35 <a class="btn btn-default" href="{bu:editRecord(parameters: 'edit[be_users][{backendUser.uid}]=edit&returnUrl={returnUrl}')}"><core:icon identifier="actions-document-open" /></a>
36 <f:if condition="{backendUser.currentlyLoggedIn} == 1">
37 <f:then>
38 <span class="btn btn-default disabled"><core:icon identifier="empty-empty" /></span>
39 </f:then>
40 <f:else>
41 <f:if condition="{backendUser.isDisabled} == 1">
42 <f:then>
43 <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>
44 </f:then>
45 <f:else>
46 <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>
47 </f:else>
48 </f:if>
49 </f:else>
50 </f:if>
51 <bu:removeUser backendUser="{backendUser}" />
52 <bu:SwitchUser backendUser="{backendUser}" />
53 </div>
54 </td>
55 </tr>