[TASK] Make use of .t3-table in EXT: beuser *compare 29/26929/2
authorFelix Kopp <felix-source@phorax.com>
Sat, 18 Jan 2014 19:51:29 +0000 (20:51 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Sun, 19 Jan 2014 18:44:49 +0000 (19:44 +0100)
Use <table class="t3-table"> in backend module compare view.

Change-Id: Icd8fb361a61c6bbfd933fc4b1b011838f18868e8
Resolves: #55139
Releases: 6.2
Reviewed-on: https://review.typo3.org/26929
Reviewed-by: Marcin S?gol
Tested-by: Marcin S?gol
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/beuser/Resources/Private/Templates/BackendUser/Compare.html

index 4b8cb89..27157cc 100755 (executable)
 </f:section>
 
 <f:section name="content">
-       <table border="0" cellpadding="0" cellspacing="0" id="tx_beuser_compare" class="typo3-dblist">
-               <tr class="t3-row-header">
-                       <td class="label"></td>
-                       <f:for each="{compareUserList}" as="compareUser">
-                               <td>
-                                       <a href="#" onClick="Clickmenu.show('be_users', '{compareUser.uid}', '1', '', '', ''); return false;" title="id={compareUser.uid}">
-                                               <bu:spriteIconForRecord table="be_users" object="{compareUser}" />
-                                       </a>
-                                       {compareUser.userName}
-                               </td>
-                       </f:for>
-               </tr>
-               <tr class="db_list_normal">
-                       <td><h5><f:translate key="realName">Real name</f:translate></h5></td>
-                       <f:for each="{compareUserList}" as="compareUser">
-                               <td>{compareUser.realName}</td>
-                       </f:for>
-               </tr>
-               <tr class="db_list_normal">
-                       <td><h5><f:translate key="email">Email</f:translate></h5></td>
-                       <f:for each="{compareUserList}" as="compareUser">
-                               <td>
-                                       <f:if condition="{compareUser.email}">
-                                               <f:then>
-                                                       <f:link.email email="{compareUser.email}" />
-                                               </f:then>
-                                               <f:else>
-                                                       -
-                                               </f:else>
-                                       </f:if>
-                               </td>
-                       </f:for>
-               </tr>
-               <tr class="db_list_normal">
-                       <td><h5><f:translate key="admin">Admin</f:translate></h5></td>
-                       <f:for each="{compareUserList}" as="compareUser">
-                               <td>
-                                       <f:if condition="{compareUser.isAdministrator}">
-                                               <f:then>
-                                                       <f:translate key="yes">Yes</f:translate>
-                                               </f:then>
-                                               <f:else>
-                                                       <f:translate key="no">No</f:translate>
-                                               </f:else>
-                                       </f:if>
-                               </td>
-                       </f:for>
-               </tr>
-               <tr class="db_list_normal">
-                       <td><h5><f:translate key="disable">Disable</f:translate></h5></td>
-                       <f:for each="{compareUserList}" as="compareUser">
-                               <td>
-                                       <f:if condition="{compareUser.isDisabled} == 1">
-                                               <f:then>
-                                                       <a href="<bu:issueCommand parameters="tce_db.php?&data[be_users][{compareUser.uid}][disable]=0&redirect={redirectUrl}" />">
-                                                               <bu:spriteManagerIcon iconName="actions-edit-unhide" options="{title: 'unhide'}" />
+       <table border="0" cellpadding="0" cellspacing="0" id="tx_beuser_compare" class="t3-table">
+               <thead>
+                       <tr class="t3-row-header">
+                               <th class="label"></th>
+                               <f:for each="{compareUserList}" as="compareUser">
+                                       <th>
+                                               <a href="#" onClick="Clickmenu.show('be_users', '{compareUser.uid}', '1', '', '', ''); return false;" title="id={compareUser.uid}">
+                                                       <bu:spriteIconForRecord table="be_users" object="{compareUser}" /></a>
+                                               {compareUser.userName}
+                                       </th>
+                               </f:for>
+                       </tr>
+               </thead>
+               <tbody>
+                       <tr>
+                               <td><h5><f:translate key="realName">Real name</f:translate></h5></td>
+                               <f:for each="{compareUserList}" as="compareUser">
+                                       <td>{compareUser.realName}</td>
+                               </f:for>
+                       </tr>
+                       <tr>
+                               <td><h5><f:translate key="email">Email</f:translate></h5></td>
+                               <f:for each="{compareUserList}" as="compareUser">
+                                       <td>
+                                               <f:if condition="{compareUser.email}">
+                                                       <f:then>
+                                                               <f:link.email email="{compareUser.email}" />
+                                                       </f:then>
+                                                       <f:else>
+                                                               -
+                                                       </f:else>
+                                               </f:if>
+                                       </td>
+                               </f:for>
+                       </tr>
+                       <tr>
+                               <td><h5><f:translate key="admin">Admin</f:translate></h5></td>
+                               <f:for each="{compareUserList}" as="compareUser">
+                                       <td>
+                                               <f:if condition="{compareUser.isAdministrator}">
+                                                       <f:then>
+                                                               <f:translate key="yes">Yes</f:translate>
+                                                       </f:then>
+                                                       <f:else>
+                                                               <f:translate key="no">No</f:translate>
+                                                       </f:else>
+                                               </f:if>
+                                       </td>
+                               </f:for>
+                       </tr>
+                       <tr>
+                               <td><h5><f:translate key="disable">Disable</f:translate></h5></td>
+                               <f:for each="{compareUserList}" as="compareUser">
+                                       <td>
+                                               <f:if condition="{compareUser.isDisabled} == 1">
+                                                       <f:then>
+                                                               <a href="<bu:issueCommand parameters="tce_db.php?&data[be_users][{compareUser.uid}][disable]=0&redirect={redirectUrl}" />">
+                                                                       <bu:spriteManagerIcon iconName="actions-edit-unhide" options="{title: 'unhide'}" />
+                                                               </a>
+                                                       </f:then>
+                                                       <f:else>
+                                                               <a href="<bu:issueCommand parameters="tce_db.php?&data[be_users][{compareUser.uid}][disable]=1&redirect={redirectUrl}" />">
+                                                                       <bu:spriteManagerIcon iconName="actions-edit-hide" options="{title: 'hide'}" />
+                                                               </a>
+                                                       </f:else>
+                                               </f:if>
+                                       </td>
+                               </f:for>
+                       </tr>
+                       <tr>
+                               <td><h5><f:translate key="startDateAndTime" /></h5></td>
+                               <f:for each="{compareUserList}" as="compareUser">
+                                       <td>
+                                               <f:if condition="{compareUser.startDateAndTime}">
+                                                       <f:then>
+                                                               <f:format.date format="{dateFormat} {timeFormat}">{compareUser.startDateAndTime}</f:format.date>
+                                                       </f:then>
+                                                       <f:else>
+                                                               -
+                                                       </f:else>
+                                               </f:if>
+                                       </td>
+                               </f:for>
+                       </tr>
+                       <tr>
+                               <td><h5><f:translate key="endDateAndTime" /></h5></td>
+                               <f:for each="{compareUserList}" as="compareUser">
+                                       <td>
+                                               <f:if condition="{compareUser.endDateAndTime}">
+                                                       <f:then>
+                                                               <f:format.date format="{dateFormat} {timeFormat}">{compareUser.endDateAndTime}</f:format.date>
+                                                       </f:then>
+                                                       <f:else>
+                                                               -
+                                                       </f:else>
+                                               </f:if>
+                                       </td>
+                               </f:for>
+                       </tr>
+                       <tr>
+                               <td><h5><f:translate key="lastLogin">Last login</f:translate></h5></td>
+                               <f:for each="{compareUserList}" as="compareUser">
+                                       <td>
+                                               <f:if condition="{compareUser.lastLoginDateAndTime}">
+                                                       <f:then>
+                                                               <f:format.date format="{dateFormat} {timeFormat}">{compareUser.lastLoginDateAndTime}</f:format.date>
+                                                       </f:then>
+                                                       <f:else>
+                                                               <f:translate key="never">Never</f:translate>
+                                                       </f:else>
+                                               </f:if>
+                                       </td>
+                               </f:for>
+                       </tr>
+                       <tr>
+                               <td><h5><f:translate key="backendUserGroups">Member of groups</f:translate></h5></td>
+                               <f:for each="{compareUserList}" as="compareUser">
+                                       <td>
+                                               <f:for each="{compareUser.BackendUserGroups}" as="backendUserGroup">
+                                                       <a href="#" onClick="Clickmenu.show('be_groups', '{backendUserGroup.uid}', '1', '', '', ''); return false;" title="id={backendUserGroup.uid}">
+                                                               <bu:spriteIconForRecord table="be_users" object="{backendUserGroup}" />
                                                        </a>
-                                               </f:then>
-                                               <f:else>
-                                                       <a href="<bu:issueCommand parameters="tce_db.php?&data[be_users][{compareUser.uid}][disable]=1&redirect={redirectUrl}" />">
-                                                               <bu:spriteManagerIcon iconName="actions-edit-hide" options="{title: 'hide'}" />
-                                                       </a>
-                                               </f:else>
-                                       </f:if>
-                               </td>
-                       </f:for>
-               </tr>
-               <tr class="db_list_normal">
-                       <td><h5><f:translate key="startDateAndTime" /></h5></td>
-                       <f:for each="{compareUserList}" as="compareUser">
-                               <td>
-                                       <f:if condition="{compareUser.startDateAndTime}">
-                                               <f:then>
-                                                       <f:format.date format="{dateFormat} {timeFormat}">{compareUser.startDateAndTime}</f:format.date>
-                                               </f:then>
-                                               <f:else>
-                                                       -
-                                               </f:else>
-                                       </f:if>
-                               </td>
-                       </f:for>
-               </tr>
-               <tr class="db_list_normal">
-                       <td><h5><f:translate key="endDateAndTime" /></h5></td>
-                       <f:for each="{compareUserList}" as="compareUser">
-                               <td>
-                                       <f:if condition="{compareUser.endDateAndTime}">
-                                               <f:then>
-                                                       <f:format.date format="{dateFormat} {timeFormat}">{compareUser.endDateAndTime}</f:format.date>
-                                               </f:then>
-                                               <f:else>
-                                                       -
-                                               </f:else>
-                                       </f:if>
-                               </td>
-                       </f:for>
-               </tr>
-               <tr class="db_list_normal">
-                       <td><h5><f:translate key="lastLogin">Last login</f:translate></h5></td>
-                       <f:for each="{compareUserList}" as="compareUser">
-                               <td>
-                                       <f:if condition="{compareUser.lastLoginDateAndTime}">
-                                               <f:then>
-                                                       <f:format.date format="{dateFormat} {timeFormat}">{compareUser.lastLoginDateAndTime}</f:format.date>
-                                               </f:then>
-                                               <f:else>
-                                                       <f:translate key="never">Never</f:translate>
-                                               </f:else>
-                                       </f:if>
-                               </td>
-                       </f:for>
-               </tr>
-               <tr class="db_list_normal">
-                       <td><h5><f:translate key="backendUserGroups">Member of groups</f:translate></h5></td>
-                       <f:for each="{compareUserList}" as="compareUser">
-                               <td>
-                                       <f:for each="{compareUser.BackendUserGroups}" as="backendUserGroup">
-                                               <a href="#" onClick="Clickmenu.show('be_groups', '{backendUserGroup.uid}', '1', '', '', ''); return false;" title="id={backendUserGroup.uid}">
-                                                       <bu:spriteIconForRecord table="be_users" object="{backendUserGroup}" />
-                                               </a>
-                                               {backendUserGroup.title}<br />
-                                       </f:for>
-                               </td>
-                       </f:for>
-               </tr>
-               <tr class="db_list_normal">
-                       <td><h5><f:translate key="allowedLanguages">Limit to languages</f:translate></h5></td>
-                       <f:for each="{compareUserList}" as="compareUser">
-                               <td>
-                                       <f:if condition="{compareUser.allowedLanguages}">
-                                               <f:then>
-                                                       <bu:display.sysLanguage uids="{compareUser.allowedLanguages}" />
-                                               </f:then>
-                                               <f:else>
-                                                       -
-                                               </f:else>
-                                       </f:if>
-                               </td>
-                       </f:for>
-               </tr>
-               <tr class="db_list_normal">
-                       <td><h5><f:translate key="dbMountPoints">DB mountpoints</f:translate></h5></td>
-                       <f:for each="{compareUserList}" as="compareUser">
-                               <td>
-                                       <f:if condition="{compareUser.dbMountPoints}">
-                                               <f:then>
-                                                       <bu:display.pages uids="{compareUser.dbMountPoints}" />
-                                               </f:then>
-                                               <f:else>
-                                                       -
-                                               </f:else>
-                                       </f:if>
-                               </td>
-                       </f:for>
-               </tr>
-               <tr class="db_list_normal">
-                       <td><h5><f:translate key="fileMounts">File mountpoints</f:translate></h5></td>
-                       <f:for each="{compareUserList}" as="compareUser">
-                               <td>
-                                       <f:if condition="{compareUser.fileMountPoints}">
-                                               <f:then>
-                                                       <bu:display.sysFileMounts uids="{compareUser.fileMountPoints}" />
-                                               </f:then>
-                                               <f:else>
-                                                       -
-                                               </f:else>
-                                       </f:if>
-                               </td>
-                       </f:for>
-               </tr>
-               <tr class="db_list_normal">
-                       <td><h5><f:translate key="disableIpLock">Disable IP lock</f:translate></h5></td>
-                       <f:for each="{compareUserList}" as="compareUser">
-                               <td>
-                                       <f:if condition="{compareUser.ipLockIsDisabled} == 1">
-                                               <f:then>
-                                                       <f:translate key="yes">Yes</f:translate>
-                                               </f:then>
-                                               <f:else>
-                                                       <f:translate key="no">No</f:translate>
-                                               </f:else>
-                                       </f:if>
-                               </td>
-                       </f:for>
-               </tr>
+                                                       {backendUserGroup.title}<br />
+                                               </f:for>
+                                       </td>
+                               </f:for>
+                       </tr>
+                       <tr>
+                               <td><h5><f:translate key="allowedLanguages">Limit to languages</f:translate></h5></td>
+                               <f:for each="{compareUserList}" as="compareUser">
+                                       <td>
+                                               <f:if condition="{compareUser.allowedLanguages}">
+                                                       <f:then>
+                                                               <bu:display.sysLanguage uids="{compareUser.allowedLanguages}" />
+                                                       </f:then>
+                                                       <f:else>
+                                                               -
+                                                       </f:else>
+                                               </f:if>
+                                       </td>
+                               </f:for>
+                       </tr>
+                       <tr>
+                               <td><h5><f:translate key="dbMountPoints">DB mountpoints</f:translate></h5></td>
+                               <f:for each="{compareUserList}" as="compareUser">
+                                       <td>
+                                               <f:if condition="{compareUser.dbMountPoints}">
+                                                       <f:then>
+                                                               <bu:display.pages uids="{compareUser.dbMountPoints}" />
+                                                       </f:then>
+                                                       <f:else>
+                                                               -
+                                                       </f:else>
+                                               </f:if>
+                                       </td>
+                               </f:for>
+                       </tr>
+                       <tr>
+                               <td><h5><f:translate key="fileMounts">File mountpoints</f:translate></h5></td>
+                               <f:for each="{compareUserList}" as="compareUser">
+                                       <td>
+                                               <f:if condition="{compareUser.fileMountPoints}">
+                                                       <f:then>
+                                                               <bu:display.sysFileMounts uids="{compareUser.fileMountPoints}" />
+                                                       </f:then>
+                                                       <f:else>
+                                                               -
+                                                       </f:else>
+                                               </f:if>
+                                       </td>
+                               </f:for>
+                       </tr>
+                       <tr>
+                               <td><h5><f:translate key="disableIpLock">Disable IP lock</f:translate></h5></td>
+                               <f:for each="{compareUserList}" as="compareUser">
+                                       <td>
+                                               <f:if condition="{compareUser.ipLockIsDisabled} == 1">
+                                                       <f:then>
+                                                               <f:translate key="yes">Yes</f:translate>
+                                                       </f:then>
+                                                       <f:else>
+                                                               <f:translate key="no">No</f:translate>
+                                                       </f:else>
+                                               </f:if>
+                                       </td>
+                               </f:for>
+                       </tr>
+               </table>
        </table>
 </f:section>
\ No newline at end of file