Skip to content

Commit

Permalink
Add user information toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Oct 3, 2017
1 parent 49582f9 commit 419d895
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion main/admin/user_edit.php
Expand Up @@ -476,7 +476,28 @@ function confirmation(name) {
Display::addFlash(Display::return_message(get_lang('StatusCanNotBeChangedToHumanResourcesManager'), 'error'));
}

$content = null;
$actions = [
Display::url(
Display::return_icon(
'info.png',
get_lang('Information'),
array(),
ICON_SIZE_MEDIUM
),
api_get_path(WEB_CODE_PATH).'admin/user_information.php?user_id='.$user_id
),
Display::url(
Display::return_icon(
'login_as.png',
get_lang('LoginAs'),
[],
ICON_SIZE_MEDIUM
),
api_get_path(WEB_CODE_PATH).'admin/user_list.php?action=login_as&user_id='.$user_id.'&sec_token='.Security::getTokenFromSession()
)
];

$content = Display::toolbarAction('toolbar-user-information', [implode(PHP_EOL, $actions)]);

$bigImage = UserManager::getUserPicture($user_id, USER_IMAGE_SIZE_BIG);
$normalImage = UserManager::getUserPicture($user_id, USER_IMAGE_SIZE_ORIGINAL);
Expand Down

0 comments on commit 419d895

Please sign in to comment.