[TASK] EXT: be_user - improve listing 20/23020/4
authorFelix Kopp <felix-source@phorax.com>
Sat, 10 Aug 2013 11:36:58 +0000 (13:36 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 12 Aug 2013 11:21:38 +0000 (13:21 +0200)
Backend user's username and real name are tightly coupled. These
texts should stand right next to each other. Merged username and
real name columns. When real name is unknown, not a problem.

Also adds link to the primary action / edit view to user listing.

Change-Id: I16d06771ad302fe64232e068e12663d87c07d79d
Resolves: #50999
Resolves: #50994
Related: #50998
Releases: 6.2
Reviewed-on: https://review.typo3.org/23020
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/beuser/Resources/Private/Partials/BackendUser/IndexListRow.html
typo3/sysext/beuser/Resources/Private/Partials/BackendUser/OnlineListRow.html
typo3/sysext/beuser/Resources/Private/Templates/BackendUser/Index.html
typo3/sysext/beuser/Resources/Private/Templates/BackendUser/Online.html

index 26147fb..e1d642c 100755 (executable)
@@ -6,10 +6,12 @@
                        <bu:spriteIconForRecord table="be_users" object="{backendUser}" />
                </a>
        </td>
-       <td>
-               <b>{backendUser.userName}</b>
+       <td class="t3-title-column">
+               <a href="alt_doc.php?edit[be_users][{backendUser.uid}]=edit&returnUrl={returnUrl}">
+                       <b>{backendUser.userName}</b><br />
+                       {backendUser.realName}
+               </a>
        </td>
-       <td>{backendUser.realName}</td>
        <td>
                <f:link.action
                        action="addToCompareList"
index dccc415..a5053cb 100755 (executable)
@@ -2,9 +2,7 @@
 
 <tr class="db_list_normal">
        <td>
-               <b>{onlineUser.backendUser.userName}</b>
-       </td>
-       <td>
+               <b>{onlineUser.backendUser.userName}</b><br />
                {onlineUser.backendUser.realName}
        </td>
        <td>
@@ -17,7 +15,7 @@
                <f:if condition="{sessionKey} > 0">
                        <f:then>
                                <tr class="db_list_normal">
-                                       <td colspan="3"></td>
+                                       <td colspan="2"></td>
                        </f:then>
                </f:if>
                <td>
index 81524e3..cd204ba 100755 (executable)
                        <f:be.widget.paginate objects="{backendUsers}" as="paginatedBackendUsers" configuration="{itemsPerPage: 50, insertAbove: 1, insertBelow: 1}">
                                <table border="0" cellpadding="0" cellspacing="0" class="typo3-dblist">
                                        <tr class="t3-row-header">
-                                               <td></td>
-                                               <td><f:translate key="userName">Username</f:translate></td>
-                                               <td><f:translate key="realName">Real name</f:translate></td>
+                                               <td>&nbsp;</td>
+                                               <td>
+                                                       <f:translate key="userName">Username</f:translate> /
+                                                       <f:translate key="realName">Real name</f:translate>
+                                               </td>
                                                <td>&nbsp;</td>
                                                <td>&nbsp;</td>
                                                <td><f:translate key="lastLogin">Last login</f:translate></td>
                <f:else>
                        <table border="0" cellpadding="0" cellspacing="0" class="typo3-dblist">
                                <tr class="t3-row-header">
-                                       <td></td>
-                                       <td><f:translate key="userName">Username</f:translate></td>
-                                       <td><f:translate key="realName">Real name</f:translate></td>
+                                       <td>&nbsp;</td>
+                                       <td>
+                                               <f:translate key="userName">Username</f:translate> /
+                                               <f:translate key="realName">Real name</f:translate>
+                                       </td>
                                        <td>&nbsp;</td>
                                        <td>&nbsp;</td>
                                        <td><f:translate key="lastLogin">Last login</f:translate></td>
index c8da43f..1171b7c 100755 (executable)
        <table border="0" cellspacing="0" cellpadding="0" class="typo3-dblist">
                <tr class="t3-row-header">
                        <td>
-                               <f:translate key="userName">Username</f:translate>
-                       </td>
-                       <td colspan="2">
+                               <f:translate key="userName">Username</f:translate> /
                                <f:translate key="realName">Real name</f:translate>
                        </td>
+                       <td>&nbsp;</td>
                        <td>
                                <f:translate key="lastAccess">Last access</f:translate>
                        </td>
                        <td>
                                <f:translate key="ipAddress">IP address</f:translate>
                        </td>
-                       <td></td>
+                       <td>&nbsp;</td>
                </tr>
 
                <f:for each="{onlineUsersAndSessions}" as="onlineUser">