From 1309377eb1512df6d1568c479384b6a3e3366927 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 28 Jul 2017 11:03:34 +0200 Subject: [PATCH 1/2] nicer layout put all action buttons into one place, remove frame from selection box --- views/bootstrap/class.UsrMgr.php | 35 ++++++++++++++++---------------- 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/views/bootstrap/class.UsrMgr.php b/views/bootstrap/class.UsrMgr.php index d31b4553b..79e98304b 100644 --- a/views/bootstrap/class.UsrMgr.php +++ b/views/bootstrap/class.UsrMgr.php @@ -146,8 +146,23 @@ $(document).ready( function() { } echo ""; + } + } /* }}} */ + + function actionmenu() { /* {{{ */ + $dms = $this->params['dms']; + $user = $this->params['user']; + $seluser = $this->params['seluser']; + $quota = $this->params['quota']; + $workflowmode = $this->params['workflowmode']; + $undeluserids = $this->params['undeluserids']; + + if($seluser) { + if(!in_array($seluser->getID(), $undeluserids)) { + echo ' '.getMLText("rm_user").' '; + } if($user->isAdmin() && $seluser->getID() != $user->getID()) - echo "getID()."\" class=\"btn btn-primary\">".getMLText("substitute_user")."\n"; + echo "getID()."&formtoken=".createFormKey('substituteuser')."\" class=\"btn btn-primary\">".getMLText("substitute_user")."\n"; } } /* }}} */ @@ -187,16 +202,6 @@ $(document).ready( function() { } ?> -getID(), $undeluserids)) { -?> - - - - - @@ -478,11 +483,7 @@ $(document).ready( function() { ?>
-
-
- -
-
-
-
+
getID()."\"" : "") ?>>
getID()."\"" : "") ?>>
From 096a119399474de7e4903ee3c554e70075f9a35a Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 28 Jul 2017 11:07:56 +0200 Subject: [PATCH 2/2] add icon to substitute button --- views/bootstrap/class.UsrMgr.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/bootstrap/class.UsrMgr.php b/views/bootstrap/class.UsrMgr.php index 79e98304b..7e322c3e1 100644 --- a/views/bootstrap/class.UsrMgr.php +++ b/views/bootstrap/class.UsrMgr.php @@ -162,7 +162,7 @@ $(document).ready( function() { echo ' '.getMLText("rm_user").' '; } if($user->isAdmin() && $seluser->getID() != $user->getID()) - echo "getID()."&formtoken=".createFormKey('substituteuser')."\" class=\"btn btn-primary\">".getMLText("substitute_user")."\n"; + echo "getID()."&formtoken=".createFormKey('substituteuser')."\" class=\"btn btn-primary\"> ".getMLText("substitute_user")."\n"; } } /* }}} */
: ">