[FEATURE] Add edit icon to Backend User "Compare" view 76/53076/3
authorMarkus Sommer <markussom@posteo.de>
Sat, 3 Jun 2017 10:30:21 +0000 (12:30 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 3 Jun 2017 10:56:48 +0000 (12:56 +0200)
Change-Id: I828ed0219033ea8f5ed075eaa4d72c84cdf37414
Resolves: #53685
Releases: master
Reviewed-on: https://review.typo3.org/53076
Reviewed-by: Jasmina Ließmann <code@frauliessmann.de>
Tested-by: Jasmina Ließmann <code@frauliessmann.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/beuser/Classes/Controller/BackendUserController.php
typo3/sysext/beuser/Resources/Private/Templates/BackendUser/Compare.html

index 99e7287..10eba5b 100644 (file)
@@ -195,6 +195,14 @@ class BackendUserController extends BackendUserActionController
         $compareUserList = $this->moduleData->getCompareUserList();
         $this->view->assign('dateFormat', $GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy']);
         $this->view->assign('timeFormat', $GLOBALS['TYPO3_CONF_VARS']['SYS']['hhmm']);
+        $returnUrl = BackendUtility::getModuleUrl(
+            'system_BeuserTxBeuser',
+            [
+                'tx_beuser_system_beusertxbeuser[action]' => 'compare',
+                'tx_beuser_system_beusertxbeuser[controller]' => 'BackendUser'
+            ]
+        );
+        $this->view->assign('returnUrl', rawurlencode($returnUrl));
         $this->view->assign('compareUserList', !empty($compareUserList) ? $this->backendUserRepository->findByUidList($compareUserList) : '');
     }
 
index a1652a3..03e3c7f 100644 (file)
@@ -19,6 +19,9 @@
                                                                <be:avatar backendUser="{compareUser.uid}" showIcon="true" />
                                                        </a>
                                                        {compareUser.userName}
+                                                       <a class="btn btn-default pull-right" href="{bu:editRecord(parameters: 'edit[be_users][{compareUser.uid}]=edit&returnUrl={returnUrl}')}" title="edit">
+                                                               <core:icon identifier="actions-open" />
+                                                       </a>
                                                </th>
                                        </f:for>
                                </tr>