c545a92e662c33297dd4bf33a1be5562b3038c74
[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 <bu:removeUser backendUser="{backendUser}" />
49 </div>
50 <div class="btn-group" role="group">
51 <a class="btn btn-default" href="#" onclick="top.launchView('be_users', '{backendUser.uid}'); return false;"><core:icon identifier="actions-document-info" /></a>
52 </div>
53 <div class="btn-group" role="group">
54 <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>
55 <bu:SwitchUser backendUser="{backendUser}" />
56 </div>
57 </td>
58 </tr>