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