IndexListRow.html 2.77 KB
Newer Older
1
{namespace be = TYPO3\CMS\Backend\ViewHelpers}
2
{namespace bu = TYPO3\CMS\Beuser\ViewHelpers}
3
{namespace core = TYPO3\CMS\Core\ViewHelpers}
4

Benjamin Kott's avatar
Benjamin Kott committed
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
10
		</a>
	</td>
Benjamin Kott's avatar
Benjamin Kott committed
11
	<td class="col-title">
12
13
14
		<a href="{bu:editRecord(parameters: 'edit[be_users][{backendUser.uid}]=edit&returnUrl={returnUrl}')}">
			<b>{backendUser.userName}</b>
		</a>
15
16
17
18
19
		<f:if condition="{bu:arrayElement(array: onlineBackendUsers, key: backendUser.uid)}">
			<span class="label label-success"><f:translate key="online" /></span>
		</f:if>
		<br />
		<a href="{bu:editRecord(parameters: 'edit[be_users][{backendUser.uid}]=edit&returnUrl={returnUrl}')}">{backendUser.realName}</a>
20
	</td>
21
22
23
24
25
26
27
28
29
30
	<td>
		<f:if condition="{backendUser.lastLoginDateAndTime}">
			<f:then>
				<f:format.date format="{dateFormat} {timeFormat}">{backendUser.lastLoginDateAndTime}</f:format.date>
			</f:then>
			<f:else>
				<f:translate key="never" />
			</f:else>
		</f:if>
	</td>
31
	<td class="col-control">
32
		<f:link.action action="addToCompareList" arguments="{uid: backendUser.uid}" class="btn btn-default"><be:spriteManagerIcon iconName="actions-edit-add"/> <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" size="small"/></a>
35
			<a class="btn btn-default" href="{bu:editRecord(parameters: 'edit[be_users][{backendUser.uid}]=edit&returnUrl={returnUrl}')}"><be:spriteManagerIcon iconName="actions-document-open" /></a>
36
			<f:if condition="{backendUser.currentlyLoggedIn} == 1">
37
				<f:then>
38
					<span class="btn btn-default disabled"><be:spriteManagerIcon iconName="empty-empty" /></span>
39
40
				</f:then>
				<f:else>
41
42
					<f:if condition="{backendUser.isDisabled} == 1">
						<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" size="small"/></a>
44
45
						</f:then>
						<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" size="small"/></a>
47
48
						</f:else>
					</f:if>
49
50
51
				</f:else>
			</f:if>
			<bu:removeUser backendUser="{backendUser}" />
52
			<bu:SwitchUser backendUser="{backendUser}" />
53
		</div>
54
	</td>
55
</tr>